OptionalallowBots only: if set, allows sending up to 1000 messages per second past the flood limits, at a Stars cost.
OptionalallowStars to pay for sending a paid message, when the recipient charges for messages.
OptionalattributesOptional attributes that override the inferred ones, like Api.DocumentAttributeFilename and so on.
OptionalbackgroundSend this message as a background message.
OptionalbuttonsThe 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.
OptionalcaptionOptional caption for the sent media message. can be a list for albums
OptionalclearWhether the existing draft should be cleared or not.
OptionalcommentSimilar 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.
OptionaleffectMessage effect ID (animation/visual effect).
a file like object.
OptionalfileThe size of the file to be uploaded if it needs to be uploaded, which will be determined automatically if not specified.
OptionalforceIf 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.
OptionalformattingA list of message formatting entities. When provided, the parseMode is ignored.
OptionalinvertIf true, media will be shown below the text instead of above.
OptionalnoforwardsOptionalnosoundIf true, the uploaded video has no sound (sent as a silent video).
OptionalparseSee the parseMode property for allowed values. Markdown parsing will be used by default.
Optionalprogressprogress callback that will be called each time a new chunk is downloaded.
OptionalquickAdd the message to a quick-reply shortcut instead of sending it. A shortcut name, shortcut ID, or a raw Api.TypeInputQuickReplyShortcut.
OptionalquoteFormatting entities of the quote. Offsets are relative to quoteText.
OptionalquoteOffset of the quote within the original message (UTF-16 code units).
OptionalquoteQuoted part of the message being replied to. Requires replyTo.
OptionalreplySame as replyTo from TelegramClient.sendMessage. Also accepts a raw Api.TypeInputReplyTo for full control (stories, monoforums, todo items).
OptionalreplyChat where the quoted message was sent, for quoting messages from other chats.
OptionalscheduleIf set, the file won't send immediately, and instead it will be scheduled to be automatically sent at a later time.
OptionalscheduleRepeat period (in seconds) for recurring scheduled messages. Requires scheduleDate.
OptionalsendSend the file as a specific entity (channel/user).
OptionalsilentWhether 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.
OptionalspoilerMark the media as spoiler (blurred until tapped).
OptionalsuggestedSuggested-post metadata for direct-messages channels.
OptionalsupportsWhether 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.
OptionalthumbOptional 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.
OptionaltopUsed for threads to reply to a specific thread
OptionalttlSelf-destruct timer for the media, in seconds.
OptionalupdateWhether the order of the user's sticker sets should be updated when a sticker is sent.
OptionalvideoCustom cover photo for the video.
OptionalvideoIf true the video will be sent as a video note, also known as a round video message.
OptionalvideoStart playback timestamp of the video, in seconds.
OptionalvoiceIf true the audio will be sent as a voice note.
OptionalworkersHow many workers to use to upload the file. anything above 16 is unstable.
Interface for sending files to a chat.