ReplyParameters

data class ReplyParameters(val messageId: Int, val chatId: ChatId? = null, val allowSendingWithoutReply: Boolean? = null, val quote: String? = null, val quoteParseMode: String? = null, val quoteEntities: List<MessageEntity>? = null, val quotePosition: Int? = null)(source)

ReplyParameters

Describes reply parameters for the message that is being sent.

(auto-generated)

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor(messageId: Int, chatId: ChatId? = null, allowSendingWithoutReply: Boolean? = null, quote: String? = null, quoteParseMode: String? = null, quoteEntities: List<MessageEntity>? = null, quotePosition: Int? = null)

Properties

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

Optional. Pass True if the message should be sent even if the specified message to be replied to is not found; can be used only for replies in the same chat and forum topic.

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

Optional. If the message to be replied to is from a different chat, unique identifier for the chat or username of the channel (in the format @channelusername)

Link copied to clipboard
@SerialName(value = "message_id")
val messageId: Int

Identifier of the message that will be replied to in the current chat, or in the chat chat_id if it is specified

Link copied to clipboard
val quote: String? = null

Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing. The quote must be an exact substring of the message to be replied to, including bold, italic, underline, strikethrough, spoiler, and custom_emoji entities. The message will fail to send if the quote isn't found in the original message.

Link copied to clipboard
@SerialName(value = "quote_entities")
val quoteEntities: List<MessageEntity>? = null

Optional. A JSON-serialized list of special entities that appear in the quote. It can be specified instead of quote_parse_mode.

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

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

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

Optional. Position of the quote in the original message in UTF-16 code units