61 std::vector<Ptr<PhotoSize>>
photo;
116 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR(json, json_field, field)
#define OBJECT_SERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field)
#define OBJECT_DESERIALIZE_FIELD_PTR(json, json_field, field, optional)
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Available objects: https://core.telegram.org/bots/api#available-types.
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
#define OBJECT_DESERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field, optional)
This object contains information about a message that is being replied to, which may come from anothe...
Ptr< Game > game
Optional. Message is a game, information about the game. about games » https://core....
Ptr< VideoNote > videoNote
Optional. Message is a video note, information about the video message.
Ptr< MessageOrigin > origin
Origin of the message replied to by the given message.
Ptr< Sticker > sticker
Optional. Message is a sticker, information about the sticker.
Ptr< Animation > animation
Optional. Message is an animation, information about the animation.
Ptr< Checklist > checklist
Optional. Message is a checklist.
Ptr< Story > story
Optional. Message is a forwarded story.
Ptr< Giveaway > giveaway
Optional. Message is a scheduled giveaway, information about the giveaway.
std::int32_t messageId
Optional. Unique message identifier inside the original chat. Available only if the original chat is ...
Ptr< Voice > voice
Optional. Message is a voice message, information about the file.
bool hasMediaSpoiler
Optional. True, if the message media is covered by a spoiler animation.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
Ptr< Contact > contact
Optional. Message is a shared contact, information about the contact.
Ptr< Venue > venue
Optional. Message is a venue, information about the venue.
Ptr< PaidMediaInfo > paidMedia
Optional. Message contains paid media; information about the paid media.
ExternalReplyInfo()=default
std::vector< Ptr< PhotoSize > > photo
Optional. Message is a photo, available sizes of the photo.
Ptr< Location > location
Optional. Message is a shared location, information about the location.
Ptr< Poll > poll
Optional. Message is a native poll, information about the poll.
Ptr< Invoice > invoice
Optional. Message is an invoice for a payment, information about the invoice. about payments » https:...
Ptr< Document > document
Optional. Message is a general file, information about the file.
Ptr< LinkPreviewOptions > linkPreviewOptions
Optional. Options used for link preview generation for the original message, if it is a text message.
ExternalReplyInfo(const nl::json &json)
Ptr< GiveawayWinners > giveawayWinners
Optional. A giveaway with public winners was completed.
nl::json toJson() const
Serializes this object to JSON.
Ptr< Chat > chat
Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a chann...
Ptr< Audio > audio
Optional. Message is an audio file, information about the file.
Ptr< Dice > dice
Optional. Message is a dice with random value.
Ptr< Video > video
Optional. Message is a video, information about the video.