class Tourmaline::ExternalReplyInfo

Overview

This object contains information about a message that is being replied to, which may come from another chat or forum topic.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(origin : Tourmaline::MessageOriginChannel | Tourmaline::MessageOriginChat | Tourmaline::MessageOriginHiddenUser | Tourmaline::MessageOriginUser, chat : Tourmaline::Chat | Nil = nil, message_id : Int32 | Int64 | Nil = nil, link_preview_options : Tourmaline::LinkPreviewOptions | Nil = nil, animation : Tourmaline::Animation | Nil = nil, audio : Tourmaline::Audio | Nil = nil, document : Tourmaline::Document | Nil = nil, photo : Array(Tourmaline::PhotoSize) = [] of Tourmaline::PhotoSize, sticker : Tourmaline::Sticker | Nil = nil, story : Tourmaline::Story | Nil = nil, video : Tourmaline::Video | Nil = nil, video_note : Tourmaline::VideoNote | Nil = nil, voice : Tourmaline::Voice | Nil = nil, has_media_spoiler : Bool | Nil = nil, contact : Tourmaline::Contact | Nil = nil, dice : Tourmaline::Dice | Nil = nil, game : Tourmaline::Game | Nil = nil, giveaway : Tourmaline::Giveaway | Nil = nil, giveaway_winners : Tourmaline::GiveawayWinners | Nil = nil, invoice : Tourmaline::Invoice | Nil = nil, location : Tourmaline::Location | Nil = nil, poll : Tourmaline::Poll | Nil = nil, venue : Tourmaline::Venue | Nil = nil) #

[View source]

Instance Method Detail

def animation : Tourmaline::Animation | Nil #

Optional. Message is an animation, information about the animation


[View source]
def animation=(animation : Tourmaline::Animation | Nil) #

Optional. Message is an animation, information about the animation


[View source]
def audio : Tourmaline::Audio | Nil #

Optional. Message is an audio file, information about the file


[View source]
def audio=(audio : Tourmaline::Audio | Nil) #

Optional. Message is an audio file, information about the file


[View source]
def chat : Tourmaline::Chat | Nil #

Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a channel.


[View source]
def chat=(chat : Tourmaline::Chat | Nil) #

Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a channel.


[View source]
def contact : Tourmaline::Contact | Nil #

Optional. Message is a shared contact, information about the contact


[View source]
def contact=(contact : Tourmaline::Contact | Nil) #

Optional. Message is a shared contact, information about the contact


[View source]
def dice : Tourmaline::Dice | Nil #

Optional. Message is a dice with random value


[View source]
def dice=(dice : Tourmaline::Dice | Nil) #

Optional. Message is a dice with random value


[View source]
def document : Tourmaline::Document | Nil #

Optional. Message is a general file, information about the file


[View source]
def document=(document : Tourmaline::Document | Nil) #

Optional. Message is a general file, information about the file


[View source]
def game : Tourmaline::Game | Nil #

Optional. Message is a game, information about the game. More about games: https://core.telegram.org/bots/api#games


[View source]
def game=(game : Tourmaline::Game | Nil) #

Optional. Message is a game, information about the game. More about games: https://core.telegram.org/bots/api#games


[View source]
def giveaway : Tourmaline::Giveaway | Nil #

Optional. Message is a scheduled giveaway, information about the giveaway


[View source]
def giveaway=(giveaway : Tourmaline::Giveaway | Nil) #

Optional. Message is a scheduled giveaway, information about the giveaway


[View source]
def giveaway_winners : Tourmaline::GiveawayWinners | Nil #

Optional. A giveaway with public winners was completed


[View source]
def giveaway_winners=(giveaway_winners : Tourmaline::GiveawayWinners | Nil) #

Optional. A giveaway with public winners was completed


[View source]
def has_media_spoiler=(has_media_spoiler : Bool | Nil) #

Optional. True, if the message media is covered by a spoiler animation


[View source]
def has_media_spoiler? : Bool | Nil #

Optional. True, if the message media is covered by a spoiler animation


[View source]
def invoice : Tourmaline::Invoice | Nil #

Optional. Message is an invoice for a payment, information about the invoice. More about payments: https://core.telegram.org/bots/api#payments


[View source]
def invoice=(invoice : Tourmaline::Invoice | Nil) #

Optional. Message is an invoice for a payment, information about the invoice. More about payments: https://core.telegram.org/bots/api#payments


[View source]
def link_preview_options : Tourmaline::LinkPreviewOptions | Nil #

Optional. Options used for link preview generation for the original message, if it is a text message


[View source]
def link_preview_options=(link_preview_options : Tourmaline::LinkPreviewOptions | Nil) #

Optional. Options used for link preview generation for the original message, if it is a text message


[View source]
def location : Tourmaline::Location | Nil #

Optional. Message is a shared location, information about the location


[View source]
def location=(location : Tourmaline::Location | Nil) #

Optional. Message is a shared location, information about the location


[View source]
def 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.


[View source]
def message_id=(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.


[View source]

Origin of the message replied to by the given message


[View source]
def origin=(origin : Tourmaline::MessageOrigin) #

Origin of the message replied to by the given message


[View source]
def photo : Array(Tourmaline::PhotoSize) #

Optional. Message is a photo, available sizes of the photo


[View source]
def photo=(photo : Array(Tourmaline::PhotoSize)) #

Optional. Message is a photo, available sizes of the photo


[View source]
def poll : Tourmaline::Poll | Nil #

Optional. Message is a native poll, information about the poll


[View source]
def poll=(poll : Tourmaline::Poll | Nil) #

Optional. Message is a native poll, information about the poll


[View source]
def sticker : Tourmaline::Sticker | Nil #

Optional. Message is a sticker, information about the sticker


[View source]
def sticker=(sticker : Tourmaline::Sticker | Nil) #

Optional. Message is a sticker, information about the sticker


[View source]
def story : Tourmaline::Story | Nil #

Optional. Message is a forwarded story


[View source]
def story=(story : Tourmaline::Story | Nil) #

Optional. Message is a forwarded story


[View source]
def venue : Tourmaline::Venue | Nil #

Optional. Message is a venue, information about the venue


[View source]
def venue=(venue : Tourmaline::Venue | Nil) #

Optional. Message is a venue, information about the venue


[View source]
def video : Tourmaline::Video | Nil #

Optional. Message is a video, information about the video


[View source]
def video=(video : Tourmaline::Video | Nil) #

Optional. Message is a video, information about the video


[View source]
def video_note : Tourmaline::VideoNote | Nil #

Optional. Message is a video note, information about the video message


[View source]
def video_note=(video_note : Tourmaline::VideoNote | Nil) #

Optional. Message is a video note, information about the video message


[View source]
def voice : Tourmaline::Voice | Nil #

Optional. Message is a voice message, information about the file


[View source]
def voice=(voice : Tourmaline::Voice | Nil) #

Optional. Message is a voice message, information about the file


[View source]