class

Tourmaline::ReplyParameters

Inherits JSON::Serializable < Reference < Object

Describes reply parameters for the message that is being sent.

Constructors

new(message_id : Int32 | Int64, chat_id : Int32 | Int64 | String | Nil = nil, allow_sending_without_reply : Bool | Nil = nil, quote : String | Nil = nil, quote_parse_mode : String | Nil = nil, quote_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, quote_position : Int32 | Int64 | Nil = nil, checklist_task_id : Int32 | Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

allow_sending_without_reply=(allow_sending_without_reply : Bool | Nil)

Optional. Pass True if the message should be sent even if the specified message to be replied to is not found. Always False for replies in another chat or forum topic. Always True for messages sent on behalf of a business account.

Source
allow_sending_without_reply?

Optional. Pass True if the message should be sent even if the specified message to be replied to is not found. Always False for replies in another chat or forum topic. Always True for messages sent on behalf of a business account.

Source
chat_id

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). Not supported for messages sent on behalf of a business account and messages from channel direct messages chats.

Source
chat_id=(chat_id : Int32 | Int64 | String | Nil)

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). Not supported for messages sent on behalf of a business account and messages from channel direct messages chats.

Source
checklist_task_id

Optional. Identifier of the specific checklist task to be replied to

Source
checklist_task_id=(checklist_task_id : Int32 | Int64 | Nil)

Optional. Identifier of the specific checklist task to be replied to

Source
message_id

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

Source
message_id=(message_id : Int32 | Int64)

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

Source
quote

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.

Source
quote=(quote : String | Nil)

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.

Source
quote_entities

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

Source
quote_entities=(quote_entities : Array(Tourmaline::MessageEntity))

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

Source
quote_parse_mode

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

Source
quote_parse_mode=(quote_parse_mode : String | Nil)

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

Source
quote_position

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

Source
quote_position=(quote_position : Int32 | Int64 | Nil)

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

Source