Telebot  4.7.0
Library for Telegram bot API
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_callback_query_t   callback_query
 
   telebot_poll_t   poll
 
   telebot_poll_answer_t   poll_anser
 
}; 
 

Detailed Description

This object represents an incoming update.

Member Data Documentation

◆ callback_query

telebot_callback_query_t telebot_update::callback_query

New incoming inline query 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.New incoming callback query

◆ channel_post

telebot_message_t telebot_update::channel_post

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

◆ 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

◆ message

telebot_message_t telebot_update::message

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

◆ poll

telebot_poll_t telebot_update::poll

New incoming shipping query. Only for invoices with flexible price New incoming pre-checkout query. Contains full information about checkout New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot

◆ poll_anser

telebot_poll_answer_t telebot_update::poll_anser

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

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