Telebot  4.7.0
Library for Telegram bot API
Public Attributes | List of all members
telebot_message Struct Reference

This object represents a message. More...

#include <telebot-types.h>

Public Attributes

int message_id
 
struct telebot_userfrom
 
long date
 
struct telebot_chatchat
 
struct telebot_userforward_from
 
struct telebot_chatforward_from_chat
 
int forward_from_message_id
 
char * forward_signature
 
char * forward_sender_name
 
long forward_date
 
struct telebot_messagereply_to_message
 
long edit_date
 
char * media_group_id
 
char * author_signature
 
char * text
 
struct telebot_message_entityentities
 
int count_entities
 
struct telebot_message_entitycaption_entities
 
int count_caption_entities
 
struct telebot_audioaudio
 
struct telebot_documentdocument
 
struct telebot_animationanimation
 
struct telebot_game * game
 
struct telebot_photophotos
 
int count_photos
 
struct telebot_stickersticker
 
struct telebot_videovideo
 
struct telebot_voicevoice
 
struct telebot_video_notevideo_note
 
char * caption
 
struct telebot_contactcontact
 
struct telebot_locationlocation
 
struct telebot_venuevenue
 
struct telebot_pollpoll
 
struct telebot_dicedice
 
struct telebot_usernew_chat_members
 
int count_new_chat_members
 
struct telebot_userleft_chat_members
 
int count_left_chat_members
 
char * new_chat_title
 
struct telebot_photonew_chat_photos
 
int count_new_chat_photos
 
bool delete_chat_photo
 
bool group_chat_created
 
bool supergroup_chat_created
 
bool channel_chat_created
 
long long int migrate_to_chat_id
 
long long int migrate_from_chat_id
 
struct telebot_messagepinned_message
 
struct telebot_invoice * invoice
 
struct telebot_successful_payment * successful_payment
 
char * connected_website
 
struct telebot_passport_data * passport_data
 
struct inline_keyboard_markup * reply_markup
 

Detailed Description

This object represents a message.

Member Data Documentation

◆ animation

struct telebot_animation* telebot_message::animation

Optional. Message is a animation, information about the animation

◆ audio

struct telebot_audio* telebot_message::audio

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

◆ author_signature

char* telebot_message::author_signature

Optional. Signature of the post author for messages in channels

◆ caption

char* telebot_message::caption

Optional. Caption for the photo or video

◆ caption_entities

struct telebot_message_entity* telebot_message::caption_entities

Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption.

◆ channel_chat_created

bool telebot_message::channel_chat_created

Optional. Service message: the channel has been created

◆ chat

struct telebot_chat* telebot_message::chat

Conversation the message belongs to

◆ connected_website

char* telebot_message::connected_website

Optional. The domain name of the website on which the user has logged in.

◆ contact

struct telebot_contact* telebot_message::contact

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

◆ date

long telebot_message::date

Date the message was sent in Unix time

◆ delete_chat_photo

bool telebot_message::delete_chat_photo

Optional. Informs that the chat photo was deleted

◆ dice

struct telebot_dice* telebot_message::dice

Optional. Message is a dice with random value from 1 to 6

◆ document

struct telebot_document* telebot_message::document

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

◆ edit_date

long telebot_message::edit_date

Optional. Date the message was last edited in Unix time

◆ entities

struct telebot_message_entity* telebot_message::entities

Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text.

◆ forward_date

long telebot_message::forward_date

Optional. For forwarded messages, date the original message was sent in Unix time

◆ forward_from

struct telebot_user* telebot_message::forward_from

Optional. For forwarded messages, sender of the original message

◆ forward_from_chat

struct telebot_chat* telebot_message::forward_from_chat

Optional. For messages forwarded from channels, information about the original channel

◆ forward_from_message_id

int telebot_message::forward_from_message_id

Optional. For messages forwarded from channels, identifier of the original message in the channel

◆ forward_sender_name

char* telebot_message::forward_sender_name

Optional. Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages

◆ forward_signature

char* telebot_message::forward_signature

Optional. For messages forwarded from channels, signature of the post author if present

◆ from

struct telebot_user* telebot_message::from

Optional. Sender, can be empty for messages sent to channels

◆ game

struct telebot_game* telebot_message::game

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

◆ group_chat_created

bool telebot_message::group_chat_created

Optional. Informs that the group has been created

◆ invoice

struct telebot_invoice* telebot_message::invoice

Optional. Message is an invoice for a payment, information about the invoice.

◆ left_chat_members

struct telebot_user* telebot_message::left_chat_members

Optional. A member was removed from the group, information about them (this member may be the bot itself)

◆ location

struct telebot_location* telebot_message::location

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

◆ media_group_id

char* telebot_message::media_group_id

Optional. The unique identifier of a media message group this message belongs to

◆ message_id

int telebot_message::message_id

Unique message identifier

◆ migrate_from_chat_id

long long int telebot_message::migrate_from_chat_id

Optional. The supergroup has been migrated from a group with the specified identifier, not exceeding 1e13 by absolute value

◆ migrate_to_chat_id

long long int telebot_message::migrate_to_chat_id

Optional. The group has been migrated to a supergroup with the specified identifier, not exceeding 1e13 by absolute value

◆ new_chat_members

struct telebot_user* telebot_message::new_chat_members

Optional. New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)

◆ new_chat_photos

struct telebot_photo* telebot_message::new_chat_photos

Optional. A chat photo was change to this value

◆ new_chat_title

char* telebot_message::new_chat_title

Optional. A chat title was changed to this value

◆ passport_data

struct telebot_passport_data* telebot_message::passport_data

Telegram Passport data

◆ photos

struct telebot_photo* telebot_message::photos

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

◆ pinned_message

struct telebot_message* telebot_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.

◆ poll

struct telebot_poll* telebot_message::poll

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

◆ reply_markup

struct inline_keyboard_markup* telebot_message::reply_markup

Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.

◆ reply_to_message

struct telebot_message* telebot_message::reply_to_message

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.

◆ sticker

struct telebot_sticker* telebot_message::sticker

Optional. Message is a sticker, information about the sticker

◆ successful_payment

struct telebot_successful_payment* telebot_message::successful_payment

Optional. Message is a service message about a successful payment, information about the payment.

◆ supergroup_chat_created

bool telebot_message::supergroup_chat_created

Optional. Service message: the supergroup has been created

◆ text

char* telebot_message::text

Optional. For text messages, the actual UTF-8 text of the message

◆ venue

struct telebot_venue* telebot_message::venue

Optional. Message is a venue, information about the venue

◆ video

struct telebot_video* telebot_message::video

Optional. Message is a video, information about the video

◆ video_note

struct telebot_video_note* telebot_message::video_note

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

◆ voice

struct telebot_voice* telebot_message::voice

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


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