Telebot 9.4
Library for Telegram bot API
Loading...
Searching...
No Matches
Public Attributes | List of all members
telebot_update Struct Reference

This object represents an incoming update. More...

#include <telebot-types.h>

Public Attributes

int update_id
 
telebot_update_type_e update_type
 
union { 
 
   telebot_message_t   message 
 
   telebot_message_t   edited_message 
 
   telebot_message_t   channel_post 
 
   telebot_message_t   edited_channel_post 
 
   telebot_business_connection_t   business_connection 
 
   telebot_message_t   business_message 
 
   telebot_message_t   edited_business_message 
 
   telebot_business_messages_deleted_t   deleted_business_messages 
 
   telebot_inline_query_t   inline_query 
 
   telebot_chosen_inline_result_t   chosen_inline_result 
 
   telebot_callback_query_t   callback_query 
 
   telebot_shipping_query_t   shipping_query 
 
   telebot_pre_checkout_query_t   pre_checkout_query 
 
   telebot_paid_media_purchased_t   purchased_paid_media 
 
   telebot_poll_t   poll 
 
   telebot_poll_answer_t   poll_answer 
 
   telebot_chat_member_updated_t   my_chat_member 
 
   telebot_chat_member_updated_t   chat_member 
 
   telebot_chat_join_request_t   chat_join_request 
 
   telebot_message_reaction_updated_t   message_reaction 
 
   telebot_message_reaction_count_updated_t   message_reaction_count 
 
   telebot_chat_boost_updated_t   chat_boost 
 
   telebot_chat_boost_removed_t   chat_boost_removed 
 
};  
 

Detailed Description

This object represents an incoming update.

Member Data Documentation

◆ business_connection

telebot_business_connection_t telebot_update::business_connection

The bot was connected to or disconnected from a business account

◆ business_message

telebot_message_t telebot_update::business_message

New message from a connected business account

◆ callback_query

telebot_callback_query_t telebot_update::callback_query

New incoming callback query

◆ channel_post

telebot_message_t telebot_update::channel_post

New incoming channel post of any kind — text, photo, sticker, etc.

◆ chat_boost

telebot_chat_boost_updated_t telebot_update::chat_boost

A chat boost was added or changed. The bot must be an administrator in the chat to receive these updates.

◆ chat_boost_removed

telebot_chat_boost_removed_t telebot_update::chat_boost_removed

A boost was removed from a chat. The bot must be an administrator in the chat to receive these updates.

◆ chat_join_request

telebot_chat_join_request_t telebot_update::chat_join_request

A request to join the chat has been sent. The bot must have the can_invite_users administrator right in the chat to receive these updates.

◆ chat_member

telebot_chat_member_updated_t telebot_update::chat_member

A chat member's status was updated in a chat. The bot must be an administrator in the chat and must explicitly specify "chat_member" in the list of allowed_updates to receive these updates.

◆ chosen_inline_result

telebot_chosen_inline_result_t telebot_update::chosen_inline_result

The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot.

◆ deleted_business_messages

telebot_business_messages_deleted_t telebot_update::deleted_business_messages

Messages were deleted from a connected business account

◆ edited_business_message

telebot_message_t telebot_update::edited_business_message

New version of a message from a connected business account

◆ edited_channel_post

telebot_message_t telebot_update::edited_channel_post

New version of a channel post that is known to the bot and was edited

◆ edited_message

telebot_message_t telebot_update::edited_message

New version of a message that is known to the bot and was edited

◆ inline_query

telebot_inline_query_t telebot_update::inline_query

New incoming inline query

◆ message

telebot_message_t telebot_update::message

New incoming message of any kind — text, photo, sticker, etc.

◆ message_reaction

telebot_message_reaction_updated_t telebot_update::message_reaction

A reaction to a message was changed by a user. The bot must be an administrator in the chat and must explicitly specify "message_reaction" in the list of allowed_updates to receive these updates.

◆ message_reaction_count

telebot_message_reaction_count_updated_t telebot_update::message_reaction_count

Reactions to a message with anonymous reactions were changed. The bot must be an administrator in the chat and must explicitly specify "message_reaction_count" in the list of allowed_updates to receive these updates.

◆ my_chat_member

telebot_chat_member_updated_t telebot_update::my_chat_member

The bot's chat member status was updated in a chat. For private chats, this update is received only when the bot is blocked or unblocked by the user.

◆ poll

telebot_poll_t telebot_update::poll

New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot

◆ poll_answer

telebot_poll_answer_t telebot_update::poll_answer

A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself.

◆ pre_checkout_query

telebot_pre_checkout_query_t telebot_update::pre_checkout_query

New incoming pre-checkout query. Contains full information about checkout

◆ purchased_paid_media

telebot_paid_media_purchased_t telebot_update::purchased_paid_media

A user purchased paid media

◆ shipping_query

telebot_shipping_query_t telebot_update::shipping_query

New incoming shipping query. Only for invoices with flexible price

◆ update_id

int telebot_update::update_id

The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially.

◆ update_type

telebot_update_type_e telebot_update::update_type

The type of the update.


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