tgbotxx 1.1.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::ExternalReplyInfo Struct Reference

This object contains information about a message that is being replied to, which may come from another chat or forum topic. https://core.telegram.org/bots/api#externalreplyinfo. More...

#include <ExternalReplyInfo.hpp>

Public Member Functions

 ExternalReplyInfo ()=default
 
 ExternalReplyInfo (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON.
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON.
 

Public Attributes

Ptr< MessageOriginorigin
 Origin of the message replied to by the given message.
 
Ptr< Chatchat
 Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a channel.
 
std::int32_t messageId {}
 Optional. Unique message identifier inside the original chat. Available only if the original chat is a supergroup or a channel.
 
Ptr< LinkPreviewOptionslinkPreviewOptions
 Optional. Options used for link preview generation for the original message, if it is a text message.
 
Ptr< Animationanimation
 Optional. Message is an animation, information about the animation.
 
Ptr< Audioaudio
 Optional. Message is an audio file, information about the file.
 
Ptr< Documentdocument
 Optional. Message is a general file, information about the file.
 
Ptr< PaidMediaInfopaidMedia
 Optional. Message contains paid media; information about the paid media.
 
std::vector< Ptr< PhotoSize > > photo
 Optional. Message is a photo, available sizes of the photo.
 
Ptr< Stickersticker
 Optional. Message is a sticker, information about the sticker.
 
Ptr< Storystory
 Optional. Message is a forwarded story.
 
Ptr< Videovideo
 Optional. Message is a video, information about the video.
 
Ptr< VideoNotevideoNote
 Optional. Message is a video note, information about the video message.
 
Ptr< Voicevoice
 Optional. Message is a voice message, information about the file.
 
bool hasMediaSpoiler {}
 Optional. True, if the message media is covered by a spoiler animation.
 
Ptr< Checklistchecklist
 Optional. Message is a checklist.
 
Ptr< Contactcontact
 Optional. Message is a shared contact, information about the contact.
 
Ptr< Dicedice
 Optional. Message is a dice with random value.
 
Ptr< Gamegame
 Optional. Message is a game, information about the game. about games » https://core.telegram.org/bots/api#games .
 
Ptr< Giveawaygiveaway
 Optional. Message is a scheduled giveaway, information about the giveaway.
 
Ptr< GiveawayWinnersgiveawayWinners
 Optional. A giveaway with public winners was completed.
 
Ptr< Invoiceinvoice
 Optional. Message is an invoice for a payment, information about the invoice. about payments » https://core.telegram.org/bots/api#payments .
 
Ptr< Locationlocation
 Optional. Message is a shared location, information about the location.
 
Ptr< Pollpoll
 Optional. Message is a native poll, information about the poll.
 
Ptr< Venuevenue
 Optional. Message is a venue, information about the venue.
 

Detailed Description

This object contains information about a message that is being replied to, which may come from another chat or forum topic. https://core.telegram.org/bots/api#externalreplyinfo.

Definition at line 30 of file ExternalReplyInfo.hpp.

Constructor & Destructor Documentation

◆ ExternalReplyInfo() [1/2]

tgbotxx::ExternalReplyInfo::ExternalReplyInfo ( )
default

◆ ExternalReplyInfo() [2/2]

tgbotxx::ExternalReplyInfo::ExternalReplyInfo ( const nl::json &  json)
inlineexplicit

Definition at line 32 of file ExternalReplyInfo.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::ExternalReplyInfo::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 146 of file ExternalReplyInfo.hpp.

◆ toJson()

nl::json tgbotxx::ExternalReplyInfo::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 115 of file ExternalReplyInfo.hpp.

Member Data Documentation

◆ animation

Ptr<Animation> tgbotxx::ExternalReplyInfo::animation

Optional. Message is an animation, information about the animation.

Definition at line 49 of file ExternalReplyInfo.hpp.

◆ audio

Ptr<Audio> tgbotxx::ExternalReplyInfo::audio

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

Definition at line 52 of file ExternalReplyInfo.hpp.

◆ chat

Ptr<Chat> tgbotxx::ExternalReplyInfo::chat

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

Definition at line 40 of file ExternalReplyInfo.hpp.

◆ checklist

Ptr<Checklist> tgbotxx::ExternalReplyInfo::checklist

Optional. Message is a checklist.

Definition at line 82 of file ExternalReplyInfo.hpp.

◆ contact

Ptr<Contact> tgbotxx::ExternalReplyInfo::contact

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

Definition at line 85 of file ExternalReplyInfo.hpp.

◆ dice

Ptr<Dice> tgbotxx::ExternalReplyInfo::dice

Optional. Message is a dice with random value.

Definition at line 88 of file ExternalReplyInfo.hpp.

◆ document

Ptr<Document> tgbotxx::ExternalReplyInfo::document

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

Definition at line 55 of file ExternalReplyInfo.hpp.

◆ game

Ptr<Game> tgbotxx::ExternalReplyInfo::game

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

Definition at line 92 of file ExternalReplyInfo.hpp.

◆ giveaway

Ptr<Giveaway> tgbotxx::ExternalReplyInfo::giveaway

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

Definition at line 95 of file ExternalReplyInfo.hpp.

◆ giveawayWinners

Ptr<GiveawayWinners> tgbotxx::ExternalReplyInfo::giveawayWinners

Optional. A giveaway with public winners was completed.

Definition at line 98 of file ExternalReplyInfo.hpp.

◆ hasMediaSpoiler

bool tgbotxx::ExternalReplyInfo::hasMediaSpoiler {}

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

Definition at line 79 of file ExternalReplyInfo.hpp.

◆ invoice

Ptr<Invoice> tgbotxx::ExternalReplyInfo::invoice

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

Definition at line 102 of file ExternalReplyInfo.hpp.

◆ linkPreviewOptions

Ptr<LinkPreviewOptions> tgbotxx::ExternalReplyInfo::linkPreviewOptions

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

Definition at line 46 of file ExternalReplyInfo.hpp.

◆ location

Ptr<Location> tgbotxx::ExternalReplyInfo::location

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

Definition at line 105 of file ExternalReplyInfo.hpp.

◆ messageId

std::int32_t tgbotxx::ExternalReplyInfo::messageId {}

Optional. Unique message identifier inside the original chat. Available only if the original chat is a supergroup or a channel.

Definition at line 43 of file ExternalReplyInfo.hpp.

◆ origin

Ptr<MessageOrigin> tgbotxx::ExternalReplyInfo::origin

Origin of the message replied to by the given message.

Definition at line 37 of file ExternalReplyInfo.hpp.

◆ paidMedia

Ptr<PaidMediaInfo> tgbotxx::ExternalReplyInfo::paidMedia

Optional. Message contains paid media; information about the paid media.

Definition at line 58 of file ExternalReplyInfo.hpp.

◆ photo

std::vector<Ptr<PhotoSize> > tgbotxx::ExternalReplyInfo::photo

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

Definition at line 61 of file ExternalReplyInfo.hpp.

◆ poll

Ptr<Poll> tgbotxx::ExternalReplyInfo::poll

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

Definition at line 108 of file ExternalReplyInfo.hpp.

◆ sticker

Ptr<Sticker> tgbotxx::ExternalReplyInfo::sticker

Optional. Message is a sticker, information about the sticker.

Definition at line 64 of file ExternalReplyInfo.hpp.

◆ story

Ptr<Story> tgbotxx::ExternalReplyInfo::story

Optional. Message is a forwarded story.

Definition at line 67 of file ExternalReplyInfo.hpp.

◆ venue

Ptr<Venue> tgbotxx::ExternalReplyInfo::venue

Optional. Message is a venue, information about the venue.

Definition at line 111 of file ExternalReplyInfo.hpp.

◆ video

Ptr<Video> tgbotxx::ExternalReplyInfo::video

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

Definition at line 70 of file ExternalReplyInfo.hpp.

◆ videoNote

Ptr<VideoNote> tgbotxx::ExternalReplyInfo::videoNote

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

Definition at line 73 of file ExternalReplyInfo.hpp.

◆ voice

Ptr<Voice> tgbotxx::ExternalReplyInfo::voice

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

Definition at line 76 of file ExternalReplyInfo.hpp.


The documentation for this struct was generated from the following file: