Body

The request body (params) for SendAudioApi.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
lateinit var audio: InputFile

Required. Audio to send. (See the documentation).

Link copied to clipboard
@SerialName(value = "business_connection_id")
var businessConnectionId: String?

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

Link copied to clipboard

Optional. Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing

Link copied to clipboard
@SerialName(value = "caption_entities")
var captionEntities: MutableCollection<MessageEntity>?

Optional. A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode

Link copied to clipboard
@SerialName(value = "chat_id")
lateinit var chatId: ChatId

Required unique identifier for the target chat or username of the target channel (in the format @channelusername)

Link copied to clipboard
@SerialName(value = "disable_notification")
var disableNotification: Boolean?

Optional. Sends the message silently. Users will receive a notification with no sound.

Link copied to clipboard

Optional. Duration of the audio in seconds

Link copied to clipboard
@SerialName(value = "message_thread_id")
var messageThreadId: Int?

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

Link copied to clipboard
@SerialName(value = "parse_mode")
var parseMode: String?

Optional. Mode for parsing entities in the photo caption. See formatting options for more details.

Link copied to clipboard

Optional. Performer

Link copied to clipboard
@SerialName(value = "protect_content")
var protectContent: Boolean?

Optional. Protects the contents of the sent message from forwarding and saving

Link copied to clipboard
@SerialName(value = "reply_markup")
var replyMarkup: ReplyMarkupWrapper?

Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account

Link copied to clipboard
@SerialName(value = "reply_parameters")
var replyParameters: ReplyParameters?

Optional. Description of the message to reply to

Link copied to clipboard

Optional. Thumbnail of the file sent;

Link copied to clipboard

Optional. Track name

Functions

Link copied to clipboard
Link copied to clipboard
fun duration(duration: Duration)

Duration of the audio