class Tourmaline::ExternalReplyInfo
inherits Reference
#
This object contains information about a message that is being replied to, which may come from another chat or forum topic.
Included modules
JSON::Serializable
Constructors#
.new(origin, chat : Tourmaline::Chat? = nil, message_id : Int32 | Int64 | Nil = nil, link_preview_options : Tourmaline::LinkPreviewOptions? = nil, animation : Tourmaline::Animation? = nil, audio : Tourmaline::Audio? = nil, document : Tourmaline::Document? = nil, photo : Array(Tourmaline::PhotoSize) = [] of Tourmaline::PhotoSize, sticker : Tourmaline::Sticker? = nil, story : Tourmaline::Story? = nil, video : Tourmaline::Video? = nil, video_note : Tourmaline::VideoNote? = nil, voice : Tourmaline::Voice? = nil, has_media_spoiler : Bool? = nil, contact : Tourmaline::Contact? = nil, dice : Tourmaline::Dice? = nil, game : Tourmaline::Game? = nil, giveaway : Tourmaline::Giveaway? = nil, giveaway_winners : Tourmaline::GiveawayWinners? = nil, invoice : Tourmaline::Invoice? = nil, location : Tourmaline::Location? = nil, poll : Tourmaline::Poll? = nil, venue : Tourmaline::Venue? = nil)
#
(origin, chat : Tourmaline::Chat? = nil, message_id : Int32 | Int64 | Nil = nil, link_preview_options : Tourmaline::LinkPreviewOptions? = nil, animation : Tourmaline::Animation? = nil, audio : Tourmaline::Audio? = nil, document : Tourmaline::Document? = nil, photo : Array(Tourmaline::PhotoSize) = [] of Tourmaline::PhotoSize, sticker : Tourmaline::Sticker? = nil, story : Tourmaline::Story? = nil, video : Tourmaline::Video? = nil, video_note : Tourmaline::VideoNote? = nil, voice : Tourmaline::Voice? = nil, has_media_spoiler : Bool? = nil, contact : Tourmaline::Contact? = nil, dice : Tourmaline::Dice? = nil, game : Tourmaline::Game? = nil, giveaway : Tourmaline::Giveaway? = nil, giveaway_winners : Tourmaline::GiveawayWinners? = nil, invoice : Tourmaline::Invoice? = nil, location : Tourmaline::Location? = nil, poll : Tourmaline::Poll? = nil, venue : Tourmaline::Venue? = nil)
Methods#
#animation : Tourmaline::Animation?
#
: Tourmaline::Animation?
Optional. Message is an animation, information about the animation
#animation=(animation : Tourmaline::Animation?)
#
(animation : Tourmaline::Animation?)
Optional. Message is an animation, information about the animation
#audio : Tourmaline::Audio?
#
: Tourmaline::Audio?
Optional. Message is an audio file, information about the file
#audio=(audio : Tourmaline::Audio?)
#
(audio : Tourmaline::Audio?)
Optional. Message is an audio file, information about the file
#chat : Tourmaline::Chat?
#
: Tourmaline::Chat?
Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a channel.
#chat=(chat : Tourmaline::Chat?)
#
(chat : Tourmaline::Chat?)
Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a channel.
#contact : Tourmaline::Contact?
#
: Tourmaline::Contact?
Optional. Message is a shared contact, information about the contact
#contact=(contact : Tourmaline::Contact?)
#
(contact : Tourmaline::Contact?)
Optional. Message is a shared contact, information about the contact
#document : Tourmaline::Document?
#
: Tourmaline::Document?
Optional. Message is a general file, information about the file
#document=(document : Tourmaline::Document?)
#
(document : Tourmaline::Document?)
Optional. Message is a general file, information about the file
#game : Tourmaline::Game?
#
: Tourmaline::Game?
Optional. Message is a game, information about the game. More about games: https://core.telegram.org/bots/api#games
#game=(game : Tourmaline::Game?)
#
(game : Tourmaline::Game?)
Optional. Message is a game, information about the game. More about games: https://core.telegram.org/bots/api#games
#giveaway : Tourmaline::Giveaway?
#
: Tourmaline::Giveaway?
Optional. Message is a scheduled giveaway, information about the giveaway
#giveaway=(giveaway : Tourmaline::Giveaway?)
#
(giveaway : Tourmaline::Giveaway?)
Optional. Message is a scheduled giveaway, information about the giveaway
#giveaway_winners : Tourmaline::GiveawayWinners?
#
: Tourmaline::GiveawayWinners?
Optional. A giveaway with public winners was completed
#giveaway_winners=(giveaway_winners : Tourmaline::GiveawayWinners?)
#
(giveaway_winners : Tourmaline::GiveawayWinners?)
Optional. A giveaway with public winners was completed
#has_media_spoiler=(has_media_spoiler : Bool?)
#
(has_media_spoiler : Bool?)
Optional. True, if the message media is covered by a spoiler animation
#has_media_spoiler? : Bool?
#
: Bool?
Optional. True, if the message media is covered by a spoiler animation
#invoice : Tourmaline::Invoice?
#
: Tourmaline::Invoice?
Optional. Message is an invoice for a payment, information about the invoice. More about payments: https://core.telegram.org/bots/api#payments
#invoice=(invoice : Tourmaline::Invoice?)
#
(invoice : Tourmaline::Invoice?)
Optional. Message is an invoice for a payment, information about the invoice. More about payments: https://core.telegram.org/bots/api#payments
#link_preview_options : Tourmaline::LinkPreviewOptions?
#
: Tourmaline::LinkPreviewOptions?
Optional. Options used for link preview generation for the original message, if it is a text message
#link_preview_options=(link_preview_options : Tourmaline::LinkPreviewOptions?)
#
(link_preview_options : Tourmaline::LinkPreviewOptions?)
Optional. Options used for link preview generation for the original message, if it is a text message
#location : Tourmaline::Location?
#
: Tourmaline::Location?
Optional. Message is a shared location, information about the location
#location=(location : Tourmaline::Location?)
#
(location : Tourmaline::Location?)
Optional. Message is a shared location, information about the location
#message_id : Int32 | Int64 | Nil
#
: Int32 | Int64 | Nil
Optional. Unique message identifier inside the original chat. Available only if the original chat is a supergroup or a channel.
#message_id=(message_id : Int32 | Int64 | Nil)
#
(message_id : Int32 | Int64 | Nil)
Optional. Unique message identifier inside the original chat. Available only if the original chat is a supergroup or a channel.
#origin : Tourmaline::MessageOrigin
#
: Tourmaline::MessageOrigin
Origin of the message replied to by the given message
#origin=(origin : Tourmaline::MessageOrigin)
#
(origin : Tourmaline::MessageOrigin)
Origin of the message replied to by the given message
#photo : Array(Tourmaline::PhotoSize)
#
: Array(Tourmaline::PhotoSize)
Optional. Message is a photo, available sizes of the photo
#photo=(photo : Array(Tourmaline::PhotoSize))
#
(photo : Array(Tourmaline::PhotoSize))
Optional. Message is a photo, available sizes of the photo
#poll : Tourmaline::Poll?
#
: Tourmaline::Poll?
Optional. Message is a native poll, information about the poll
#poll=(poll : Tourmaline::Poll?)
#
(poll : Tourmaline::Poll?)
Optional. Message is a native poll, information about the poll
#sticker : Tourmaline::Sticker?
#
: Tourmaline::Sticker?
Optional. Message is a sticker, information about the sticker
#sticker=(sticker : Tourmaline::Sticker?)
#
(sticker : Tourmaline::Sticker?)
Optional. Message is a sticker, information about the sticker
#venue=(venue : Tourmaline::Venue?)
#
(venue : Tourmaline::Venue?)
Optional. Message is a venue, information about the venue
#video=(video : Tourmaline::Video?)
#
(video : Tourmaline::Video?)
Optional. Message is a video, information about the video
#video_note : Tourmaline::VideoNote?
#
: Tourmaline::VideoNote?
Optional. Message is a video note, information about the video message
#video_note=(video_note : Tourmaline::VideoNote?)
#
(video_note : Tourmaline::VideoNote?)
Optional. Message is a video note, information about the video message
#voice : Tourmaline::Voice?
#
: Tourmaline::Voice?
Optional. Message is a voice message, information about the file
#voice=(voice : Tourmaline::Voice?)
#
(voice : Tourmaline::Voice?)
Optional. Message is a voice message, information about the file