a file like object.
Optional caption for the sent media message. can be a list for albums
If left to false and the file is a path that ends with the extension of an image file or a video file, it will be sent as such. Otherwise always as a document.
The size of the file to be uploaded if it needs to be uploaded, which will be determined automatically if not specified.
Whether the existing draft should be cleared or not.
progress callback that will be called each time a new chunk is downloaded.
Same as replyTo
from {@link sendMessage}.
Optional attributes that override the inferred ones, like Api.DocumentAttributeFilename and so on.
Optional JPEG thumbnail (for documents). Telegram will ignore this parameter unless you pass a .jpg file!
The file must also be small in dimensions and in disk size. Successful thumbnails were files below 20kB and 320x320px.
Width/height and dimensions/size ratios may be important.
For Telegram to accept a thumbnail, you must provide the dimensions of the underlying media through attributes:
with DocumentAttributesVideo.
If true the audio will be sent as a voice note.
If true the video will be sent as a video note, also known as a round video message.
Whether the sent video supports streaming or not.
Note that Telegram only recognizes as streamable some formats like MP4, and others like AVI or MKV will not work.
You should convert these to MP4 before sending if you want them to be streamable. Unsupported formats will result in VideoContentTypeError.
See the parseMode property for allowed values. Markdown parsing will be used by default.
A list of message formatting entities. When provided, the parseMode is ignored.
Whether the message should notify people in a broadcast channel or not. Defaults to false, which means it will notify them. Set it to True to alter this behaviour.
If set, the file won't send immediately, and instead it will be scheduled to be automatically sent at a later time.
The matrix (list of lists), row list or button to be shown after sending the message.
This parameter will only work if you have signed in as a bot. You can also pass your own ReplyMarkup here.
How many workers to use to upload the file. anything above 16 is unstable.
Similar to replyTo
, but replies in the linked group of a broadcast channel instead (effectively leaving a "comment to" the specified message).
This parameter takes precedence over replyTo
.
If there is no linked chat, SG_ID_INVALID
is thrown.
Used for threads to reply to a specific thread
Generated using TypeDoc
Interface for sending files to a chat.