Telebot 9.4
Library for Telegram bot API
Loading...
Searching...
No Matches
telebot-types.h
Go to the documentation of this file.
1/*
2 * telebot
3 *
4 * Copyright (c) 2015 Elmurod Talipov.
5 *
6 * Licensed under the Apache License, Version 2.0 (the License);
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19#ifndef __TELEBOT_TYPES_H__
20#define __TELEBOT_TYPES_H__
21
22#include <stdbool.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
70
74typedef struct telebot_birthdate {
76 int day;
77
79 int month;
80
82 int year;
84
98
109
120
132
137 bool can_reply;
138 bool can_read_messages;
139 bool can_delete_sent_messages;
140 bool can_delete_all_messages;
141 bool can_edit_name;
142 bool can_edit_bio;
143 bool can_edit_profile_photo;
144 bool can_edit_username;
145 bool can_change_gift_settings;
146 bool can_view_gifts_and_stars;
147 bool can_convert_gifts_to_stars;
148 bool can_transfer_and_upgrade_gifts;
149 bool can_transfer_stars;
150 bool can_manage_stories;
152
157 char *id;
158 struct telebot_user *user;
159 long long int user_chat_id;
160 long date;
161 bool can_reply;
162 bool is_enabled;
164
169 char *business_connection_id;
170 struct telebot_chat *chat;
171 int *message_ids;
172 int count_message_ids;
174
225
229typedef struct telebot_chat {
231 long long int id;
232
234 char *type;
235
237 char *title;
238
240 char *username;
241
244
247
250
253
256
259
262
267 int count_active_usernames;
268
271
274
277
280
283
286
292
295
297 char *bio;
298
305
312
318
324
330
336
341
347
353
356
362
365
368
374
377
383
389
392
398 long long int linked_chat_id;
399
406
410typedef struct telebot_game {
412 char *title;
413
416
419
422
427 char *text;
428
434 int count_text_entities;
435
441
464
481
485typedef struct telebot_invoice {
487 char *title;
488
491
497
499 char *currency;
500
507
536
556
567 char *type;
568
573 char *data;
574
577
579 char *email;
580
583 int count_files;
584
587
590
593
596 int count_translation;
597
599 char *hash;
601
615
631
646
661
670
679
688
697
706
716
730
734typedef struct telebot_callback_game {
735 bool dummy;
737
755
776
785
852
870
882
891
900
910
922
934
966
992
1015
1023
1026
1029
1032
1034 long date;
1035
1038 int count_old_reaction;
1039
1042 int count_new_reaction;
1044
1063
1077
1088
1099
1116
1127
1144
1170
1175typedef struct telebot_text_quote {
1177 char *text;
1178
1181 int count_entities;
1182
1185
1189
1200
1279
1299
1303typedef struct telebot_paid_media {
1305 char *type;
1306
1309
1312
1315
1318 int count_photos;
1319
1323
1335
1339typedef struct telebot_giveaway {
1342 int count_chats;
1343
1346
1349
1352
1355
1358
1361 int count_country_codes;
1362
1365
1369
1412
1432
1437typedef struct telebot_users_shared {
1440
1443 int count_users;
1445
1450typedef struct telebot_shared_user {
1452 long long int user_id;
1453
1456
1459
1462
1465 int count_photo;
1467
1496
1500typedef struct telebot_gift_info {
1503
1505 char *text;
1506
1509 int count_entities;
1510
1514
1531
1548
1556
1564
1572
1590
1601
1621
1635
1686
1709
1718
1729
1735 char *source;
1736
1738 char *type;
1739
1742
1745
1747 char *message;
1748
1751
1754 int count_file_hashes;
1755
1759
1773
1777typedef struct telebot_message {
1780
1786
1789
1799
1802
1805
1808
1810 long date;
1811
1814
1817
1820
1826
1832
1838
1844
1850
1853
1859
1866
1869
1872
1875
1878
1881
1884
1887
1893
1896
1898 char *text;
1899
1905 int count_entities;
1906
1909
1912
1919
1922
1925
1928
1931 int count_photos;
1932
1935
1938
1941
1944
1946 char *caption;
1947
1953 int count_caption_entities;
1954
1957
1960
1963
1966
1969
1972
1975
1981 int count_new_chat_members;
1982
1988 int count_left_chat_members;
1989
1992
1995 int count_new_chat_photos;
1996
1999
2002
2005
2008
2011
2016 long long int migrate_to_chat_id;
2017
2023
2030
2036
2042
2045
2048
2051
2054
2060
2063
2066
2069
2072
2075
2078
2081
2084
2087
2090
2093
2096
2099
2102
2105
2108
2111
2114
2117
2120
2127
2159
2160
2165typedef struct telebot_photo {
2167 char *file_id;
2168
2174
2177
2180
2184
2185
2190typedef struct telebot_audio {
2192 char *file_id;
2193
2199
2202
2205
2207 char *title;
2208
2211
2214
2218
2228
2240
2274
2286
2296
2301typedef struct telebot_document {
2303 char *file_id;
2304
2310
2313
2316
2319
2323
2324
2328typedef struct telebot_video {
2330 char *file_id;
2331
2337
2340
2343
2346
2349
2352
2356
2360typedef struct telebot_animation {
2362 char *file_id;
2363
2369
2372
2375
2378
2381
2384
2387
2391
2395typedef struct telebot_voice {
2397 char *file_id;
2398
2404
2407
2410
2414
2415
2442
2443
2447typedef struct telebot_contact {
2450
2453
2456
2459
2461 char *vcard;
2463
2464
2475
2476
2500
2511
2515typedef struct telebot_poll_answer {
2517 char *poll_id;
2518
2521
2527
2528 /* Number of option ids */
2529 int count_option_ids;
2531
2535typedef struct telebot_poll {
2537 char *id;
2538
2541
2544
2545 /* Number of options */
2546 int count_options;
2547
2550
2553
2556
2558 char *type;
2559
2562
2570
2578
2592
2602typedef struct telebot_file {
2604 char *file_id;
2605
2611
2614
2618
2632
2658
2665
2668
2671
2674
2677
2679 struct telebot_chat_administrator_rights *user_administrator_rights;
2680
2682 struct telebot_chat_administrator_rights *bot_administrator_rights;
2683
2686
2689
2692
2696
2704
2756
2766
2767 /* Number of keyboard rows */
2768 int keyboard_rows;
2769
2770 /* Number of keyboard columns */
2771 int keyboard_cols;
2772
2778
2786
2795
2804
2828
2876
2901
2902
2932
3044
3094
3106
3126
3131typedef struct telebot_inline_query {
3133 char *id;
3134
3137
3139 char *query;
3140
3142 char *offset;
3143
3146
3150
3175
3192
3221
3231 char *point;
3232
3238 float x_shift;
3239
3245 float y_shift;
3246
3248 float scale;
3250
3254typedef struct telebot_sticker {
3256 char *file_id;
3257
3263
3266
3269
3272
3275
3277 char *emoji;
3278
3281
3284
3288
3305
3316
3324
3421
3465
3476
3485
3489typedef struct telebot_handler *telebot_handler_t;
3490
3495#ifdef __cplusplus
3496}
3497#endif
3498
3499#endif /* __TELEBOT_TYPES_H__ */
struct telebot_giveaway telebot_giveaway_t
This object represents a message about a scheduled giveaway.
struct telebot_bot_command telebot_bot_command_t
This object represents a bot command.
struct telebot_game_high_score telebot_game_high_score_t
This object represents a game high score row.
struct telebot_game telebot_game_t
This object represents a game.
struct telebot_giveaway_created telebot_giveaway_created_t
This object represents a service message about the creation of a scheduled giveaway.
struct telebot_chat_background telebot_chat_background_t
This object represents a chat background.
struct telebot_chat_location telebot_chat_location_t
Thi object represetns information about the current status of a webhook.
struct telebot_shipping_address telebot_shipping_address_t
This object represents a shipping address.
struct telebot_user_gift telebot_user_gift_t
This object represents a gift received by a user.
struct telebot_video_chat_started telebot_video_chat_started_t
This object represents a service message about a video chat started in the chat.
struct telebot_user telebot_user_t
This object represents a Telegram user or bot.
struct telebot_business_intro telebot_business_intro_t
Contains information about the start page settings of a Telegram Business account.
struct telebot_user_profile_photos telebot_user_profile_photos_t
This object represent a user's profile pictures.
struct telebot_message_reaction_updated telebot_message_reaction_updated_t
This object represents a change of a reaction on a message performed by a user.
struct telebot_pre_checkout_query telebot_pre_checkout_query_t
This object contains information about an incoming pre-checkout query.
struct telebot_login_url telebot_login_url_t
This object represents a parameter of the inline keyboard button used to automatically authorize a us...
struct telebot_video_chat_participants_invited telebot_video_chat_participants_invited_t
This object represents a service message about new members invited to a video chat.
struct telebot_link_preview_options telebot_link_preview_options_t
Describes the options used for link preview generation.
struct telebot_message telebot_message_t
This object represents a message.
struct telebot_keyboard_button_request_chat telebot_keyboard_button_request_chat_t
This object defines the criteria used to request a suitable chat.
struct telebot_chat telebot_chat_t
This object represents a chat.
struct telebot_gift telebot_gift_t
This object represents a gift that can be sent by the bot.
struct telebot_video_chat_ended telebot_video_chat_ended_t
This object represents a service message about a video chat ended in the chat.
struct telebot_prepared_inline_message telebot_prepared_inline_message_t
This object represents a prepared inline message.
struct telebot_star_transactions telebot_star_transactions_t
Contains a list of Telegram Star transactions.
struct telebot_encrypted_credentials telebot_encrypted_credentials_t
This object represents credentials required to decrypt the data.
struct telebot_passport_data telebot_passport_data_t
Contains information about Telegram Passport data which was shared with the bot by the user.
struct telebot_forum_topic_edited telebot_forum_topic_edited_t
This object represents a service message about a forum topic edited in the chat.
struct telebot_reply_keyboard_markup telebot_reply_keyboard_markup_t
This object represents a custom keyboard with reply options.
struct telebot_giveaway_winners telebot_giveaway_winners_t
This object represents a message about the completion of a giveaway with public winners.
struct telebot_star_transaction telebot_star_transaction_t
Describes a Telegram Star transaction.
struct telebot_business_opening_hours telebot_business_opening_hours_t
Describes the opening hours of a business.
struct telebot_write_access_allowed telebot_write_access_allowed_t
This object represents a service message about a user allowing a bot to write messages after adding t...
struct telebot_callback_game telebot_callback_game_t
A placeholder, currently holds no information. Use BotFather to set up your game.
struct telebot_forum_topic_reopened telebot_forum_topic_reopened_t
This object represents a service message about a forum topic reopened in the chat.
struct telebot_users_shared telebot_users_shared_t
This object contains information about the users whose identifiers were shared with the bot using a K...
struct telebot_message_reaction_count_updated telebot_message_reaction_count_updated_t
This object represents reaction changes on a message with anonymous reactions.
struct telebot_inline_keyboard_markup telebot_inline_keyboard_markup_t
This object represents an inline keyboard that appears right next to the message it belongs to.
struct telebot_poll_answer telebot_poll_answer_t
This object represents an answer of a user in a non-anonymous poll.
struct telebot_chat_member telebot_chat_member_t
This object contains information about one member of a chat.
struct telebot_chat_boost telebot_chat_boost_t
This object contains information about a chat boost.
enum telebot_update_type telebot_update_type_e
Enumerations of telegram update types.
struct telebot_invoice telebot_invoice_t
This object contains basic information about an invoice.
struct telebot_affiliate_info telebot_affiliate_info_t
Contains information about the affiliate that received a commission.
struct telebot_user_gifts telebot_user_gifts_t
This object represents a list of gifts received by a user.
struct telebot_poll telebot_poll_t
This object contains information about a poll.
struct telebot_unique_gift telebot_unique_gift_t
This object describes a unique gift that was upgraded from a regular gift.
struct telebot_inline_keyboard_button telebot_inline_keyboard_button_t
This object represents one button of an inline keyboard. You must use exactly one of the optional fie...
struct telebot_paid_media telebot_paid_media_t
This object describes paid media.
struct telebot_contact telebot_contact_t
This object represents a phone contact.
struct telebot_passport_element_error telebot_passport_element_error_t
This object represents an error in the Telegram Passport element.
struct telebot_document telebot_document_t
This object represents a general file (as opposed to photos, voice messages and audio files).
struct telebot_successful_payment telebot_successful_payment_t
This object contains basic information about a successful payment.
struct telebot_message_entity telebot_message_entity_t
This object represents one special entity in a text message. For example, hashtags,...
struct telebot_business_connection telebot_business_connection_t
Describes the connection of the bot with a business account.
struct telebot_poll_option telebot_poll_option_t
This object contains information about one answer option in a poll.
struct telebot_business_location telebot_business_location_t
Contains information about the location of a Telegram Business account.
telebot_update_type
Enumerations of telegram update types.
Definition telebot-types.h:44
struct telebot_video telebot_video_t
This object represents a video file.
struct telebot_switch_inline_query_chosen_chat telebot_switch_inline_query_chosen_chat_t
This object represents an inline button that switches the current user to inline mode in a chosen cha...
struct telebot_keyboard_button_poll_type telebot_keyboard_button_poll_type_t
This object represents type of a poll, which is allowed to be created and sent when the corresponding...
struct telebot_copy_text_button telebot_copy_text_button_t
This object represents an inline keyboard button that copies specified text to the clipboard.
struct telebot_shipping_query telebot_shipping_query_t
This object contains information about an incoming shipping query.
struct telebot_message_auto_delete_timer_changed telebot_message_auto_delete_timer_changed_t
This object represents a service message about a change in auto-delete timer settings.
struct telebot_chat_boost_updated telebot_chat_boost_updated_t
This object represents a boost added to a chat.
struct telebot_force_reply telebot_force_reply_t
Upon receiving a message with this object, Telegram clients will display a reply interface to the use...
struct telebot_sticker telebot_sticker_t
This object represents a sticker.
struct telebot_story telebot_story_t
This object contains information about a story.
struct telebot_chat_photo telebot_chat_photo_t
This object represents a chat photo.
struct telebot_chat_boost_added telebot_chat_boost_added_t
This object represents a service message about a user boosting a chat.
struct telebot_general_forum_topic_unhidden telebot_general_forum_topic_unhidden_t
This object represents a service message about a general forum topic unhidden in the chat.
struct telebot_web_app_info telebot_web_app_info_t
Describes a Web App.
struct telebot_encrypted_passport_element telebot_encrypted_passport_element_t
This object represents one element of the Telegram Passport data.
struct telebot_proximity_alert_triggered telebot_proximity_alert_triggered_t
This object represents a service message about a user in the chat triggered another user's proximity ...
struct telebot_chat_shared telebot_chat_shared_t
This object contains information about the chat whose identifier was shared with the bot using a Keyb...
struct telebot_video_note telebot_video_note_t
This object represents a video message (available in Telegram apps as of v.4.0).
struct telebot_unique_gift_info telebot_unique_gift_info_t
Describes a unique gift that was sent or received.
struct telebot_message_origin telebot_message_origin_t
This object describes the origin of a message.
struct telebot_mask_position telebot_mask_position_t
This object describes the position on faces where a mask should be placed by default.
struct telebot_voice telebot_voice_t
This object represents a voice note.
struct telebot_chosen_inline_result telebot_chosen_inline_result_t
Represents a result of an inline query that was chosen by the user and sent to their chat partner.
struct telebot_transaction_partner telebot_transaction_partner_t
This object describes the source of a transaction.
struct telebot_reply_keyboard_remove telebot_reply_keyboard_remove_t
Upon receiving a message with this object, Telegram clients will remove the current custom keyboard a...
struct telebot_handler * telebot_handler_t
This is opaque object to represent a telebot handler.
Definition telebot-types.h:3489
struct telebot_keyboard_button_request_users telebot_keyboard_button_request_users_t
This object defines the criteria used to request suitable users.
struct telebot_video_chat_scheduled telebot_video_chat_scheduled_t
This object represents a service message about a video chat scheduled in the chat.
struct telebot_general_forum_topic_hidden telebot_general_forum_topic_hidden_t
This object represents a service message about a general forum topic hidden in the chat.
struct telebot_text_quote telebot_text_quote_t
This object contains information about the quoted part of a message that is replied to by the given m...
struct telebot_user_profile_audios telebot_user_profile_audios_t
This object represents a list of user profile audios.
struct telebot_gift_info telebot_gift_info_t
Describes a regular gift that was sent or received.
struct telebot_sent_web_app_message telebot_sent_web_app_message_t
This object represents a message sent via a Web App.
struct telebot_shared_user telebot_shared_user_t
This object contains information about a user that was shared with the bot.
struct telebot_star_amount telebot_star_amount_t
Describes an amount of Telegram Stars.
struct telebot_chat_member_updated telebot_chat_member_updated_t
This object represents changes in the status of a chat member.
struct telebot_business_opening_hours_interval telebot_business_opening_hours_interval_t
Describes an interval of time during which a business is open.
struct telebot_order_info telebot_order_info_t
This object represents information about an order.
struct telebot_chat_boost_removed telebot_chat_boost_removed_t
This object represents a boost removed from a chat.
struct telebot_callback_query telebot_callback_query_t
This object represents an incoming callback query from a callback button in an inline keyboard....
struct telebot_response_paramters telebot_response_paramters_t
Contains information about why a request was unsuccessful.
struct telebot_reaction_count telebot_reaction_count_t
This object represents a reaction count.
struct telebot_passport_file telebot_passport_file_t
This object represents an internal identifier of a user in Telegram Passport.
struct telebot_inline_query telebot_inline_query_t
This object represents an incoming inline query. When the user sends an empty query,...
struct telebot_paid_media_purchased telebot_paid_media_purchased_t
This object contains information about a paid media purchase.
struct telebot_business_messages_deleted telebot_business_messages_deleted_t
This object is received when messages are deleted from a connected business account.
struct telebot_refunded_payment telebot_refunded_payment_t
This object represents a service message about a refunded payment.
struct telebot_business_bot_rights telebot_business_bot_rights_t
Represents the rights of a business bot.
struct telebot_chat_invite_link telebot_chat_invite_link_t
This object represents a chat invite link.
struct telebot_forum_topic telebot_forum_topic_t
This object represents a forum topic.
struct telebot_user_shared telebot_user_shared_t
This object contains information about the user whose identifier was shared with the bot using a Keyb...
struct telebot_forum_topic_created telebot_forum_topic_created_t
This object represents a service message about a new forum topic created in the chat.
struct telebot_chat_boost_source telebot_chat_boost_source_t
This object represents the source of a chat boost.
struct telebot_webhook_info telebot_webhook_info_t
Thi object represetns information about the current status of a webhook.
struct telebot_chat_join_request telebot_chat_join_request_t
This object represents a join request sent to a chat.
struct telebot_giveaway_completed telebot_giveaway_completed_t
This object represents a service message about the completion of a giveaway without public winners.
struct telebot_forum_topic_closed telebot_forum_topic_closed_t
This object represents a service message about a forum topic closed in the chat.
struct telebot_keyboard_button telebot_keyboard_button_t
This object represents one button of the reply keyboard. For simple text buttons String can be used i...
struct telebot_chat_permissions telebot_chat_permissions_t
Describes actions that a non-administrator user is allowed to take in a chat.
struct telebot_file telebot_file_t
This object represents a file ready to be downloaded.
struct telebot_reaction_type telebot_reaction_type_t
This object represents a reaction type.
struct telebot_dice telebot_dice_t
This object represents a dice with random value from 1 to 6.
struct telebot_gifts telebot_gifts_t
This object represent a list of gifts.
struct telebot_web_app_data telebot_web_app_data_t
This object represents data sent by a Web App to the bot.
struct telebot_birthdate telebot_birthdate_t
Describes the birthdate of a user.
struct telebot_venue telebot_venue_t
This object represents a venue.
struct telebot_revenue_withdrawal_state telebot_revenue_withdrawal_state_t
This object describes the state of a revenue withdrawal operation.
struct telebot_animation telebot_animation_t
This object represents a video file.
struct telebot_location telebot_location_t
This object represents a point on the map.
struct telebot_user_chat_boosts telebot_user_chat_boosts_t
This object represents a list of user chat boosts.
struct telebot_update telebot_update_t
This object represents an incoming update.
struct telebot_external_reply_info telebot_external_reply_info_t
This object contains information about the message that is being replied to, which may come from anot...
struct telebot_paid_media_info telebot_paid_media_info_t
Describes the paid media added to a message.
struct telebot_photo telebot_photo_t
This object represents one size of a photo or a file / sticker thumbnail.
struct telebot_audio telebot_audio_t
This object represents an audio file to be treated as music by the Telegram clients.
@ TELEBOT_UPDATE_TYPE_CALLBACK_QUERY
Definition telebot-types.h:57
@ TELEBOT_UPDATE_TYPE_DELETED_BUSINESS_MESSAGES
Definition telebot-types.h:52
@ TELEBOT_UPDATE_TYPE_CHOSEN_INLINE_RESULT
Definition telebot-types.h:56
@ TELEBOT_UPDATE_TYPE_SHIPPING_QUERY
Definition telebot-types.h:58
@ TELEBOT_UPDATE_TYPE_BUSINESS_MESSAGE
Definition telebot-types.h:50
@ TELEBOT_UPDATE_TYPE_EDITED_CHANNEL_POST
Definition telebot-types.h:48
@ TELEBOT_UPDATE_TYPE_EDITED_BUSINESS_MESSAGE
Definition telebot-types.h:51
@ TELEBOT_UPDATE_TYPE_MESSAGE
Definition telebot-types.h:45
@ TELEBOT_UPDATE_TYPE_CHAT_JOIN_REQUEST
Definition telebot-types.h:65
@ TELEBOT_UPDATE_TYPE_BUSINESS_CONNECTION
Definition telebot-types.h:49
@ TELEBOT_UPDATE_TYPE_EDITED_MESSAGE
Definition telebot-types.h:46
@ TELEBOT_UPDATE_TYPE_POLL_ANSWER
Definition telebot-types.h:62
@ TELEBOT_UPDATE_TYPE_MESSAGE_REACTION_COUNT
Definition telebot-types.h:54
@ TELEBOT_UPDATE_TYPE_REMOVED_CHAT_BOOST
Definition telebot-types.h:67
@ TELEBOT_UPDATE_TYPE_MAX
Definition telebot-types.h:68
@ TELEBOT_UPDATE_TYPE_CHAT_BOOST
Definition telebot-types.h:66
@ TELEBOT_UPDATE_TYPE_POLL
Definition telebot-types.h:61
@ TELEBOT_UPDATE_TYPE_CHANNEL_POST
Definition telebot-types.h:47
@ TELEBOT_UPDATE_TYPE_MESSAGE_REACTION
Definition telebot-types.h:53
@ TELEBOT_UPDATE_TYPE_CHAT_MEMBER
Definition telebot-types.h:64
@ TELEBOT_UPDATE_TYPE_PRE_CHECKOUT_QUERY
Definition telebot-types.h:59
@ TELEBOT_UPDATE_TYPE_INLINE_QUERY
Definition telebot-types.h:55
@ TELEBOT_UPDATE_TYPE_MY_CHAT_MEMBER
Definition telebot-types.h:63
@ TELEBOT_UPDATE_TYPE_PURCHASED_PAID_MEDIA
Definition telebot-types.h:60
Contains information about the affiliate that received a commission.
Definition telebot-types.h:1605
int amount
Definition telebot-types.h:1616
struct telebot_chat * affiliate_chat
Definition telebot-types.h:1610
int commission_per_mille
Definition telebot-types.h:1613
struct telebot_user * affiliate_user
Definition telebot-types.h:1607
int nanostar_amount
Definition telebot-types.h:1619
This object represents a video file.
Definition telebot-types.h:2360
int duration
Definition telebot-types.h:2377
char * file_name
Definition telebot-types.h:2383
char * mime_type
Definition telebot-types.h:2386
int height
Definition telebot-types.h:2374
int file_size
Definition telebot-types.h:2389
char * file_unique_id
Definition telebot-types.h:2368
int width
Definition telebot-types.h:2371
struct telebot_photo * thumb
Definition telebot-types.h:2380
char * file_id
Definition telebot-types.h:2362
This object represents an audio file to be treated as music by the Telegram clients.
Definition telebot-types.h:2190
struct telebot_photo * thumb
Definition telebot-types.h:2216
char * title
Definition telebot-types.h:2207
char * file_unique_id
Definition telebot-types.h:2198
int file_size
Definition telebot-types.h:2213
char * mime_type
Definition telebot-types.h:2210
char * performer
Definition telebot-types.h:2204
int duration
Definition telebot-types.h:2201
char * file_id
Definition telebot-types.h:2192
Describes the birthdate of a user.
Definition telebot-types.h:74
int day
Definition telebot-types.h:76
int year
Definition telebot-types.h:82
int month
Definition telebot-types.h:79
This object represents a bot command.
Definition telebot-types.h:3096
char * description
Definition telebot-types.h:3104
char * command
Definition telebot-types.h:3101
Represents the rights of a business bot.
Definition telebot-types.h:136
Describes the connection of the bot with a business account.
Definition telebot-types.h:156
Contains information about the start page settings of a Telegram Business account.
Definition telebot-types.h:88
char * title
Definition telebot-types.h:90
char * message
Definition telebot-types.h:93
struct telebot_sticker * sticker
Definition telebot-types.h:96
Contains information about the location of a Telegram Business account.
Definition telebot-types.h:102
struct telebot_location * location
Definition telebot-types.h:107
char * address
Definition telebot-types.h:104
This object is received when messages are deleted from a connected business account.
Definition telebot-types.h:168
Describes an interval of time during which a business is open.
Definition telebot-types.h:113
int opening_minute
Definition telebot-types.h:115
int closing_minute
Definition telebot-types.h:118
Describes the opening hours of a business.
Definition telebot-types.h:124
char * time_zone_name
Definition telebot-types.h:126
struct telebot_business_opening_hours_interval * opening_hours
Definition telebot-types.h:129
A placeholder, currently holds no information. Use BotFather to set up your game.
Definition telebot-types.h:734
This object represents an incoming callback query from a callback button in an inline keyboard....
Definition telebot-types.h:2837
char * data
Definition telebot-types.h:2868
struct telebot_user * from
Definition telebot-types.h:2842
char * chat_instance
Definition telebot-types.h:2862
char * inline_message_id
Definition telebot-types.h:2855
char * game_short_name
Definition telebot-types.h:2874
char * id
Definition telebot-types.h:2839
struct telebot_message * message
Definition telebot-types.h:2849
This object represents a chat background.
Definition telebot-types.h:1560
char * type
Definition telebot-types.h:1562
This object represents a service message about a user boosting a chat.
Definition telebot-types.h:1552
int boost_count
Definition telebot-types.h:1554
This object represents a boost removed from a chat.
Definition telebot-types.h:1131
char * boost_id
Definition telebot-types.h:1136
struct telebot_chat * chat
Definition telebot-types.h:1133
struct telebot_chat_boost_source * source
Definition telebot-types.h:1142
long remove_date
Definition telebot-types.h:1139
This object represents the source of a chat boost.
Definition telebot-types.h:1120
struct telebot_user * user
Definition telebot-types.h:1125
char * source
Definition telebot-types.h:1122
This object represents a boost added to a chat.
Definition telebot-types.h:1092
struct telebot_chat_boost * boost
Definition telebot-types.h:1097
struct telebot_chat * chat
Definition telebot-types.h:1094
This object contains information about a chat boost.
Definition telebot-types.h:1103
struct telebot_chat_boost_source * source
Definition telebot-types.h:1114
long add_date
Definition telebot-types.h:1108
long expiration_date
Definition telebot-types.h:1111
char * boost_id
Definition telebot-types.h:1105
This object represents a join request sent to a chat.
Definition telebot-types.h:996
long long int user_chat_id
Definition telebot-types.h:1004
struct telebot_chat * chat
Definition telebot-types.h:998
struct telebot_chat_invite_link * invite_link
Definition telebot-types.h:1013
char * bio
Definition telebot-types.h:1010
long date
Definition telebot-types.h:1007
struct telebot_user * from
Definition telebot-types.h:1001
Thi object represetns information about the current status of a webhook.
Definition telebot-types.h:3469
char * address
Definition telebot-types.h:3474
struct telebot_location * location
Definition telebot-types.h:3471
This object represents changes in the status of a chat member.
Definition telebot-types.h:970
bool via_chat_folder_invite_link
Definition telebot-types.h:990
long date
Definition telebot-types.h:978
struct telebot_chat_invite_link * invite_link
Definition telebot-types.h:987
struct telebot_chat_member * new_chat_member
Definition telebot-types.h:984
struct telebot_user * from
Definition telebot-types.h:975
struct telebot_chat * chat
Definition telebot-types.h:972
struct telebot_chat_member * old_chat_member
Definition telebot-types.h:981
This object contains information about one member of a chat.
Definition telebot-types.h:2936
char * status
Definition telebot-types.h:2944
char * custom_title
Definition telebot-types.h:2947
bool can_change_info
Definition telebot-types.h:2997
bool can_send_media_messages
Definition telebot-types.h:3027
bool can_send_messages
Definition telebot-types.h:3021
struct telebot_user * user
Definition telebot-types.h:2938
bool can_send_polls
Definition telebot-types.h:3030
bool can_invite_users
Definition telebot-types.h:3003
bool can_edit_messages
Definition telebot-types.h:2971
bool can_send_other_messages
Definition telebot-types.h:3036
bool can_pin_messages
Definition telebot-types.h:3009
bool can_add_web_page_previews
Definition telebot-types.h:3042
bool is_member
Definition telebot-types.h:3015
bool can_restrict_members
Definition telebot-types.h:2983
long until_date
Definition telebot-types.h:2953
bool can_delete_messages
Definition telebot-types.h:2977
bool can_be_edited
Definition telebot-types.h:2959
bool can_post_messages
Definition telebot-types.h:2965
bool can_promote_members
Definition telebot-types.h:2991
Describes actions that a non-administrator user is allowed to take in a chat.
Definition telebot-types.h:3048
bool can_send_polls
Definition telebot-types.h:3065
bool can_send_messages
Definition telebot-types.h:3053
bool can_invite_users
Definition telebot-types.h:3086
bool can_pin_messages
Definition telebot-types.h:3092
bool can_send_media_messages
Definition telebot-types.h:3059
bool can_send_other_messages
Definition telebot-types.h:3071
bool can_add_web_page_previews
Definition telebot-types.h:3077
bool can_change_info
Definition telebot-types.h:3083
This object represents a chat photo.
Definition telebot-types.h:2906
char * big_file_unique_id
Definition telebot-types.h:2930
char * big_file_id
Definition telebot-types.h:2924
char * small_file_unique_id
Definition telebot-types.h:2918
char * small_file_id
Definition telebot-types.h:2911
This object contains information about the chat whose identifier was shared with the bot using a Keyb...
Definition telebot-types.h:927
int request_id
Definition telebot-types.h:929
long long int chat_id
Definition telebot-types.h:932
This object represents a chat.
Definition telebot-types.h:229
bool has_protected_content
Definition telebot-types.h:373
char * sticker_set_name
Definition telebot-types.h:382
struct telebot_chat_photo * photo
Definition telebot-types.h:261
long emoji_status_expiration_date
Definition telebot-types.h:294
bool has_aggressive_anti_spam_enabled
Definition telebot-types.h:364
bool can_set_sticker_set
Definition telebot-types.h:388
long long int linked_chat_id
Definition telebot-types.h:398
bool is_direct_messages
Definition telebot-types.h:252
bool has_visible_history
Definition telebot-types.h:376
struct telebot_chat_location * location
Definition telebot-types.h:404
long long int id
Definition telebot-types.h:231
char * title
Definition telebot-types.h:237
char * custom_emoji_sticker_set_name
Definition telebot-types.h:391
struct telebot_chat_permissions * permissions
Definition telebot-types.h:346
int unrestrict_boost_count
Definition telebot-types.h:355
char * type
Definition telebot-types.h:234
char * last_name
Definition telebot-types.h:246
int message_auto_delete_time
Definition telebot-types.h:361
struct telebot_business_location * business_location
Definition telebot-types.h:276
int max_reaction_count
Definition telebot-types.h:258
struct telebot_chat * parent_chat
Definition telebot-types.h:285
bool has_restricted_voice_and_video_messages
Definition telebot-types.h:311
struct telebot_birthdate * birthdate
Definition telebot-types.h:270
int accent_color_id
Definition telebot-types.h:255
char * invite_link
Definition telebot-types.h:335
int slow_mode_delay
Definition telebot-types.h:352
struct telebot_business_opening_hours * business_opening_hours
Definition telebot-types.h:279
char * username
Definition telebot-types.h:240
char * first_name
Definition telebot-types.h:243
char * description
Definition telebot-types.h:329
struct telebot_chat * personal_chat
Definition telebot-types.h:282
bool has_hidden_members
Definition telebot-types.h:367
char ** active_usernames
Definition telebot-types.h:266
bool join_by_request
Definition telebot-types.h:323
struct telebot_message * pinned_message
Definition telebot-types.h:340
char * emoji_status_custom_emoji_id
Definition telebot-types.h:291
bool join_to_send_messages
Definition telebot-types.h:317
bool is_forum
Definition telebot-types.h:249
struct telebot_business_intro * business_intro
Definition telebot-types.h:273
char * bio
Definition telebot-types.h:297
bool has_private_forwards
Definition telebot-types.h:304
Represents a result of an inline query that was chosen by the user and sent to their chat partner.
Definition telebot-types.h:3155
struct telebot_location * location
Definition telebot-types.h:3163
struct telebot_user * from
Definition telebot-types.h:3160
char * result_id
Definition telebot-types.h:3157
char * inline_message_id
Definition telebot-types.h:3170
char * query
Definition telebot-types.h:3173
This object represents a phone contact.
Definition telebot-types.h:2447
char * vcard
Definition telebot-types.h:2461
char * last_name
Definition telebot-types.h:2455
int user_id
Definition telebot-types.h:2458
char * phone_number
Definition telebot-types.h:2449
char * first_name
Definition telebot-types.h:2452
This object represents an inline keyboard button that copies specified text to the clipboard.
Definition telebot-types.h:781
char * text
Definition telebot-types.h:783
This object represents a dice with random value from 1 to 6.
Definition telebot-types.h:2574
int value
Definition telebot-types.h:2576
This object represents a general file (as opposed to photos, voice messages and audio files).
Definition telebot-types.h:2301
char * file_name
Definition telebot-types.h:2315
char * file_unique_id
Definition telebot-types.h:2309
char * file_id
Definition telebot-types.h:2303
int file_size
Definition telebot-types.h:2321
struct telebot_photo * thumb
Definition telebot-types.h:2312
char * mime_type
Definition telebot-types.h:2318
This object represents credentials required to decrypt the data.
Definition telebot-types.h:605
char * secret
Definition telebot-types.h:613
char * data
Definition telebot-types.h:607
char * hash
Definition telebot-types.h:610
This object represents one element of the Telegram Passport data.
Definition telebot-types.h:560
struct telebot_passport_file * files
Definition telebot-types.h:582
char * type
Definition telebot-types.h:567
char * email
Definition telebot-types.h:579
char * phone_number
Definition telebot-types.h:576
char * data
Definition telebot-types.h:573
struct telebot_passport_file * translation
Definition telebot-types.h:595
char * hash
Definition telebot-types.h:599
struct telebot_passport_file * reverse_side
Definition telebot-types.h:589
struct telebot_passport_file * front_side
Definition telebot-types.h:586
struct telebot_passport_file * selfie
Definition telebot-types.h:592
This object contains information about the message that is being replied to, which may come from anot...
Definition telebot-types.h:1205
struct telebot_link_preview_options * link_preview_options
Definition telebot-types.h:1216
struct telebot_video_note * video_note
Definition telebot-types.h:1244
struct telebot_dice * dice
Definition telebot-types.h:1256
struct telebot_game * game
Definition telebot-types.h:1259
struct telebot_document * document
Definition telebot-types.h:1225
struct telebot_animation * animation
Definition telebot-types.h:1219
struct telebot_video * video
Definition telebot-types.h:1241
struct telebot_poll * poll
Definition telebot-types.h:1274
int message_id
Definition telebot-types.h:1213
struct telebot_sticker * sticker
Definition telebot-types.h:1235
struct telebot_giveaway * giveaway
Definition telebot-types.h:1262
struct telebot_paid_media_info * paid_media
Definition telebot-types.h:1228
struct telebot_chat * chat
Definition telebot-types.h:1210
struct telebot_message_origin origin
Definition telebot-types.h:1207
struct telebot_photo * photos
Definition telebot-types.h:1231
struct telebot_invoice * invoice
Definition telebot-types.h:1268
struct telebot_audio * audio
Definition telebot-types.h:1222
bool has_media_spoiler
Definition telebot-types.h:1250
struct telebot_location * location
Definition telebot-types.h:1271
struct telebot_contact * contact
Definition telebot-types.h:1253
struct telebot_venue * venue
Definition telebot-types.h:1277
struct telebot_story * story
Definition telebot-types.h:1238
struct telebot_giveaway_winners * giveaway_winners
Definition telebot-types.h:1265
struct telebot_voice * voice
Definition telebot-types.h:1247
This object represents a file ready to be downloaded.
Definition telebot-types.h:2602
int file_size
Definition telebot-types.h:2613
char * file_id
Definition telebot-types.h:2604
char * file_path
Definition telebot-types.h:2616
char * file_unique_id
Definition telebot-types.h:2610
Upon receiving a message with this object, Telegram clients will display a reply interface to the use...
Definition telebot-types.h:2885
bool selective
Definition telebot-types.h:2899
bool force_reply
Definition telebot-types.h:2890
This object represents a service message about a forum topic closed in the chat.
Definition telebot-types.h:666
bool dummy
Definition telebot-types.h:668
This object represents a service message about a new forum topic created in the chat.
Definition telebot-types.h:651
char * name
Definition telebot-types.h:653
int icon_color
Definition telebot-types.h:656
char * icon_custom_emoji_id
Definition telebot-types.h:659
This object represents a service message about a forum topic edited in the chat.
Definition telebot-types.h:875
char * icon_custom_emoji_id
Definition telebot-types.h:880
char * name
Definition telebot-types.h:877
This object represents a service message about a forum topic reopened in the chat.
Definition telebot-types.h:675
bool dummy
Definition telebot-types.h:677
This object represents a forum topic.
Definition telebot-types.h:3292
char * name
Definition telebot-types.h:3297
char * icon_custom_emoji_id
Definition telebot-types.h:3303
int message_thread_id
Definition telebot-types.h:3294
int icon_color
Definition telebot-types.h:3300
This object represents a game high score row.
Definition telebot-types.h:1763
struct telebot_user * user
Definition telebot-types.h:1768
int score
Definition telebot-types.h:1771
int position
Definition telebot-types.h:1765
This object represents a game.
Definition telebot-types.h:410
char * text
Definition telebot-types.h:427
struct telebot_animation * animation
Definition telebot-types.h:439
struct telebot_photo * photo
Definition telebot-types.h:418
char * title
Definition telebot-types.h:412
int count_photo
Definition telebot-types.h:421
char * description
Definition telebot-types.h:415
struct telebot_message_entity * text_entities
Definition telebot-types.h:433
This object represents a service message about a general forum topic hidden in the chat.
Definition telebot-types.h:887
bool dummy
Definition telebot-types.h:889
This object represents a service message about a general forum topic unhidden in the chat.
Definition telebot-types.h:896
bool dummy
Definition telebot-types.h:898
Describes a regular gift that was sent or received.
Definition telebot-types.h:1500
bool is_private
Definition telebot-types.h:1512
struct telebot_message_entity * entities
Definition telebot-types.h:1508
char * text
Definition telebot-types.h:1505
struct telebot_gift gift
Definition telebot-types.h:1502
This object represents a gift that can be sent by the bot.
Definition telebot-types.h:1471
int upgrade_star_count
Definition telebot-types.h:1482
int remaining_count
Definition telebot-types.h:1494
int total_count
Definition telebot-types.h:1491
int star_count
Definition telebot-types.h:1479
char * id
Definition telebot-types.h:1473
bool is_premium
Definition telebot-types.h:1485
bool has_colors
Definition telebot-types.h:1488
struct telebot_sticker * sticker
Definition telebot-types.h:1476
This object represent a list of gifts.
Definition telebot-types.h:2222
int count
Definition telebot-types.h:2226
telebot_gift_t * gifts
Definition telebot-types.h:2224
This object represents a service message about the completion of a giveaway without public winners.
Definition telebot-types.h:1577
int unclaimed_prize_count
Definition telebot-types.h:1582
bool is_star_giveaway
Definition telebot-types.h:1588
struct telebot_message * giveaway_message
Definition telebot-types.h:1585
int winner_count
Definition telebot-types.h:1579
This object represents a service message about the creation of a scheduled giveaway.
Definition telebot-types.h:1568
int prize_star_count
Definition telebot-types.h:1570
This object represents a message about the completion of a giveaway with public winners.
Definition telebot-types.h:1374
long winners_selection_date
Definition telebot-types.h:1382
int giveaway_message_id
Definition telebot-types.h:1379
int premium_subscription_month_count
Definition telebot-types.h:1398
bool only_new_members
Definition telebot-types.h:1404
char * prize_description
Definition telebot-types.h:1410
struct telebot_user * winners
Definition telebot-types.h:1388
struct telebot_chat * chat
Definition telebot-types.h:1376
bool was_refunded
Definition telebot-types.h:1407
int unclaimed_prize_count
Definition telebot-types.h:1401
int additional_chat_count
Definition telebot-types.h:1392
int prize_star_count
Definition telebot-types.h:1395
int winner_count
Definition telebot-types.h:1385
This object represents a message about a scheduled giveaway.
Definition telebot-types.h:1339
char ** country_codes
Definition telebot-types.h:1360
bool only_new_members
Definition telebot-types.h:1351
int prize_star_count
Definition telebot-types.h:1364
char * prize_description
Definition telebot-types.h:1357
int premium_subscription_month_count
Definition telebot-types.h:1367
bool has_public_winners
Definition telebot-types.h:1354
struct telebot_chat * chats
Definition telebot-types.h:1341
long winners_selection_date
Definition telebot-types.h:1345
int winner_count
Definition telebot-types.h:1348
This object represents one button of an inline keyboard. You must use exactly one of the optional fie...
Definition telebot-types.h:790
bool pay
Definition telebot-types.h:850
struct telebot_login_url * login_url
Definition telebot-types.h:812
struct telebot_callback_game * callback_game
Definition telebot-types.h:844
char * callback_data
Definition telebot-types.h:801
char * switch_inline_query
Definition telebot-types.h:820
char * switch_inline_query_current_chat
Definition telebot-types.h:827
char * url
Definition telebot-types.h:795
struct telebot_copy_text_button * copy_text
Definition telebot-types.h:838
struct telebot_switch_inline_query_chosen_chat * switch_inline_query_chosen_chat
Definition telebot-types.h:833
char * text
Definition telebot-types.h:792
struct telebot_web_app_info * web_app
Definition telebot-types.h:807
This object represents an inline keyboard that appears right next to the message it belongs to.
Definition telebot-types.h:857
int cols
Definition telebot-types.h:868
telebot_inline_keyboard_button_t * inline_keyboard
Definition telebot-types.h:862
int rows
Definition telebot-types.h:865
This object represents an incoming inline query. When the user sends an empty query,...
Definition telebot-types.h:3131
struct telebot_location * location
Definition telebot-types.h:3148
struct telebot_user * from
Definition telebot-types.h:3136
char * query
Definition telebot-types.h:3139
char * chat_type
Definition telebot-types.h:3145
char * offset
Definition telebot-types.h:3142
char * id
Definition telebot-types.h:3133
This object contains basic information about an invoice.
Definition telebot-types.h:485
char * start_parameter
Definition telebot-types.h:496
char * currency
Definition telebot-types.h:499
char * description
Definition telebot-types.h:490
char * title
Definition telebot-types.h:487
int total_amount
Definition telebot-types.h:505
This object represents type of a poll, which is allowed to be created and sent when the corresponding...
Definition telebot-types.h:2623
char * type
Definition telebot-types.h:2630
This object defines the criteria used to request a suitable chat.
Definition telebot-types.h:2662
bool request_username
Definition telebot-types.h:2691
bool chat_is_channel
Definition telebot-types.h:2667
bool request_photo
Definition telebot-types.h:2694
bool chat_is_forum
Definition telebot-types.h:2670
bool bot_is_member
Definition telebot-types.h:2685
int request_id
Definition telebot-types.h:2664
struct telebot_chat_administrator_rights * user_administrator_rights
Definition telebot-types.h:2679
bool chat_has_username
Definition telebot-types.h:2673
bool request_title
Definition telebot-types.h:2688
bool chat_is_created
Definition telebot-types.h:2676
struct telebot_chat_administrator_rights * bot_administrator_rights
Definition telebot-types.h:2682
This object defines the criteria used to request suitable users.
Definition telebot-types.h:2636
bool request_photo
Definition telebot-types.h:2656
bool user_is_premium
Definition telebot-types.h:2644
int request_id
Definition telebot-types.h:2638
bool request_username
Definition telebot-types.h:2653
bool request_name
Definition telebot-types.h:2650
int max_quantity
Definition telebot-types.h:2647
bool user_is_bot
Definition telebot-types.h:2641
This object represents one button of the reply keyboard. For simple text buttons String can be used i...
Definition telebot-types.h:2711
bool request_contact
Definition telebot-types.h:2736
char * text
Definition telebot-types.h:2716
struct telebot_web_app_info * web_app
Definition telebot-types.h:2754
struct telebot_keyboard_button_request_users * request_users
Definition telebot-types.h:2723
struct telebot_keyboard_button_request_chat * request_chat
Definition telebot-types.h:2730
telebot_keyboard_button_poll_type_t * request_poll
Definition telebot-types.h:2747
bool request_location
Definition telebot-types.h:2741
This object represents a point on the map.
Definition telebot-types.h:2468
float longitude
Definition telebot-types.h:2470
float latitude
Definition telebot-types.h:2473
This object represents a parameter of the inline keyboard button used to automatically authorize a us...
Definition telebot-types.h:742
char * bot_username
Definition telebot-types.h:750
char * forward_text
Definition telebot-types.h:747
bool request_write_access
Definition telebot-types.h:753
char * url
Definition telebot-types.h:744
This object describes the position on faces where a mask should be placed by default.
Definition telebot-types.h:3226
char * point
Definition telebot-types.h:3231
float y_shift
Definition telebot-types.h:3245
float scale
Definition telebot-types.h:3248
float x_shift
Definition telebot-types.h:3238
This object represents a service message about a change in auto-delete timer settings.
Definition telebot-types.h:3481
int message_auto_delete_time
Definition telebot-types.h:3483
This object represents one special entity in a text message. For example, hashtags,...
Definition telebot-types.h:2132
char * language
Definition telebot-types.h:2157
int length
Definition telebot-types.h:2145
telebot_user_t * user
Definition telebot-types.h:2154
int offset
Definition telebot-types.h:2142
char * url
Definition telebot-types.h:2151
char * type
Definition telebot-types.h:2139
This object describes the origin of a message.
Definition telebot-types.h:1148
char * type
Definition telebot-types.h:1150
char * author_signature
Definition telebot-types.h:1165
struct telebot_chat * sender_chat
Definition telebot-types.h:1162
int message_id
Definition telebot-types.h:1168
long date
Definition telebot-types.h:1153
char * sender_user_name
Definition telebot-types.h:1159
struct telebot_user * sender_user
Definition telebot-types.h:1156
This object represents reaction changes on a message with anonymous reactions.
Definition telebot-types.h:1049
int message_id
Definition telebot-types.h:1054
long date
Definition telebot-types.h:1057
struct telebot_chat * chat
Definition telebot-types.h:1051
struct telebot_reaction_count * reactions
Definition telebot-types.h:1060
This object represents a change of a reaction on a message performed by a user.
Definition telebot-types.h:1020
struct telebot_chat * actor_chat
Definition telebot-types.h:1031
struct telebot_reaction_type * new_reaction
Definition telebot-types.h:1041
struct telebot_user * user
Definition telebot-types.h:1028
long date
Definition telebot-types.h:1034
struct telebot_chat * chat
Definition telebot-types.h:1022
int message_id
Definition telebot-types.h:1025
struct telebot_reaction_type * old_reaction
Definition telebot-types.h:1037
This object represents a message.
Definition telebot-types.h:1777
bool group_chat_created
Definition telebot-types.h:2001
struct telebot_voice * voice
Definition telebot-types.h:1943
char * effect_id
Definition telebot-types.h:1911
struct telebot_message * reply_to_message
Definition telebot-types.h:1865
struct telebot_forum_topic_edited * forum_topic_edited
Definition telebot-types.h:2065
struct telebot_video_chat_scheduled * video_chat_scheduled
Definition telebot-types.h:2080
struct telebot_video * video
Definition telebot-types.h:1937
struct telebot_invoice * invoice
Definition telebot-types.h:2035
bool is_paid_post
Definition telebot-types.h:1886
struct telebot_forum_topic_created * forum_topic_created
Definition telebot-types.h:2062
char * business_connection_id
Definition telebot-types.h:1807
struct telebot_audio * audio
Definition telebot-types.h:1921
struct telebot_giveaway_created * giveaway_created
Definition telebot-types.h:2113
struct telebot_poll * poll
Definition telebot-types.h:1968
struct telebot_contact * contact
Definition telebot-types.h:1959
char * forward_sender_name
Definition telebot-types.h:1843
char * connected_website
Definition telebot-types.h:2050
struct telebot_users_shared * users_shared
Definition telebot-types.h:2095
struct telebot_user * forward_from
Definition telebot-types.h:1819
struct telebot_game * game
Definition telebot-types.h:1965
struct telebot_message_origin * forward_origin
Definition telebot-types.h:1816
struct telebot_link_preview_options * link_preview_options
Definition telebot-types.h:1908
struct telebot_message_auto_delete_timer_changed * message_auto_delete_timer_changed
Definition telebot-types.h:2010
bool has_protected_content
Definition telebot-types.h:1883
struct telebot_video_chat_ended * video_chat_ended
Definition telebot-types.h:2086
struct telebot_chat_boost_added * boost_added
Definition telebot-types.h:2107
long long int migrate_from_chat_id
Definition telebot-types.h:2022
bool channel_chat_created
Definition telebot-types.h:2007
struct telebot_video_note * video_note
Definition telebot-types.h:1940
struct telebot_proximity_alert_triggered * proximity_alert_triggered
Definition telebot-types.h:2059
struct telebot_photo * photos
Definition telebot-types.h:1930
struct telebot_user * left_chat_members
Definition telebot-types.h:1987
struct telebot_text_quote * quote
Definition telebot-types.h:1871
char * caption
Definition telebot-types.h:1946
struct telebot_passport_data * passport_data
Definition telebot-types.h:2053
struct telebot_user * sender_business_bot
Definition telebot-types.h:1804
struct telebot_message_entity * caption_entities
Definition telebot-types.h:1952
struct telebot_refunded_payment * refunded_payment
Definition telebot-types.h:2044
struct telebot_story * reply_to_story
Definition telebot-types.h:1874
long edit_date
Definition telebot-types.h:1880
struct telebot_successful_payment * successful_payment
Definition telebot-types.h:2041
struct telebot_animation * animation
Definition telebot-types.h:1918
struct telebot_paid_media_info * paid_media
Definition telebot-types.h:1927
struct telebot_general_forum_topic_unhidden * general_forum_topic_unhidden
Definition telebot-types.h:2077
struct telebot_chat * sender_chat
Definition telebot-types.h:1798
char * media_group_id
Definition telebot-types.h:1892
struct telebot_document * document
Definition telebot-types.h:1924
bool show_caption_above_media
Definition telebot-types.h:1956
bool is_automatic_forward
Definition telebot-types.h:1858
struct telebot_user * new_chat_members
Definition telebot-types.h:1980
char * author_signature
Definition telebot-types.h:1895
struct telebot_general_forum_topic_hidden * general_forum_topic_hidden
Definition telebot-types.h:2074
struct telebot_sticker * sticker
Definition telebot-types.h:1934
struct telebot_dice * dice
Definition telebot-types.h:1962
long forward_date
Definition telebot-types.h:1849
int message_thread_id
Definition telebot-types.h:1785
struct telebot_forum_topic_reopened * forum_topic_reopened
Definition telebot-types.h:2071
bool delete_chat_photo
Definition telebot-types.h:1998
struct telebot_photo * new_chat_photos
Definition telebot-types.h:1994
struct telebot_user * from
Definition telebot-types.h:1788
char * forward_signature
Definition telebot-types.h:1837
struct telebot_message * pinned_message
Definition telebot-types.h:2029
long date
Definition telebot-types.h:1810
struct telebot_unique_gift_info * unique_gift
Definition telebot-types.h:2104
bool has_media_spoiler
Definition telebot-types.h:2119
struct telebot_web_app_data * web_app_data
Definition telebot-types.h:2092
struct telebot_video_chat_participants_invited * video_chat_participants_invited
Definition telebot-types.h:2089
struct telebot_inline_keyboard_markup * reply_markup
Definition telebot-types.h:2125
struct telebot_external_reply_info * external_reply
Definition telebot-types.h:1868
long long int migrate_to_chat_id
Definition telebot-types.h:2016
struct telebot_chat * chat
Definition telebot-types.h:1813
struct telebot_location * location
Definition telebot-types.h:1974
char * new_chat_title
Definition telebot-types.h:1991
struct telebot_venue * venue
Definition telebot-types.h:1971
struct telebot_giveaway_completed * giveaway_completed
Definition telebot-types.h:2116
char * text
Definition telebot-types.h:1898
int sender_boost_count
Definition telebot-types.h:1801
int forward_from_message_id
Definition telebot-types.h:1831
struct telebot_user * via_bot
Definition telebot-types.h:1877
struct telebot_forum_topic_closed * forum_topic_closed
Definition telebot-types.h:2068
struct telebot_video_chat_started * video_chat_started
Definition telebot-types.h:2083
struct telebot_message_entity * entities
Definition telebot-types.h:1904
bool is_topic_message
Definition telebot-types.h:1852
struct telebot_chat * forward_from_chat
Definition telebot-types.h:1825
int message_id
Definition telebot-types.h:1779
struct telebot_gift_info * gift
Definition telebot-types.h:2101
struct telebot_chat_background * chat_background_set
Definition telebot-types.h:2110
struct telebot_write_access_allowed * write_access_allowed
Definition telebot-types.h:2047
struct telebot_chat_shared * chat_shared
Definition telebot-types.h:2098
bool supergroup_chat_created
Definition telebot-types.h:2004
This object represents information about an order.
Definition telebot-types.h:468
char * phone_number
Definition telebot-types.h:473
char * email
Definition telebot-types.h:476
struct telebot_shipping_address * shipping_address
Definition telebot-types.h:479
char * name
Definition telebot-types.h:470
Describes the paid media added to a message.
Definition telebot-types.h:1327
struct telebot_paid_media * paid_media
Definition telebot-types.h:1332
int star_count
Definition telebot-types.h:1329
This object contains information about a paid media purchase.
Definition telebot-types.h:1722
struct telebot_user * from
Definition telebot-types.h:1724
char * paid_media_payload
Definition telebot-types.h:1727
This object describes paid media.
Definition telebot-types.h:1303
int duration
Definition telebot-types.h:1314
char * type
Definition telebot-types.h:1305
struct telebot_photo * photos
Definition telebot-types.h:1317
int width
Definition telebot-types.h:1308
int height
Definition telebot-types.h:1311
struct telebot_video * video
Definition telebot-types.h:1321
Contains information about Telegram Passport data which was shared with the bot by the user.
Definition telebot-types.h:620
struct telebot_encrypted_credentials * credentials
Definition telebot-types.h:629
struct telebot_encrypted_passport_element * data
Definition telebot-types.h:625
This object represents an error in the Telegram Passport element.
Definition telebot-types.h:1733
char * file_hash
Definition telebot-types.h:1750
char * type
Definition telebot-types.h:1738
char * field_name
Definition telebot-types.h:1741
char * source
Definition telebot-types.h:1735
char ** file_hashes
Definition telebot-types.h:1753
char * data_hash
Definition telebot-types.h:1744
char * element_hash
Definition telebot-types.h:1757
char * message
Definition telebot-types.h:1747
This object represents an internal identifier of a user in Telegram Passport.
Definition telebot-types.h:540
char * file_unique_id
Definition telebot-types.h:548
int file_size
Definition telebot-types.h:551
char * file_id
Definition telebot-types.h:542
long date
Definition telebot-types.h:554
This object represents one size of a photo or a file / sticker thumbnail.
Definition telebot-types.h:2165
char * file_unique_id
Definition telebot-types.h:2173
int width
Definition telebot-types.h:2176
int height
Definition telebot-types.h:2179
int file_size
Definition telebot-types.h:2182
char * file_id
Definition telebot-types.h:2167
This object represents an answer of a user in a non-anonymous poll.
Definition telebot-types.h:2515
struct telebot_user * user
Definition telebot-types.h:2520
int * option_ids
Definition telebot-types.h:2526
char * poll_id
Definition telebot-types.h:2517
This object contains information about one answer option in a poll.
Definition telebot-types.h:2504
char * text
Definition telebot-types.h:2506
int voter_count
Definition telebot-types.h:2509
This object contains information about a poll.
Definition telebot-types.h:2535
bool is_anonymous
Definition telebot-types.h:2555
int correct_option_id
Definition telebot-types.h:2568
char * id
Definition telebot-types.h:2537
char * question
Definition telebot-types.h:2540
telebot_poll_option_t * options
Definition telebot-types.h:2543
int total_voter_count
Definition telebot-types.h:2549
bool allows_multiple_answers
Definition telebot-types.h:2561
bool is_closed
Definition telebot-types.h:2552
char * type
Definition telebot-types.h:2558
This object contains information about an incoming pre-checkout query.
Definition telebot-types.h:3196
struct telebot_user * from
Definition telebot-types.h:3201
char * currency
Definition telebot-types.h:3204
int total_amount
Definition telebot-types.h:3210
char * id
Definition telebot-types.h:3198
char * invoice_payload
Definition telebot-types.h:3213
char * shipping_option_id
Definition telebot-types.h:3216
struct telebot_order_info * order_info
Definition telebot-types.h:3219
This object represents a prepared inline message.
Definition telebot-types.h:3309
long expiration_date
Definition telebot-types.h:3314
char * id
Definition telebot-types.h:3311
This object represents a service message about a user in the chat triggered another user's proximity ...
Definition telebot-types.h:636
struct telebot_user * traveler
Definition telebot-types.h:638
int distance
Definition telebot-types.h:644
struct telebot_user * watcher
Definition telebot-types.h:641
This object represents a reaction count.
Definition telebot-types.h:1081
int total_count
Definition telebot-types.h:1086
struct telebot_reaction_type type
Definition telebot-types.h:1083
This object represents a reaction type.
Definition telebot-types.h:1067
char * custom_emoji_id
Definition telebot-types.h:1075
char * type
Definition telebot-types.h:1069
char * emoji
Definition telebot-types.h:1072
This object represents a service message about a refunded payment.
Definition telebot-types.h:1416
char * currency
Definition telebot-types.h:1418
int total_amount
Definition telebot-types.h:1421
char * provider_payment_charge_id
Definition telebot-types.h:1430
char * telegram_payment_charge_id
Definition telebot-types.h:1427
char * invoice_payload
Definition telebot-types.h:1424
This object represents a custom keyboard with reply options.
Definition telebot-types.h:2760
bool resize_keyboard
Definition telebot-types.h:2785
bool is_persistent
Definition telebot-types.h:2777
telebot_keyboard_button_t * keyboard
Definition telebot-types.h:2765
bool selective
Definition telebot-types.h:2802
bool one_time_keyboard
Definition telebot-types.h:2794
Upon receiving a message with this object, Telegram clients will remove the current custom keyboard a...
Definition telebot-types.h:2812
bool remove_keyboard
Definition telebot-types.h:2818
bool selective
Definition telebot-types.h:2826
Contains information about why a request was unsuccessful.
Definition telebot-types.h:3110
int retry_after
Definition telebot-types.h:3124
int migrate_to_chat_id
Definition telebot-types.h:3118
This object describes the state of a revenue withdrawal operation.
Definition telebot-types.h:1625
long date
Definition telebot-types.h:1630
char * url
Definition telebot-types.h:1633
char * type
Definition telebot-types.h:1627
This object represents a message sent via a Web App.
Definition telebot-types.h:3320
char * inline_message_id
Definition telebot-types.h:3322
This object contains information about a user that was shared with the bot.
Definition telebot-types.h:1450
char * username
Definition telebot-types.h:1461
char * first_name
Definition telebot-types.h:1455
struct telebot_photo * photo
Definition telebot-types.h:1464
char * last_name
Definition telebot-types.h:1458
long long int user_id
Definition telebot-types.h:1452
This object represents a shipping address.
Definition telebot-types.h:445
char * state
Definition telebot-types.h:450
char * street_line1
Definition telebot-types.h:456
char * street_line2
Definition telebot-types.h:459
char * post_code
Definition telebot-types.h:462
char * country_code
Definition telebot-types.h:447
char * city
Definition telebot-types.h:453
This object contains information about an incoming shipping query.
Definition telebot-types.h:3179
char * invoice_payload
Definition telebot-types.h:3187
struct telebot_shipping_address * shipping_address
Definition telebot-types.h:3190
char * id
Definition telebot-types.h:3181
struct telebot_user * from
Definition telebot-types.h:3184
Describes an amount of Telegram Stars.
Definition telebot-types.h:1594
int amount
Definition telebot-types.h:1596
int nanostar_amount
Definition telebot-types.h:1599
Describes a Telegram Star transaction.
Definition telebot-types.h:1690
int amount
Definition telebot-types.h:1695
struct telebot_transaction_partner * source
Definition telebot-types.h:1704
struct telebot_transaction_partner * receiver
Definition telebot-types.h:1707
long date
Definition telebot-types.h:1701
char * id
Definition telebot-types.h:1692
int nanostar_amount
Definition telebot-types.h:1698
Contains a list of Telegram Star transactions.
Definition telebot-types.h:1713
struct telebot_star_transaction * transactions
Definition telebot-types.h:1715
This object represents a sticker.
Definition telebot-types.h:3254
int width
Definition telebot-types.h:3265
char * file_unique_id
Definition telebot-types.h:3262
char * file_id
Definition telebot-types.h:3256
struct telebot_mask_position * mask_position
Definition telebot-types.h:3283
char * set_name
Definition telebot-types.h:3280
char * emoji
Definition telebot-types.h:3277
struct telebot_photo * thumb
Definition telebot-types.h:3274
int height
Definition telebot-types.h:3268
bool is_animated
Definition telebot-types.h:3271
int file_size
Definition telebot-types.h:3286
This object contains information about a story.
Definition telebot-types.h:1193
struct telebot_chat * chat
Definition telebot-types.h:1195
int id
Definition telebot-types.h:1198
This object contains basic information about a successful payment.
Definition telebot-types.h:511
int total_amount
Definition telebot-types.h:519
char * shipping_option_id
Definition telebot-types.h:525
char * telegram_payment_charge_id
Definition telebot-types.h:531
char * invoice_payload
Definition telebot-types.h:522
struct telebot_order_info * order_info
Definition telebot-types.h:528
char * currency
Definition telebot-types.h:513
char * provider_payment_charge_id
Definition telebot-types.h:534
This object represents an inline button that switches the current user to inline mode in a chosen cha...
Definition telebot-types.h:760
bool allow_bot_chats
Definition telebot-types.h:768
char * query
Definition telebot-types.h:762
bool allow_group_chats
Definition telebot-types.h:771
bool allow_channel_chats
Definition telebot-types.h:774
bool allow_user_chats
Definition telebot-types.h:765
This object contains information about the quoted part of a message that is replied to by the given m...
Definition telebot-types.h:1175
struct telebot_message_entity * entities
Definition telebot-types.h:1180
int position
Definition telebot-types.h:1184
bool is_manual
Definition telebot-types.h:1187
char * text
Definition telebot-types.h:1177
This object describes the source of a transaction.
Definition telebot-types.h:1639
struct telebot_revenue_withdrawal_state * withdrawal_state
Definition telebot-types.h:1675
int premium_subscription_duration
Definition telebot-types.h:1672
struct telebot_affiliate_info * affiliate
Definition telebot-types.h:1653
struct telebot_paid_media * paid_media
Definition telebot-types.h:1662
struct telebot_gift * gift
Definition telebot-types.h:1669
char * invoice_payload
Definition telebot-types.h:1656
int subscription_period
Definition telebot-types.h:1659
int commission_per_mille
Definition telebot-types.h:1681
char * type
Definition telebot-types.h:1641
struct telebot_chat * chat
Definition telebot-types.h:1650
char * paid_media_payload
Definition telebot-types.h:1666
int request_count
Definition telebot-types.h:1684
char * transaction_type
Definition telebot-types.h:1644
struct telebot_user * sponsor_user
Definition telebot-types.h:1678
struct telebot_user * user
Definition telebot-types.h:1647
Describes a unique gift that was sent or received.
Definition telebot-types.h:1518
struct telebot_unique_gift * gift
Definition telebot-types.h:1520
char * last_resale_currency
Definition telebot-types.h:1526
long long int last_resale_amount
Definition telebot-types.h:1529
char * origin
Definition telebot-types.h:1523
This object describes a unique gift that was upgraded from a regular gift.
Definition telebot-types.h:1535
char * gift_id
Definition telebot-types.h:1537
int number
Definition telebot-types.h:1543
struct telebot_sticker * sticker
Definition telebot-types.h:1546
char * name
Definition telebot-types.h:1540
This object represents an incoming update.
Definition telebot-types.h:3328
telebot_message_t channel_post
Definition telebot-types.h:3348
telebot_paid_media_purchased_t purchased_paid_media
Definition telebot-types.h:3385
telebot_message_t business_message
Definition telebot-types.h:3357
telebot_pre_checkout_query_t pre_checkout_query
Definition telebot-types.h:3382
telebot_callback_query_t callback_query
Definition telebot-types.h:3376
telebot_message_reaction_updated_t message_reaction
Definition telebot-types.h:3409
telebot_message_t edited_message
Definition telebot-types.h:3345
telebot_message_t edited_business_message
Definition telebot-types.h:3360
telebot_business_connection_t business_connection
Definition telebot-types.h:3354
telebot_chosen_inline_result_t chosen_inline_result
Definition telebot-types.h:3373
telebot_business_messages_deleted_t deleted_business_messages
Definition telebot-types.h:3363
telebot_chat_boost_removed_t chat_boost_removed
Definition telebot-types.h:3418
telebot_update_type_e update_type
Definition telebot-types.h:3338
telebot_chat_member_updated_t chat_member
Definition telebot-types.h:3403
telebot_chat_member_updated_t my_chat_member
Definition telebot-types.h:3400
telebot_message_t edited_channel_post
Definition telebot-types.h:3351
telebot_poll_answer_t poll_answer
Definition telebot-types.h:3397
telebot_message_reaction_count_updated_t message_reaction_count
Definition telebot-types.h:3412
telebot_chat_boost_updated_t chat_boost
Definition telebot-types.h:3415
telebot_chat_join_request_t chat_join_request
Definition telebot-types.h:3406
telebot_poll_t poll
Definition telebot-types.h:3391
int update_id
Definition telebot-types.h:3333
telebot_message_t message
Definition telebot-types.h:3342
telebot_shipping_query_t shipping_query
Definition telebot-types.h:3379
telebot_inline_query_t inline_query
Definition telebot-types.h:3366
This object represents a list of user chat boosts.
Definition telebot-types.h:2290
telebot_chat_boost_t * boosts
Definition telebot-types.h:2292
int count
Definition telebot-types.h:2294
This object represents a gift received by a user.
Definition telebot-types.h:2244
bool is_upgraded
Definition telebot-types.h:2272
char * text
Definition telebot-types.h:2252
long date
Definition telebot-types.h:2263
telebot_gift_t * gift
Definition telebot-types.h:2260
int upgrade_star_count
Definition telebot-types.h:2269
struct telebot_user * sender_user
Definition telebot-types.h:2249
int count_entities
Definition telebot-types.h:2257
char * gift_id
Definition telebot-types.h:2246
int message_id
Definition telebot-types.h:2266
struct telebot_message_entity * entities
Definition telebot-types.h:2255
This object represents a list of gifts received by a user.
Definition telebot-types.h:2278
int count
Definition telebot-types.h:2284
telebot_user_gift_t * gifts
Definition telebot-types.h:2282
int total_count
Definition telebot-types.h:2280
This object represents a list of user profile audios.
Definition telebot-types.h:2232
int count
Definition telebot-types.h:2238
telebot_audio_t * audios
Definition telebot-types.h:2236
int total_count
Definition telebot-types.h:2234
This object represent a user's profile pictures.
Definition telebot-types.h:2582
struct telebot_photo * photos[4]
Definition telebot-types.h:2590
int total_count
Definition telebot-types.h:2584
int current_count
Definition telebot-types.h:2587
This object contains information about the user whose identifier was shared with the bot using a Keyb...
Definition telebot-types.h:915
long long int user_id
Definition telebot-types.h:920
int request_id
Definition telebot-types.h:917
This object represents a Telegram user or bot.
Definition telebot-types.h:178
long long int id
Definition telebot-types.h:180
bool allows_users_to_create_topics
Definition telebot-types.h:222
bool has_main_web_app
Definition telebot-types.h:216
bool can_connect_to_business
Definition telebot-types.h:213
bool has_topics_enabled
Definition telebot-types.h:219
char * last_name
Definition telebot-types.h:189
bool can_join_groups
Definition telebot-types.h:204
char * username
Definition telebot-types.h:192
bool added_to_attachment_menu
Definition telebot-types.h:201
bool is_premium
Definition telebot-types.h:198
bool can_read_all_group_messages
Definition telebot-types.h:207
char * language_code
Definition telebot-types.h:195
bool supports_inline_queries
Definition telebot-types.h:210
char * first_name
Definition telebot-types.h:186
bool is_bot
Definition telebot-types.h:183
This object contains information about the users whose identifiers were shared with the bot using a K...
Definition telebot-types.h:1437
int request_id
Definition telebot-types.h:1439
struct telebot_shared_user * users
Definition telebot-types.h:1442
This object represents a venue.
Definition telebot-types.h:2480
char * foursquare_id
Definition telebot-types.h:2491
char * foursquare_type
Definition telebot-types.h:2498
char * address
Definition telebot-types.h:2488
char * title
Definition telebot-types.h:2485
struct telebot_location * location
Definition telebot-types.h:2482
This object represents a service message about a video chat ended in the chat.
Definition telebot-types.h:702
int duration
Definition telebot-types.h:704
This object represents a service message about new members invited to a video chat.
Definition telebot-types.h:711
struct telebot_user * users
Definition telebot-types.h:713
This object represents a service message about a video chat scheduled in the chat.
Definition telebot-types.h:684
long start_date
Definition telebot-types.h:686
This object represents a service message about a video chat started in the chat.
Definition telebot-types.h:693
bool dummy
Definition telebot-types.h:695
This object represents a video message (available in Telegram apps as of v.4.0).
Definition telebot-types.h:2420
int length
Definition telebot-types.h:2431
struct telebot_photo * thumb
Definition telebot-types.h:2437
char * file_id
Definition telebot-types.h:2422
int file_size
Definition telebot-types.h:2440
char * file_unique_id
Definition telebot-types.h:2428
int duration
Definition telebot-types.h:2434
This object represents a video file.
Definition telebot-types.h:2328
char * mime_type
Definition telebot-types.h:2351
char * file_unique_id
Definition telebot-types.h:2336
char * file_id
Definition telebot-types.h:2330
int width
Definition telebot-types.h:2339
struct telebot_photo * thumb
Definition telebot-types.h:2348
int file_size
Definition telebot-types.h:2354
int duration
Definition telebot-types.h:2345
int height
Definition telebot-types.h:2342
This object represents a voice note.
Definition telebot-types.h:2395
char * file_unique_id
Definition telebot-types.h:2403
char * mime_type
Definition telebot-types.h:2409
char * file_id
Definition telebot-types.h:2397
int duration
Definition telebot-types.h:2406
int file_size
Definition telebot-types.h:2412
This object represents data sent by a Web App to the bot.
Definition telebot-types.h:720
char * button_text
Definition telebot-types.h:728
char * data
Definition telebot-types.h:722
Describes a Web App.
Definition telebot-types.h:2700
char * url
Definition telebot-types.h:2702
Thi object represetns information about the current status of a webhook.
Definition telebot-types.h:3425
char * last_error_message
Definition telebot-types.h:3445
telebot_update_type_e allowed_updates[TELEBOT_UPDATE_TYPE_MAX]
Definition telebot-types.h:3457
int max_connections
Definition telebot-types.h:3451
char * url
Definition telebot-types.h:3427
bool has_custom_certificate
Definition telebot-types.h:3430
long last_error_date
Definition telebot-types.h:3439
int allowed_updates_count
Definition telebot-types.h:3462
int pending_update_count
Definition telebot-types.h:3433
This object represents a service message about a user allowing a bot to write messages after adding t...
Definition telebot-types.h:906
char * web_app_name
Definition telebot-types.h:908