class Tourmaline::ReplyParameters
inherits Reference
#
Describes reply parameters for the message that is being sent.
Included modules
JSON::Serializable
Constructors#
.new(message_id, chat_id : Int32 | Int64 | String | Nil = nil, allow_sending_without_reply : Bool? = nil, quote : String? = nil, quote_parse_mode : String? = nil, quote_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, quote_position : Int32 | Int64 | Nil = nil)
#
(message_id, chat_id : Int32 | Int64 | String | Nil = nil, allow_sending_without_reply : Bool? = nil, quote : String? = nil, quote_parse_mode : String? = nil, quote_entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, quote_position : Int32 | Int64 | Nil = nil)
Methods#
#allow_sending_without_reply=(allow_sending_without_reply : Bool?)
#
(allow_sending_without_reply : Bool?)
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.
#allow_sending_without_reply? : Bool?
#
: Bool?
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.
#chat_id : Int32 | Int64 | String | Nil
#
: 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)
#chat_id=(chat_id : Int32 | Int64 | String | Nil)
#
(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)
#message_id : Int32 | Int64
#
: 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
#message_id=(message_id : Int32 | Int64)
#
(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
#quote : String?
#
: String?
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.
#quote=(quote : String?)
#
(quote : String?)
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.
#quote_entities : Array(Tourmaline::MessageEntity)
#
: 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.
#quote_entities=(quote_entities : Array(Tourmaline::MessageEntity))
#
(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.
#quote_parse_mode : String?
#
: String?
Optional. Mode for parsing entities in the quote. See formatting options for more details.
#quote_parse_mode=(quote_parse_mode : String?)
#
(quote_parse_mode : String?)
Optional. Mode for parsing entities in the quote. See formatting options for more details.
#quote_position : Int32 | Int64 | Nil
#
: Int32 | Int64 | Nil
Optional. Position of the quote in the original message in UTF-16 code units
#quote_position=(quote_position : Int32 | Int64 | Nil)
#
(quote_position : Int32 | Int64 | Nil)
Optional. Position of the quote in the original message in UTF-16 code units