Cppgram  1.0.0
Easy and modern C++14 Telegram Bot API wrapper
Public Attributes | List of all members
Message Class Reference

A message send by user. More...

#include <message.hpp>

Public Attributes

uint_fast32_t message_id
 Unique message identifier.
 
std::experimental::optional< Userfrom
 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< Userforward_from
 Optional. For forwarded messages, sender of the original message
 
std::experimental::optional< Chatforward_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< Messagereply_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< MessageEntityentities
 Optional. For text messages, an array of messageEntinty
 
std::experimental::optional< Audioaudio
 Optional. Message is an audio file, information about the file
 
std::experimental::optional< Documentdocument
 Optional. Message is a general file, information about the file
 
std::vector< PhotoSizephoto
 Optional. Message is a photo, available sizes of the photo
 
std::experimental::optional< Stickersticker
 Optional. Message is a sticker, information about the sticker
 
std::experimental::optional< Videovideo
 Optional. Message is a video, information about the video
 
std::experimental::optional< Voicevoice
 Optional. Message is a voice message, information about the file
 
std::experimental::optional< Contactcontact
 Optional. Message is a shared contact, information about the contact
 
std::experimental::optional< Locationlocation
 Optional. Message is a shared location, information about the location
 
std::experimental::optional< Venuevenue
 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< Usernew_chat_member
 Optional. A new member was added to the group, information about them (this member may be the bot itself).
 
std::experimental::optional< Userleft_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< PhotoSizenew_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< Messagepinned_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.
 

Detailed Description

A message send by user.

This object represents a message. (https://core.telegram.org/bots/api#message)

Member Data Documentation

◆ service_message

EServiceMessage service_message

Service message.

See also
ServiceMessage

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