Cablegram.InputFile (Cablegram v0.2.0)
A file upload, to be used as a request parameter.
Use from_file
or from_binary
to build. For both functions, you can pass
a filename
option which Telegram in some cases uses as the file name shown to the user.
If you want to upload from a URL, provide that URL instead as a string parameter, as documented in the Telegram Bot API documentation.
Link to this section Summary
Functions
Build an input file from a binary, usually a string.
Build an input file from a path, pointing to a file on disk.
Link to this section Functions
Link to this function
from_binary(binary, opts \\ [])
Build an input file from a binary, usually a string.
Pass a filename
option if you want to give the upload a file name.
Link to this function
from_file(path, opts \\ [])
Build an input file from a path, pointing to a file on disk.
Pass a filename
option if you want to give the upload a file name.