TgKit library and website are still in early development!

AudioMessageSendOptions Interface

Properties

allowSendingWithoutReply boolean

Pass true if the message should be sent even if the specified replied-to message is not found

See the code

businessConnectionId string

Unique identifier of the business connection on behalf of which the message will be sent

See the code

caption string

Audio caption, 0-1024 characters after entities parsing

See the code

captionEntities

List of special entities that appear in message text, which can be specified instead of parse_mode

See the code

disableNotification boolean

Sends the message [silently](https://telegram.org/blog/channels-2-0#silent-messages). Users will receive a notification with no sound.

See the code

disableWebPagePreview boolean

Disables link previews for links in this message

See the code

duration number

Duration of the audio in seconds

See the code

forumTopicId number

Unique identifier for the target message thread (topic) of the forum; for forum supergroups only

See the code

parseMode ParseMode

Mode for parsing entities in the document caption.

See the code

performer string

Performer

See the code

protectContent boolean

Protects the contents of the sent message from forwarding and saving

See the code

replyMarkup

Additional export interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.

See the code

replyToMessageId number

If the message is a reply, ID of the original message

See the code

thumbnail string

Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-dataunder <file_attach_name>.

See the code

title string

Track name

See the code