Telebot 9.4
Library for Telegram bot API
Loading...
Searching...
No Matches
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
 
int message_thread_id
 
struct telebot_userfrom
 
struct telebot_chatsender_chat
 
int sender_boost_count
 
struct telebot_usersender_business_bot
 
char * business_connection_id
 
long date
 
struct telebot_chatchat
 
struct telebot_message_originforward_origin
 
struct telebot_userforward_from
 
struct telebot_chatforward_from_chat
 
int forward_from_message_id
 
char * forward_signature
 
char * forward_sender_name
 
long forward_date
 
bool is_topic_message
 
bool is_automatic_forward
 
struct telebot_messagereply_to_message
 
struct telebot_external_reply_infoexternal_reply
 
struct telebot_text_quotequote
 
struct telebot_storyreply_to_story
 
struct telebot_uservia_bot
 
long edit_date
 
bool has_protected_content
 
bool is_paid_post
 
char * media_group_id
 
char * author_signature
 
char * text
 
struct telebot_message_entityentities
 
int count_entities
 
struct telebot_link_preview_optionslink_preview_options
 
char * effect_id
 
struct telebot_animationanimation
 
struct telebot_audioaudio
 
struct telebot_documentdocument
 
struct telebot_paid_media_infopaid_media
 
struct telebot_photophotos
 
int count_photos
 
struct telebot_stickersticker
 
struct telebot_videovideo
 
struct telebot_video_notevideo_note
 
struct telebot_voicevoice
 
char * caption
 
struct telebot_message_entitycaption_entities
 
int count_caption_entities
 
bool show_caption_above_media
 
struct telebot_contactcontact
 
struct telebot_dicedice
 
struct telebot_gamegame
 
struct telebot_pollpoll
 
struct telebot_venuevenue
 
struct telebot_locationlocation
 
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
 
struct telebot_message_auto_delete_timer_changedmessage_auto_delete_timer_changed
 
long long int migrate_to_chat_id
 
long long int migrate_from_chat_id
 
struct telebot_messagepinned_message
 
struct telebot_invoiceinvoice
 
struct telebot_successful_paymentsuccessful_payment
 
struct telebot_refunded_paymentrefunded_payment
 
struct telebot_write_access_allowedwrite_access_allowed
 
char * connected_website
 
struct telebot_passport_datapassport_data
 
struct telebot_proximity_alert_triggeredproximity_alert_triggered
 
struct telebot_forum_topic_createdforum_topic_created
 
struct telebot_forum_topic_editedforum_topic_edited
 
struct telebot_forum_topic_closedforum_topic_closed
 
struct telebot_forum_topic_reopenedforum_topic_reopened
 
struct telebot_general_forum_topic_hiddengeneral_forum_topic_hidden
 
struct telebot_general_forum_topic_unhiddengeneral_forum_topic_unhidden
 
struct telebot_video_chat_scheduledvideo_chat_scheduled
 
struct telebot_video_chat_startedvideo_chat_started
 
struct telebot_video_chat_endedvideo_chat_ended
 
struct telebot_video_chat_participants_invitedvideo_chat_participants_invited
 
struct telebot_web_app_dataweb_app_data
 
struct telebot_users_sharedusers_shared
 
struct telebot_chat_sharedchat_shared
 
struct telebot_gift_infogift
 
struct telebot_unique_gift_infounique_gift
 
struct telebot_chat_boost_addedboost_added
 
struct telebot_chat_backgroundchat_background_set
 
struct telebot_giveaway_createdgiveaway_created
 
struct telebot_giveaway_completedgiveaway_completed
 
bool has_media_spoiler
 
struct telebot_inline_keyboard_markupreply_markup
 

Detailed Description

This object represents a message.

Member Data Documentation

◆ animation

struct telebot_animation* telebot_message::animation

Optional. Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set

◆ 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

◆ boost_added

struct telebot_chat_boost_added* telebot_message::boost_added

Optional. Service message: user boosted the chat

◆ business_connection_id

char* telebot_message::business_connection_id

Optional. Unique identifier of the business connection

◆ 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

◆ chat_background_set

struct telebot_chat_background* telebot_message::chat_background_set

Optional. Service message: chat background set

◆ chat_shared

struct telebot_chat_shared* telebot_message::chat_shared

Optional. Service message: a chat was shared with the bot

◆ 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

◆ effect_id

char* telebot_message::effect_id

Optional. Unique identifier of the message effect added to the message

◆ 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.

◆ external_reply

struct telebot_external_reply_info* telebot_message::external_reply

Optional. Information about the message that is being replied to

◆ forum_topic_closed

struct telebot_forum_topic_closed* telebot_message::forum_topic_closed

Optional. Service message: forum topic closed.

◆ forum_topic_created

struct telebot_forum_topic_created* telebot_message::forum_topic_created

Optional. Service message: forum topic created.

◆ forum_topic_edited

struct telebot_forum_topic_edited* telebot_message::forum_topic_edited

Optional. Service message: forum topic edited.

◆ forum_topic_reopened

struct telebot_forum_topic_reopened* telebot_message::forum_topic_reopened

Optional. Service message: forum topic reopened.

◆ 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_origin

struct telebot_message_origin* telebot_message::forward_origin

Optional. Information about the original message for forwarded messages

◆ 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.

◆ general_forum_topic_hidden

struct telebot_general_forum_topic_hidden* telebot_message::general_forum_topic_hidden

Optional. Service message: general forum topic hidden.

◆ general_forum_topic_unhidden

struct telebot_general_forum_topic_unhidden* telebot_message::general_forum_topic_unhidden

Optional. Service message: general forum topic unhidden.

◆ gift

struct telebot_gift_info* telebot_message::gift

Optional. Service message: a regular gift was sent or received

◆ giveaway_completed

struct telebot_giveaway_completed* telebot_message::giveaway_completed

Optional. Service message: giveaway completed

◆ giveaway_created

struct telebot_giveaway_created* telebot_message::giveaway_created

Optional. Service message: giveaway created

◆ group_chat_created

bool telebot_message::group_chat_created

Optional. Informs that the group has been created

◆ has_media_spoiler

bool telebot_message::has_media_spoiler

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

◆ has_protected_content

bool telebot_message::has_protected_content

Optional. True, if the message can't be forwarded

◆ invoice

struct telebot_invoice* telebot_message::invoice

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

◆ is_automatic_forward

bool telebot_message::is_automatic_forward

Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group

◆ is_paid_post

bool telebot_message::is_paid_post

Optional. True, if the message is a paid post

◆ is_topic_message

bool telebot_message::is_topic_message

Optional. True, if the message is sent to a forum topic

◆ 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)

◆ link_preview_options

struct telebot_link_preview_options* telebot_message::link_preview_options

Optional. Options used for link preview generation for the message

◆ 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_auto_delete_timer_changed

struct telebot_message_auto_delete_timer_changed* telebot_message::message_auto_delete_timer_changed

Optional. Service message: auto-delete timer settings changed in the chat

◆ message_id

int telebot_message::message_id

Unique message identifier

◆ message_thread_id

int telebot_message::message_thread_id

Unique identifier of a message thread to which the message belongs; for supergroups only

◆ 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

◆ paid_media

struct telebot_paid_media_info* telebot_message::paid_media

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

◆ 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

◆ proximity_alert_triggered

struct telebot_proximity_alert_triggered* telebot_message::proximity_alert_triggered

Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.

◆ quote

struct telebot_text_quote* telebot_message::quote

Optional. For replies that quote part of the original message, the quoted part

◆ refunded_payment

struct telebot_refunded_payment* telebot_message::refunded_payment

Optional. Message is a service message about a refunded payment

◆ reply_markup

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

◆ reply_to_story

struct telebot_story* telebot_message::reply_to_story

Optional. For replies to a story, the original story

◆ sender_boost_count

int telebot_message::sender_boost_count

Optional. If the sender of the message boosted the chat, the number of boosts

◆ sender_business_bot

struct telebot_user* telebot_message::sender_business_bot

Optional. The bot that actually sent the message on behalf of the business account.

◆ sender_chat

struct telebot_chat* telebot_message::sender_chat

Optional. Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, the supergroup itself for messages from anonymous group administrators, the linked channel for messages automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.

◆ show_caption_above_media

bool telebot_message::show_caption_above_media

Optional. True, if the caption must be shown above the message media

◆ 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

◆ unique_gift

struct telebot_unique_gift_info* telebot_message::unique_gift

Optional. Service message: a unique gift was sent or received

◆ users_shared

struct telebot_users_shared* telebot_message::users_shared

Optional. Service message: users were shared with the bot

◆ venue

struct telebot_venue* telebot_message::venue

Optional. Message is a venue, information about the venue

◆ via_bot

struct telebot_user* telebot_message::via_bot

Optional. Bot through which the message was sent

◆ video

struct telebot_video* telebot_message::video

Optional. Message is a video, information about the video

◆ video_chat_ended

struct telebot_video_chat_ended* telebot_message::video_chat_ended

Optional. Service message: video chat ended.

◆ video_chat_participants_invited

struct telebot_video_chat_participants_invited* telebot_message::video_chat_participants_invited

Optional. Service message: new participants invited to a video chat.

◆ video_chat_scheduled

struct telebot_video_chat_scheduled* telebot_message::video_chat_scheduled

Optional. Service message: video chat scheduled.

◆ video_chat_started

struct telebot_video_chat_started* telebot_message::video_chat_started

Optional. Service message: video chat started.

◆ 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

◆ web_app_data

struct telebot_web_app_data* telebot_message::web_app_data

Optional. Service message: data sent by a Web App.

◆ write_access_allowed

struct telebot_write_access_allowed* telebot_message::write_access_allowed

Optional. Service message: the user allowed the bot to write messages


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