Cppgram
1.0.0
Easy and modern C++14 Telegram Bot API wrapper
|
A message send by user. More...
#include <message.hpp>
Public Attributes | |
uint_fast32_t | message_id |
Unique message identifier. | |
std::experimental::optional< User > | from |
Optional. Sender, can be empty for messages sent to channels | |
uint_fast32_t | date |
Date the message was sent in Unix time. | |
Chat | chat |
Conversation the message belongs to. | |
std::experimental::optional< User > | forward_from |
Optional. For forwarded messages, sender of the original message | |
std::experimental::optional< Chat > | forward_from_chat |
Optional. For messages forwarded from a channel, information about the original channel | |
std::experimental::optional< uint_fast32_t > | forward_date |
Optional. For forwarded messages, date the original message was sent in Unix time | |
std::shared_ptr< Message > | reply_to_message |
Optional. For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply. | |
std::experimental::optional< uint_fast32_t > | edit_date |
Optional. Date the message was last edited in Unix time | |
std::experimental::optional< std::string > | text |
Optional. For text messages, the actual UTF-8 text of the message, 0-4096 characters. | |
std::vector< MessageEntity > | entities |
Optional. For text messages, an array of messageEntinty | |
std::experimental::optional< Audio > | audio |
Optional. Message is an audio file, information about the file | |
std::experimental::optional< Document > | document |
Optional. Message is a general file, information about the file | |
std::vector< PhotoSize > | photo |
Optional. Message is a photo, available sizes of the photo | |
std::experimental::optional< Sticker > | sticker |
Optional. Message is a sticker, information about the sticker | |
std::experimental::optional< Video > | video |
Optional. Message is a video, information about the video | |
std::experimental::optional< Voice > | voice |
Optional. Message is a voice message, information about the file | |
std::experimental::optional< Contact > | contact |
Optional. Message is a shared contact, information about the contact | |
std::experimental::optional< Location > | location |
Optional. Message is a shared location, information about the location | |
std::experimental::optional< Venue > | venue |
Optional. Message is a venue, information about the venue | |
std::experimental::optional< std::string > | caption |
Optional. Caption for the document, photo or video, 0-200 characters | |
std::experimental::optional< User > | new_chat_member |
Optional. A new member was added to the group, information about them (this member may be the bot itself). | |
std::experimental::optional< User > | left_chat_member |
Optional. A member was removed from the group, information about them (this member may be the bot itself). | |
std::experimental::optional< std::string > | new_chat_title |
Optional. A chat title was changed to this value. | |
std::vector< PhotoSize > | new_chat_photo |
Optional. A chat photo was change to this value. | |
EServiceMessage | service_message |
Service message. More... | |
std::experimental::optional< uint_fast64_t > | migrate_to_chat_id |
Optional. The group has been migrated to a supergroup with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. | |
std::shared_ptr< Message > | pinned_message |
Optional. Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply. | |
A message send by user.
This object represents a message. (https://core.telegram.org/bots/api#message)
EServiceMessage service_message |
Service message.