Body

Request body for SendMessageApi.

Note: Can only be used for serialization, not deserialization.

See also

Properties

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

Long or String (See also ChatId). Unique identifier for the target chat or username of the target channel (in the format @channelusername)

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

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

Link copied to clipboard

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

Link copied to clipboard
@SerialName(value = "link_preview_options")
val linkPreviewOptions: LinkPreviewOptions? = null

Optional. Link preview generation options for the message

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

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

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

Optional. Mode for parsing entities in the message text. See formatting options for more details. (See also FormattingOption)

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

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

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

InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply. Optional. Additional 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.

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

Optional. Description of the message to reply to

Link copied to clipboard

Text of the message to be sent, 1-4096 characters after entities parsing