|
Telebot 9.4
Library for Telegram bot API
|
This object represents a message. More...
#include <telebot-types.h>
This object represents a message.
| 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
| struct telebot_audio* telebot_message::audio |
Optional. Message is an audio file, information about the file
| char* telebot_message::author_signature |
Optional. Signature of the post author for messages in channels
| struct telebot_chat_boost_added* telebot_message::boost_added |
Optional. Service message: user boosted the chat
| char* telebot_message::business_connection_id |
Optional. Unique identifier of the business connection
| char* telebot_message::caption |
Optional. Caption for the photo or video
| 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.
| bool telebot_message::channel_chat_created |
Optional. Service message: the channel has been created
| struct telebot_chat* telebot_message::chat |
Conversation the message belongs to
| struct telebot_chat_background* telebot_message::chat_background_set |
Optional. Service message: chat background set
| struct telebot_chat_shared* telebot_message::chat_shared |
Optional. Service message: a chat was shared with the bot
| char* telebot_message::connected_website |
Optional. The domain name of the website on which the user has logged in.
| struct telebot_contact* telebot_message::contact |
Optional. Message is a shared contact, information about the contact
| long telebot_message::date |
Date the message was sent in Unix time
| bool telebot_message::delete_chat_photo |
Optional. Informs that the chat photo was deleted
| struct telebot_dice* telebot_message::dice |
Optional. Message is a dice with random value from 1 to 6
| struct telebot_document* telebot_message::document |
Optional. Message is a general file, information about the file
| long telebot_message::edit_date |
Optional. Date the message was last edited in Unix time
| char* telebot_message::effect_id |
Optional. Unique identifier of the message effect added to the message
| struct telebot_message_entity* telebot_message::entities |
Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text.
| struct telebot_external_reply_info* telebot_message::external_reply |
Optional. Information about the message that is being replied to
| struct telebot_forum_topic_closed* telebot_message::forum_topic_closed |
Optional. Service message: forum topic closed.
| struct telebot_forum_topic_created* telebot_message::forum_topic_created |
Optional. Service message: forum topic created.
| struct telebot_forum_topic_edited* telebot_message::forum_topic_edited |
Optional. Service message: forum topic edited.
| struct telebot_forum_topic_reopened* telebot_message::forum_topic_reopened |
Optional. Service message: forum topic reopened.
| long telebot_message::forward_date |
Optional. For forwarded messages, date the original message was sent in Unix time
| struct telebot_user* telebot_message::forward_from |
Optional. For forwarded messages, sender of the original message
| struct telebot_chat* telebot_message::forward_from_chat |
Optional. For messages forwarded from channels, information about the original channel
| int telebot_message::forward_from_message_id |
Optional. For messages forwarded from channels, identifier of the original message in the channel
| struct telebot_message_origin* telebot_message::forward_origin |
Optional. Information about the original message for forwarded messages
| 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
| char* telebot_message::forward_signature |
Optional. For messages forwarded from channels, signature of the post author if present
| struct telebot_user* telebot_message::from |
Optional. Sender, can be empty for messages sent to channels
| struct telebot_game* telebot_message::game |
Optional. Message is a game, information about the game.
| struct telebot_general_forum_topic_hidden* telebot_message::general_forum_topic_hidden |
Optional. Service message: general forum topic hidden.
| struct telebot_general_forum_topic_unhidden* telebot_message::general_forum_topic_unhidden |
Optional. Service message: general forum topic unhidden.
| struct telebot_gift_info* telebot_message::gift |
Optional. Service message: a regular gift was sent or received
| struct telebot_giveaway_completed* telebot_message::giveaway_completed |
Optional. Service message: giveaway completed
| struct telebot_giveaway_created* telebot_message::giveaway_created |
Optional. Service message: giveaway created
| bool telebot_message::group_chat_created |
Optional. Informs that the group has been created
| bool telebot_message::has_media_spoiler |
Optional. True, if the message media is covered by a spoiler animation
| bool telebot_message::has_protected_content |
Optional. True, if the message can't be forwarded
| struct telebot_invoice* telebot_message::invoice |
Optional. Message is an invoice for a payment, information about the invoice.
| bool telebot_message::is_automatic_forward |
Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group
| bool telebot_message::is_paid_post |
Optional. True, if the message is a paid post
| bool telebot_message::is_topic_message |
Optional. True, if the message is sent to a forum topic
| 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)
| struct telebot_link_preview_options* telebot_message::link_preview_options |
Optional. Options used for link preview generation for the message
| struct telebot_location* telebot_message::location |
Optional. Message is a shared location, information about the location
| char* telebot_message::media_group_id |
Optional. The unique identifier of a media message group this message belongs to
| 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
| int telebot_message::message_id |
Unique message identifier
| int telebot_message::message_thread_id |
Unique identifier of a message thread to which the message belongs; for supergroups only
| 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
| 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
| 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)
| struct telebot_photo* telebot_message::new_chat_photos |
Optional. A chat photo was change to this value
| char* telebot_message::new_chat_title |
Optional. A chat title was changed to this value
| struct telebot_paid_media_info* telebot_message::paid_media |
Optional. Message contains paid media; information about the paid media
| struct telebot_passport_data* telebot_message::passport_data |
Telegram Passport data
| struct telebot_photo* telebot_message::photos |
Optional. Message is a photo, available sizes of the photo
| 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.
| struct telebot_poll* telebot_message::poll |
Optional. Message is a native poll, information about the poll
| 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.
| struct telebot_text_quote* telebot_message::quote |
Optional. For replies that quote part of the original message, the quoted part
| struct telebot_refunded_payment* telebot_message::refunded_payment |
Optional. Message is a service message about a refunded payment
| struct telebot_inline_keyboard_markup* telebot_message::reply_markup |
Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.
| 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.
| struct telebot_story* telebot_message::reply_to_story |
Optional. For replies to a story, the original story
| int telebot_message::sender_boost_count |
Optional. If the sender of the message boosted the chat, the number of boosts
| struct telebot_user* telebot_message::sender_business_bot |
Optional. The bot that actually sent the message on behalf of the business account.
| 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.
| bool telebot_message::show_caption_above_media |
Optional. True, if the caption must be shown above the message media
| struct telebot_sticker* telebot_message::sticker |
Optional. Message is a sticker, information about the sticker
| struct telebot_successful_payment* telebot_message::successful_payment |
Optional. Message is a service message about a successful payment, information about the payment.
| bool telebot_message::supergroup_chat_created |
Optional. Service message: the supergroup has been created
| char* telebot_message::text |
Optional. For text messages, the actual UTF-8 text of the message
| struct telebot_unique_gift_info* telebot_message::unique_gift |
Optional. Service message: a unique gift was sent or received
| struct telebot_users_shared* telebot_message::users_shared |
Optional. Service message: users were shared with the bot
| struct telebot_venue* telebot_message::venue |
Optional. Message is a venue, information about the venue
| struct telebot_user* telebot_message::via_bot |
Optional. Bot through which the message was sent
| struct telebot_video* telebot_message::video |
Optional. Message is a video, information about the video
| struct telebot_video_chat_ended* telebot_message::video_chat_ended |
Optional. Service message: video chat ended.
| struct telebot_video_chat_participants_invited* telebot_message::video_chat_participants_invited |
Optional. Service message: new participants invited to a video chat.
| struct telebot_video_chat_scheduled* telebot_message::video_chat_scheduled |
Optional. Service message: video chat scheduled.
| struct telebot_video_chat_started* telebot_message::video_chat_started |
Optional. Service message: video chat started.
| struct telebot_video_note* telebot_message::video_note |
Optional. Message is a video note, information about the video message
| struct telebot_voice* telebot_message::voice |
Optional. Message is a voice message, information about the file
| struct telebot_web_app_data* telebot_message::web_app_data |
Optional. Service message: data sent by a Web App.
| struct telebot_write_access_allowed* telebot_message::write_access_allowed |
Optional. Service message: the user allowed the bot to write messages