telers 1.0.0-beta.2

An asynchronous framework for Telegram Bot API written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
//! Telegram Bot API data types and helper models.
//!
//! This module re-exports all generated types from the `crate::types` module, including
//! shared helper types from `non_telegram`.
//! Generated type builders follow the same conventions as method builders:
//! - optional fields can be set with normal chainable builder methods
//! - optional fields also expose `_option(...)` variants to pass `Option<T>` directly
//!   (including `None` to clear/unset a field)
//!
//! For polymorphic API objects (for example [`crate::types::Message`]), telers uses enums with
//! split subtypes. In these cases, use generated helper methods like `message.chat()`
//! and `message.text()` instead of field access like `message.chat`.
//!
//! # Examples
//! ```rust
//! use telers::types::{ChatIdKind, InlineKeyboardButton, InlineKeyboardMarkup};
//!
//! let chat_id = ChatIdKind::id(1);
//! let keyboard =
//!     InlineKeyboardMarkup::new([[InlineKeyboardButton::new("Open Telegram API docs")
//!         // Regular builder setter.
//!         .url("https://core.telegram.org/bots/api")
//!         // `_option(...)` variant for Option<T> values.
//!         .url_option(Some("https://core.telegram.org/bots/api"))]]);
//!
//! assert!(matches!(chat_id, ChatIdKind::Id(_)));
//! assert_eq!(keyboard.inline_keyboard.len(), 1);
//! ```
//!
//! ```rust
//! use telers::types::Message;
//!
//! fn inspect_message(message: &Message) {
//!     // `Message` is an enum, so helper methods provide unified access.
//!     let _chat = message.chat();
//!     let _message_id = message.message_id();
//!     let _maybe_text = message.text();
//! }
//! ```
#![allow(clippy::too_many_arguments)]
#![allow(clippy::struct_excessive_bools)]
#![allow(clippy::large_enum_variant)]
pub(crate) mod non_telegram;
pub(crate) mod to_methods;
pub use non_telegram::*;
pub mod accepted_gift_types;
pub mod affiliate_info;
pub mod animation;
pub mod audio;
pub mod background_fill;
pub mod background_fill_freeform_gradient;
pub mod background_fill_gradient;
pub mod background_fill_solid;
pub mod background_type;
pub mod background_type_chat_theme;
pub mod background_type_fill;
pub mod background_type_pattern;
pub mod background_type_wallpaper;
pub mod birthdate;
pub mod bot_command;
pub mod bot_command_scope;
pub mod bot_command_scope_all_chat_administrators;
pub mod bot_command_scope_all_group_chats;
pub mod bot_command_scope_all_private_chats;
pub mod bot_command_scope_chat;
pub mod bot_command_scope_chat_administrators;
pub mod bot_command_scope_chat_member;
pub mod bot_command_scope_default;
pub mod bot_description;
pub mod bot_name;
pub mod bot_short_description;
pub mod business_bot_rights;
pub mod business_connection;
pub mod business_intro;
pub mod business_location;
pub mod business_messages_deleted;
pub mod business_opening_hours;
pub mod business_opening_hours_interval;
pub mod callback_game;
pub mod callback_query;
pub mod chat;
pub mod chat_administrator_rights;
pub mod chat_background;
pub mod chat_boost;
pub mod chat_boost_added;
pub mod chat_boost_removed;
pub mod chat_boost_source;
pub mod chat_boost_source_gift_code;
pub mod chat_boost_source_giveaway;
pub mod chat_boost_source_premium;
pub mod chat_boost_updated;
pub mod chat_channel;
pub mod chat_full_info;
pub mod chat_full_info_channel;
pub mod chat_full_info_group;
pub mod chat_full_info_private;
pub mod chat_full_info_supergroup;
pub mod chat_group;
pub mod chat_invite_link;
pub mod chat_join_request;
pub mod chat_location;
pub mod chat_member;
pub mod chat_member_administrator;
pub mod chat_member_banned;
pub mod chat_member_left;
pub mod chat_member_member;
pub mod chat_member_owner;
pub mod chat_member_restricted;
pub mod chat_member_updated;
pub mod chat_owner_changed;
pub mod chat_owner_left;
pub mod chat_permissions;
pub mod chat_photo;
pub mod chat_private;
pub mod chat_shared;
pub mod chat_supergroup;
pub mod checklist;
pub mod checklist_task;
pub mod checklist_tasks_added;
pub mod checklist_tasks_done;
pub mod chosen_inline_result;
pub mod contact;
pub mod copy_text_button;
pub mod dice;
pub mod direct_message_price_changed;
pub mod direct_messages_topic;
pub mod document;
pub mod encrypted_credentials;
pub mod encrypted_passport_element;
pub mod encrypted_passport_element_address;
pub mod encrypted_passport_element_bank_statement;
pub mod encrypted_passport_element_driver_license;
pub mod encrypted_passport_element_email;
pub mod encrypted_passport_element_identity_card;
pub mod encrypted_passport_element_internal_passport;
pub mod encrypted_passport_element_passport;
pub mod encrypted_passport_element_passport_registration;
pub mod encrypted_passport_element_personal_details;
pub mod encrypted_passport_element_phone_number;
pub mod encrypted_passport_element_rental_agreement;
pub mod encrypted_passport_element_temporary_registration;
pub mod encrypted_passport_element_utility_bill;
pub mod external_reply_info;
pub mod external_reply_info_animation;
pub mod external_reply_info_audio;
pub mod external_reply_info_checklist;
pub mod external_reply_info_contact;
pub mod external_reply_info_dice;
pub mod external_reply_info_document;
pub mod external_reply_info_game;
pub mod external_reply_info_giveaway;
pub mod external_reply_info_giveaway_winners;
pub mod external_reply_info_invoice;
pub mod external_reply_info_location;
pub mod external_reply_info_photo;
pub mod external_reply_info_poll;
pub mod external_reply_info_sticker;
pub mod external_reply_info_story;
pub mod external_reply_info_venue;
pub mod external_reply_info_video;
pub mod external_reply_info_video_note;
pub mod external_reply_info_voice;
pub mod file;
pub mod force_reply;
pub mod forum_topic;
pub mod forum_topic_closed;
pub mod forum_topic_created;
pub mod forum_topic_edited;
pub mod forum_topic_reopened;
pub mod game;
pub mod game_high_score;
pub mod general_forum_topic_hidden;
pub mod general_forum_topic_unhidden;
pub mod gift;
pub mod gift_background;
pub mod gift_info;
pub mod gifts;
pub mod giveaway;
pub mod giveaway_completed;
pub mod giveaway_created;
pub mod giveaway_premium;
pub mod giveaway_star;
pub mod giveaway_winners;
pub mod giveaway_winners_premium;
pub mod giveaway_winners_star;
pub mod inaccessible_message;
pub mod inline_keyboard_button;
pub mod inline_keyboard_markup;
pub mod inline_query;
pub mod inline_query_result;
pub mod inline_query_result_article;
pub mod inline_query_result_audio;
pub mod inline_query_result_audio_kind;
pub mod inline_query_result_cached_audio;
pub mod inline_query_result_cached_document;
pub mod inline_query_result_cached_gif;
pub mod inline_query_result_cached_mpeg4_gif;
pub mod inline_query_result_cached_photo;
pub mod inline_query_result_cached_sticker;
pub mod inline_query_result_cached_video;
pub mod inline_query_result_cached_voice;
pub mod inline_query_result_contact;
pub mod inline_query_result_document;
pub mod inline_query_result_document_kind;
pub mod inline_query_result_game;
pub mod inline_query_result_gif;
pub mod inline_query_result_gif_kind;
pub mod inline_query_result_location;
pub mod inline_query_result_mpeg4_gif;
pub mod inline_query_result_photo;
pub mod inline_query_result_venue;
pub mod inline_query_result_video;
pub mod inline_query_result_video_kind;
pub mod inline_query_result_voice;
pub mod inline_query_result_voice_kind;
pub mod inline_query_results_button;
pub mod input_checklist;
pub mod input_checklist_task;
pub mod input_contact_message_content;
pub mod input_invoice_message_content;
pub mod input_location_message_content;
pub mod input_media;
pub mod input_media_animation;
pub mod input_media_audio;
pub mod input_media_document;
pub mod input_media_photo;
pub mod input_media_video;
pub mod input_message_content;
pub mod input_paid_media;
pub mod input_paid_media_photo;
pub mod input_paid_media_video;
pub mod input_poll_option;
pub mod input_profile_photo;
pub mod input_profile_photo_animated;
pub mod input_profile_photo_static;
pub mod input_sticker;
pub mod input_story_content;
pub mod input_story_content_photo;
pub mod input_story_content_video;
pub mod input_text_message_content;
pub mod input_venue_message_content;
pub mod invoice;
pub mod keyboard_button;
pub mod keyboard_button_poll_type;
pub mod keyboard_button_request_chat;
pub mod keyboard_button_request_managed_bot;
pub mod keyboard_button_request_users;
pub mod labeled_price;
pub mod link_preview_options;
pub mod location;
pub mod location_address;
pub mod login_url;
pub mod managed_bot_created;
pub mod managed_bot_updated;
pub mod mask_position;
pub mod maybe_inaccessible_message;
pub mod menu_button;
pub mod menu_button_commands;
pub mod menu_button_default;
pub mod menu_button_web_app;
pub mod message;
pub mod message_animation;
pub mod message_audio;
pub mod message_auto_delete_timer_changed;
pub mod message_boost_added;
pub mod message_channel_chat_created;
pub mod message_chat_background_set;
pub mod message_chat_owner_changed;
pub mod message_chat_owner_left;
pub mod message_chat_shared;
pub mod message_checklist;
pub mod message_checklist_tasks_added;
pub mod message_checklist_tasks_done;
pub mod message_connected_website;
pub mod message_contact;
pub mod message_delete_chat_photo;
pub mod message_dice;
pub mod message_direct_message_price_changed;
pub mod message_document;
pub mod message_entity;
pub mod message_entity_blockquote;
pub mod message_entity_bold;
pub mod message_entity_bot_command;
pub mod message_entity_cashtag;
pub mod message_entity_code;
pub mod message_entity_custom_emoji;
pub mod message_entity_date_time;
pub mod message_entity_email;
pub mod message_entity_expandable_blockquote;
pub mod message_entity_hashtag;
pub mod message_entity_italic;
pub mod message_entity_mention;
pub mod message_entity_phone_number;
pub mod message_entity_pre;
pub mod message_entity_spoiler;
pub mod message_entity_strikethrough;
pub mod message_entity_text_link;
pub mod message_entity_text_mention;
pub mod message_entity_underline;
pub mod message_entity_url;
pub mod message_forum_topic_closed;
pub mod message_forum_topic_created;
pub mod message_forum_topic_edited;
pub mod message_forum_topic_reopened;
pub mod message_game;
pub mod message_general_forum_topic_hidden;
pub mod message_general_forum_topic_unhidden;
pub mod message_gift;
pub mod message_gift_upgrade_sent;
pub mod message_giveaway;
pub mod message_giveaway_completed;
pub mod message_giveaway_created;
pub mod message_giveaway_winners;
pub mod message_group_chat_created;
pub mod message_id;
pub mod message_invoice;
pub mod message_left_chat_member;
pub mod message_location;
pub mod message_managed_bot_created;
pub mod message_message_auto_delete_timer_changed;
pub mod message_migrate_from_chat_id;
pub mod message_migrate_to_chat_id;
pub mod message_new_chat_members;
pub mod message_new_chat_photo;
pub mod message_new_chat_title;
pub mod message_origin;
pub mod message_origin_channel;
pub mod message_origin_chat;
pub mod message_origin_hidden_user;
pub mod message_origin_user;
pub mod message_paid_media;
pub mod message_paid_message_price_changed;
pub mod message_passport_data;
pub mod message_photo;
pub mod message_pinned_message;
pub mod message_poll;
pub mod message_poll_option_added;
pub mod message_poll_option_deleted;
pub mod message_proximity_alert_triggered;
pub mod message_reaction_count_updated;
pub mod message_reaction_updated;
pub mod message_refunded_payment;
pub mod message_sticker;
pub mod message_story;
pub mod message_successful_payment;
pub mod message_suggested_post_approval_failed;
pub mod message_suggested_post_approved;
pub mod message_suggested_post_declined;
pub mod message_suggested_post_paid;
pub mod message_suggested_post_refunded;
pub mod message_supergroup_chat_created;
pub mod message_text;
pub mod message_unique_gift;
pub mod message_users_shared;
pub mod message_venue;
pub mod message_video;
pub mod message_video_chat_ended;
pub mod message_video_chat_participants_invited;
pub mod message_video_chat_scheduled;
pub mod message_video_chat_started;
pub mod message_video_note;
pub mod message_voice;
pub mod message_web_app_data;
pub mod message_write_access_allowed;
pub mod order_info;
pub mod owned_gift;
pub mod owned_gift_regular;
pub mod owned_gift_unique;
pub mod owned_gifts;
pub mod paid_media;
pub mod paid_media_info;
pub mod paid_media_photo;
pub mod paid_media_preview;
pub mod paid_media_purchased;
pub mod paid_media_video;
pub mod paid_message_price_changed;
pub mod passport_data;
pub mod passport_element_error;
pub mod passport_element_error_data_field;
pub mod passport_element_error_file;
pub mod passport_element_error_files;
pub mod passport_element_error_front_side;
pub mod passport_element_error_reverse_side;
pub mod passport_element_error_selfie;
pub mod passport_element_error_translation_file;
pub mod passport_element_error_translation_files;
pub mod passport_element_error_unspecified;
pub mod passport_file;
pub mod photo_size;
pub mod poll;
pub mod poll_answer;
pub mod poll_option;
pub mod poll_option_added;
pub mod poll_option_deleted;
pub mod poll_quiz;
pub mod poll_regular;
pub mod pre_checkout_query;
pub mod prepared_inline_message;
pub mod prepared_keyboard_button;
pub mod proximity_alert_triggered;
pub mod reaction_count;
pub mod reaction_type;
pub mod reaction_type_custom_emoji;
pub mod reaction_type_emoji;
pub mod reaction_type_paid;
pub mod refunded_payment;
pub mod reply_keyboard_markup;
pub mod reply_keyboard_remove;
pub mod reply_markup;
pub mod reply_parameters;
pub mod response_parameters;
pub mod revenue_withdrawal_state;
pub mod revenue_withdrawal_state_failed;
pub mod revenue_withdrawal_state_pending;
pub mod revenue_withdrawal_state_succeeded;
pub mod sent_web_app_message;
pub mod shared_user;
pub mod shipping_address;
pub mod shipping_option;
pub mod shipping_query;
pub mod star_amount;
pub mod star_transaction;
pub mod star_transaction_incoming;
pub mod star_transaction_outgoing;
pub mod star_transactions;
pub mod sticker;
pub mod sticker_custom_emoji;
pub mod sticker_mask;
pub mod sticker_regular;
pub mod sticker_set;
pub mod story;
pub mod story_area;
pub mod story_area_position;
pub mod story_area_type;
pub mod story_area_type_link;
pub mod story_area_type_location;
pub mod story_area_type_suggested_reaction;
pub mod story_area_type_unique_gift;
pub mod story_area_type_weather;
pub mod successful_payment;
pub mod suggested_post_approval_failed;
pub mod suggested_post_approved;
pub mod suggested_post_declined;
pub mod suggested_post_info;
pub mod suggested_post_paid;
pub mod suggested_post_parameters;
pub mod suggested_post_price;
pub mod suggested_post_refunded;
pub mod switch_inline_query_chosen_chat;
pub mod text_quote;
pub mod transaction_partner;
pub mod transaction_partner_affiliate_program;
pub mod transaction_partner_chat;
pub mod transaction_partner_fragment;
pub mod transaction_partner_other;
pub mod transaction_partner_telegram_ads;
pub mod transaction_partner_telegram_api;
pub mod transaction_partner_user;
pub mod transaction_partner_user_business_account_transfer;
pub mod transaction_partner_user_gift_purchase;
pub mod transaction_partner_user_invoice_payment;
pub mod transaction_partner_user_paid_media_payment;
pub mod transaction_partner_user_premium_purchase;
pub mod unique_gift;
pub mod unique_gift_backdrop;
pub mod unique_gift_backdrop_colors;
pub mod unique_gift_colors;
pub mod unique_gift_info;
pub mod unique_gift_model;
pub mod unique_gift_symbol;
pub mod update;
pub mod update_business_connection;
pub mod update_business_message;
pub mod update_callback_query;
pub mod update_channel_post;
pub mod update_chat_boost;
pub mod update_chat_join_request;
pub mod update_chat_member;
pub mod update_chosen_inline_result;
pub mod update_deleted_business_messages;
pub mod update_edited_business_message;
pub mod update_edited_channel_post;
pub mod update_edited_message;
pub mod update_inline_query;
pub mod update_managed_bot;
pub mod update_message;
pub mod update_message_reaction;
pub mod update_message_reaction_count;
pub mod update_my_chat_member;
pub mod update_poll;
pub mod update_poll_answer;
pub mod update_pre_checkout_query;
pub mod update_purchased_paid_media;
pub mod update_removed_chat_boost;
pub mod update_shipping_query;
pub mod update_unparsed;
pub mod user;
pub mod user_chat_boosts;
pub mod user_profile_audios;
pub mod user_profile_photos;
pub mod user_rating;
pub mod users_shared;
pub mod venue;
pub mod video;
pub mod video_chat_ended;
pub mod video_chat_participants_invited;
pub mod video_chat_scheduled;
pub mod video_chat_started;
pub mod video_note;
pub mod video_quality;
pub mod voice;
pub mod web_app_data;
pub mod web_app_info;
pub mod webhook_info;
pub mod write_access_allowed;
pub use accepted_gift_types::AcceptedGiftTypes;
pub use affiliate_info::AffiliateInfo;
pub use animation::Animation;
pub use audio::Audio;
pub use background_fill::BackgroundFill;
pub use background_fill_freeform_gradient::BackgroundFillFreeformGradient;
pub use background_fill_gradient::BackgroundFillGradient;
pub use background_fill_solid::BackgroundFillSolid;
pub use background_type::BackgroundType;
pub use background_type_chat_theme::BackgroundTypeChatTheme;
pub use background_type_fill::BackgroundTypeFill;
pub use background_type_pattern::BackgroundTypePattern;
pub use background_type_wallpaper::BackgroundTypeWallpaper;
pub use birthdate::Birthdate;
pub use bot_command::BotCommand;
pub use bot_command_scope::BotCommandScope;
pub use bot_command_scope_all_chat_administrators::BotCommandScopeAllChatAdministrators;
pub use bot_command_scope_all_group_chats::BotCommandScopeAllGroupChats;
pub use bot_command_scope_all_private_chats::BotCommandScopeAllPrivateChats;
pub use bot_command_scope_chat::BotCommandScopeChat;
pub use bot_command_scope_chat_administrators::BotCommandScopeChatAdministrators;
pub use bot_command_scope_chat_member::BotCommandScopeChatMember;
pub use bot_command_scope_default::BotCommandScopeDefault;
pub use bot_description::BotDescription;
pub use bot_name::BotName;
pub use bot_short_description::BotShortDescription;
pub use business_bot_rights::BusinessBotRights;
pub use business_connection::BusinessConnection;
pub use business_intro::BusinessIntro;
pub use business_location::BusinessLocation;
pub use business_messages_deleted::BusinessMessagesDeleted;
pub use business_opening_hours::BusinessOpeningHours;
pub use business_opening_hours_interval::BusinessOpeningHoursInterval;
pub use callback_game::CallbackGame;
pub use callback_query::CallbackQuery;
pub use chat::Chat;
pub use chat_administrator_rights::ChatAdministratorRights;
pub use chat_background::ChatBackground;
pub use chat_boost::ChatBoost;
pub use chat_boost_added::ChatBoostAdded;
pub use chat_boost_removed::ChatBoostRemoved;
pub use chat_boost_source::ChatBoostSource;
pub use chat_boost_source_gift_code::ChatBoostSourceGiftCode;
pub use chat_boost_source_giveaway::ChatBoostSourceGiveaway;
pub use chat_boost_source_premium::ChatBoostSourcePremium;
pub use chat_boost_updated::ChatBoostUpdated;
pub use chat_channel::ChatChannel;
pub use chat_full_info::ChatFullInfo;
pub use chat_full_info_channel::ChatFullInfoChannel;
pub use chat_full_info_group::ChatFullInfoGroup;
pub use chat_full_info_private::ChatFullInfoPrivate;
pub use chat_full_info_supergroup::ChatFullInfoSupergroup;
pub use chat_group::ChatGroup;
pub use chat_invite_link::ChatInviteLink;
pub use chat_join_request::ChatJoinRequest;
pub use chat_location::ChatLocation;
pub use chat_member::ChatMember;
pub use chat_member_administrator::ChatMemberAdministrator;
pub use chat_member_banned::ChatMemberBanned;
pub use chat_member_left::ChatMemberLeft;
pub use chat_member_member::ChatMemberMember;
pub use chat_member_owner::ChatMemberOwner;
pub use chat_member_restricted::ChatMemberRestricted;
pub use chat_member_updated::ChatMemberUpdated;
pub use chat_owner_changed::ChatOwnerChanged;
pub use chat_owner_left::ChatOwnerLeft;
pub use chat_permissions::ChatPermissions;
pub use chat_photo::ChatPhoto;
pub use chat_private::ChatPrivate;
pub use chat_shared::ChatShared;
pub use chat_supergroup::ChatSupergroup;
pub use checklist::Checklist;
pub use checklist_task::ChecklistTask;
pub use checklist_tasks_added::ChecklistTasksAdded;
pub use checklist_tasks_done::ChecklistTasksDone;
pub use chosen_inline_result::ChosenInlineResult;
pub use contact::Contact;
pub use copy_text_button::CopyTextButton;
pub use dice::Dice;
pub use direct_message_price_changed::DirectMessagePriceChanged;
pub use direct_messages_topic::DirectMessagesTopic;
pub use document::Document;
pub use encrypted_credentials::EncryptedCredentials;
pub use encrypted_passport_element::EncryptedPassportElement;
pub use encrypted_passport_element_address::EncryptedPassportElementAddress;
pub use encrypted_passport_element_bank_statement::EncryptedPassportElementBankStatement;
pub use encrypted_passport_element_driver_license::EncryptedPassportElementDriverLicense;
pub use encrypted_passport_element_email::EncryptedPassportElementEmail;
pub use encrypted_passport_element_identity_card::EncryptedPassportElementIdentityCard;
pub use encrypted_passport_element_internal_passport::EncryptedPassportElementInternalPassport;
pub use encrypted_passport_element_passport::EncryptedPassportElementPassport;
pub use encrypted_passport_element_passport_registration::EncryptedPassportElementPassportRegistration;
pub use encrypted_passport_element_personal_details::EncryptedPassportElementPersonalDetails;
pub use encrypted_passport_element_phone_number::EncryptedPassportElementPhoneNumber;
pub use encrypted_passport_element_rental_agreement::EncryptedPassportElementRentalAgreement;
pub use encrypted_passport_element_temporary_registration::EncryptedPassportElementTemporaryRegistration;
pub use encrypted_passport_element_utility_bill::EncryptedPassportElementUtilityBill;
pub use external_reply_info::ExternalReplyInfo;
pub use external_reply_info_animation::ExternalReplyInfoAnimation;
pub use external_reply_info_audio::ExternalReplyInfoAudio;
pub use external_reply_info_checklist::ExternalReplyInfoChecklist;
pub use external_reply_info_contact::ExternalReplyInfoContact;
pub use external_reply_info_dice::ExternalReplyInfoDice;
pub use external_reply_info_document::ExternalReplyInfoDocument;
pub use external_reply_info_game::ExternalReplyInfoGame;
pub use external_reply_info_giveaway::ExternalReplyInfoGiveaway;
pub use external_reply_info_giveaway_winners::ExternalReplyInfoGiveawayWinners;
pub use external_reply_info_invoice::ExternalReplyInfoInvoice;
pub use external_reply_info_location::ExternalReplyInfoLocation;
pub use external_reply_info_photo::ExternalReplyInfoPhoto;
pub use external_reply_info_poll::ExternalReplyInfoPoll;
pub use external_reply_info_sticker::ExternalReplyInfoSticker;
pub use external_reply_info_story::ExternalReplyInfoStory;
pub use external_reply_info_venue::ExternalReplyInfoVenue;
pub use external_reply_info_video::ExternalReplyInfoVideo;
pub use external_reply_info_video_note::ExternalReplyInfoVideoNote;
pub use external_reply_info_voice::ExternalReplyInfoVoice;
pub use file::File;
pub use force_reply::ForceReply;
pub use forum_topic::ForumTopic;
pub use forum_topic_closed::ForumTopicClosed;
pub use forum_topic_created::ForumTopicCreated;
pub use forum_topic_edited::ForumTopicEdited;
pub use forum_topic_reopened::ForumTopicReopened;
pub use game::Game;
pub use game_high_score::GameHighScore;
pub use general_forum_topic_hidden::GeneralForumTopicHidden;
pub use general_forum_topic_unhidden::GeneralForumTopicUnhidden;
pub use gift::Gift;
pub use gift_background::GiftBackground;
pub use gift_info::GiftInfo;
pub use gifts::Gifts;
pub use giveaway::Giveaway;
pub use giveaway_completed::GiveawayCompleted;
pub use giveaway_created::GiveawayCreated;
pub use giveaway_premium::GiveawayPremium;
pub use giveaway_star::GiveawayStar;
pub use giveaway_winners::GiveawayWinners;
pub use giveaway_winners_premium::GiveawayWinnersPremium;
pub use giveaway_winners_star::GiveawayWinnersStar;
pub use inaccessible_message::InaccessibleMessage;
pub use inline_keyboard_button::InlineKeyboardButton;
pub use inline_keyboard_markup::InlineKeyboardMarkup;
pub use inline_query::InlineQuery;
pub use inline_query_result::InlineQueryResult;
pub use inline_query_result_article::InlineQueryResultArticle;
pub use inline_query_result_audio::InlineQueryResultAudio;
pub use inline_query_result_audio_kind::InlineQueryResultAudioKind;
pub use inline_query_result_cached_audio::InlineQueryResultCachedAudio;
pub use inline_query_result_cached_document::InlineQueryResultCachedDocument;
pub use inline_query_result_cached_gif::InlineQueryResultCachedGif;
pub use inline_query_result_cached_mpeg4_gif::InlineQueryResultCachedMpeg4Gif;
pub use inline_query_result_cached_photo::InlineQueryResultCachedPhoto;
pub use inline_query_result_cached_sticker::InlineQueryResultCachedSticker;
pub use inline_query_result_cached_video::InlineQueryResultCachedVideo;
pub use inline_query_result_cached_voice::InlineQueryResultCachedVoice;
pub use inline_query_result_contact::InlineQueryResultContact;
pub use inline_query_result_document::InlineQueryResultDocument;
pub use inline_query_result_document_kind::InlineQueryResultDocumentKind;
pub use inline_query_result_game::InlineQueryResultGame;
pub use inline_query_result_gif::InlineQueryResultGif;
pub use inline_query_result_gif_kind::InlineQueryResultGifKind;
pub use inline_query_result_location::InlineQueryResultLocation;
pub use inline_query_result_mpeg4_gif::InlineQueryResultMpeg4Gif;
pub use inline_query_result_photo::InlineQueryResultPhoto;
pub use inline_query_result_venue::InlineQueryResultVenue;
pub use inline_query_result_video::InlineQueryResultVideo;
pub use inline_query_result_video_kind::InlineQueryResultVideoKind;
pub use inline_query_result_voice::InlineQueryResultVoice;
pub use inline_query_result_voice_kind::InlineQueryResultVoiceKind;
pub use inline_query_results_button::InlineQueryResultsButton;
pub use input_checklist::InputChecklist;
pub use input_checklist_task::InputChecklistTask;
pub use input_contact_message_content::InputContactMessageContent;
pub use input_invoice_message_content::InputInvoiceMessageContent;
pub use input_location_message_content::InputLocationMessageContent;
pub use input_media::InputMedia;
pub use input_media_animation::InputMediaAnimation;
pub use input_media_audio::InputMediaAudio;
pub use input_media_document::InputMediaDocument;
pub use input_media_photo::InputMediaPhoto;
pub use input_media_video::InputMediaVideo;
pub use input_message_content::InputMessageContent;
pub use input_paid_media::InputPaidMedia;
pub use input_paid_media_photo::InputPaidMediaPhoto;
pub use input_paid_media_video::InputPaidMediaVideo;
pub use input_poll_option::InputPollOption;
pub use input_profile_photo::InputProfilePhoto;
pub use input_profile_photo_animated::InputProfilePhotoAnimated;
pub use input_profile_photo_static::InputProfilePhotoStatic;
pub use input_sticker::InputSticker;
pub use input_story_content::InputStoryContent;
pub use input_story_content_photo::InputStoryContentPhoto;
pub use input_story_content_video::InputStoryContentVideo;
pub use input_text_message_content::InputTextMessageContent;
pub use input_venue_message_content::InputVenueMessageContent;
pub use invoice::Invoice;
pub use keyboard_button::KeyboardButton;
pub use keyboard_button_poll_type::KeyboardButtonPollType;
pub use keyboard_button_request_chat::KeyboardButtonRequestChat;
pub use keyboard_button_request_managed_bot::KeyboardButtonRequestManagedBot;
pub use keyboard_button_request_users::KeyboardButtonRequestUsers;
pub use labeled_price::LabeledPrice;
pub use link_preview_options::LinkPreviewOptions;
pub use location::Location;
pub use location_address::LocationAddress;
pub use login_url::LoginUrl;
pub use managed_bot_created::ManagedBotCreated;
pub use managed_bot_updated::ManagedBotUpdated;
pub use mask_position::MaskPosition;
pub use maybe_inaccessible_message::MaybeInaccessibleMessage;
pub use menu_button::MenuButton;
pub use menu_button_commands::MenuButtonCommands;
pub use menu_button_default::MenuButtonDefault;
pub use menu_button_web_app::MenuButtonWebApp;
pub use message::Message;
pub use message_animation::MessageAnimation;
pub use message_audio::MessageAudio;
pub use message_auto_delete_timer_changed::MessageAutoDeleteTimerChanged;
pub use message_boost_added::MessageBoostAdded;
pub use message_channel_chat_created::MessageChannelChatCreated;
pub use message_chat_background_set::MessageChatBackgroundSet;
pub use message_chat_owner_changed::MessageChatOwnerChanged;
pub use message_chat_owner_left::MessageChatOwnerLeft;
pub use message_chat_shared::MessageChatShared;
pub use message_checklist::MessageChecklist;
pub use message_checklist_tasks_added::MessageChecklistTasksAdded;
pub use message_checklist_tasks_done::MessageChecklistTasksDone;
pub use message_connected_website::MessageConnectedWebsite;
pub use message_contact::MessageContact;
pub use message_delete_chat_photo::MessageDeleteChatPhoto;
pub use message_dice::MessageDice;
pub use message_direct_message_price_changed::MessageDirectMessagePriceChanged;
pub use message_document::MessageDocument;
pub use message_entity::MessageEntity;
pub use message_entity_blockquote::MessageEntityBlockquote;
pub use message_entity_bold::MessageEntityBold;
pub use message_entity_bot_command::MessageEntityBotCommand;
pub use message_entity_cashtag::MessageEntityCashtag;
pub use message_entity_code::MessageEntityCode;
pub use message_entity_custom_emoji::MessageEntityCustomEmoji;
pub use message_entity_date_time::MessageEntityDateTime;
pub use message_entity_email::MessageEntityEmail;
pub use message_entity_expandable_blockquote::MessageEntityExpandableBlockquote;
pub use message_entity_hashtag::MessageEntityHashtag;
pub use message_entity_italic::MessageEntityItalic;
pub use message_entity_mention::MessageEntityMention;
pub use message_entity_phone_number::MessageEntityPhoneNumber;
pub use message_entity_pre::MessageEntityPre;
pub use message_entity_spoiler::MessageEntitySpoiler;
pub use message_entity_strikethrough::MessageEntityStrikethrough;
pub use message_entity_text_link::MessageEntityTextLink;
pub use message_entity_text_mention::MessageEntityTextMention;
pub use message_entity_underline::MessageEntityUnderline;
pub use message_entity_url::MessageEntityUrl;
pub use message_forum_topic_closed::MessageForumTopicClosed;
pub use message_forum_topic_created::MessageForumTopicCreated;
pub use message_forum_topic_edited::MessageForumTopicEdited;
pub use message_forum_topic_reopened::MessageForumTopicReopened;
pub use message_game::MessageGame;
pub use message_general_forum_topic_hidden::MessageGeneralForumTopicHidden;
pub use message_general_forum_topic_unhidden::MessageGeneralForumTopicUnhidden;
pub use message_gift::MessageGift;
pub use message_gift_upgrade_sent::MessageGiftUpgradeSent;
pub use message_giveaway::MessageGiveaway;
pub use message_giveaway_completed::MessageGiveawayCompleted;
pub use message_giveaway_created::MessageGiveawayCreated;
pub use message_giveaway_winners::MessageGiveawayWinners;
pub use message_group_chat_created::MessageGroupChatCreated;
pub use message_id::MessageId;
pub use message_invoice::MessageInvoice;
pub use message_left_chat_member::MessageLeftChatMember;
pub use message_location::MessageLocation;
pub use message_managed_bot_created::MessageManagedBotCreated;
pub use message_message_auto_delete_timer_changed::MessageMessageAutoDeleteTimerChanged;
pub use message_migrate_from_chat_id::MessageMigrateFromChatId;
pub use message_migrate_to_chat_id::MessageMigrateToChatId;
pub use message_new_chat_members::MessageNewChatMembers;
pub use message_new_chat_photo::MessageNewChatPhoto;
pub use message_new_chat_title::MessageNewChatTitle;
pub use message_origin::MessageOrigin;
pub use message_origin_channel::MessageOriginChannel;
pub use message_origin_chat::MessageOriginChat;
pub use message_origin_hidden_user::MessageOriginHiddenUser;
pub use message_origin_user::MessageOriginUser;
pub use message_paid_media::MessagePaidMedia;
pub use message_paid_message_price_changed::MessagePaidMessagePriceChanged;
pub use message_passport_data::MessagePassportData;
pub use message_photo::MessagePhoto;
pub use message_pinned_message::MessagePinnedMessage;
pub use message_poll::MessagePoll;
pub use message_poll_option_added::MessagePollOptionAdded;
pub use message_poll_option_deleted::MessagePollOptionDeleted;
pub use message_proximity_alert_triggered::MessageProximityAlertTriggered;
pub use message_reaction_count_updated::MessageReactionCountUpdated;
pub use message_reaction_updated::MessageReactionUpdated;
pub use message_refunded_payment::MessageRefundedPayment;
pub use message_sticker::MessageSticker;
pub use message_story::MessageStory;
pub use message_successful_payment::MessageSuccessfulPayment;
pub use message_suggested_post_approval_failed::MessageSuggestedPostApprovalFailed;
pub use message_suggested_post_approved::MessageSuggestedPostApproved;
pub use message_suggested_post_declined::MessageSuggestedPostDeclined;
pub use message_suggested_post_paid::MessageSuggestedPostPaid;
pub use message_suggested_post_refunded::MessageSuggestedPostRefunded;
pub use message_supergroup_chat_created::MessageSupergroupChatCreated;
pub use message_text::MessageText;
pub use message_unique_gift::MessageUniqueGift;
pub use message_users_shared::MessageUsersShared;
pub use message_venue::MessageVenue;
pub use message_video::MessageVideo;
pub use message_video_chat_ended::MessageVideoChatEnded;
pub use message_video_chat_participants_invited::MessageVideoChatParticipantsInvited;
pub use message_video_chat_scheduled::MessageVideoChatScheduled;
pub use message_video_chat_started::MessageVideoChatStarted;
pub use message_video_note::MessageVideoNote;
pub use message_voice::MessageVoice;
pub use message_web_app_data::MessageWebAppData;
pub use message_write_access_allowed::MessageWriteAccessAllowed;
pub use order_info::OrderInfo;
pub use owned_gift::OwnedGift;
pub use owned_gift_regular::OwnedGiftRegular;
pub use owned_gift_unique::OwnedGiftUnique;
pub use owned_gifts::OwnedGifts;
pub use paid_media::PaidMedia;
pub use paid_media_info::PaidMediaInfo;
pub use paid_media_photo::PaidMediaPhoto;
pub use paid_media_preview::PaidMediaPreview;
pub use paid_media_purchased::PaidMediaPurchased;
pub use paid_media_video::PaidMediaVideo;
pub use paid_message_price_changed::PaidMessagePriceChanged;
pub use passport_data::PassportData;
pub use passport_element_error::PassportElementError;
pub use passport_element_error_data_field::PassportElementErrorDataField;
pub use passport_element_error_file::PassportElementErrorFile;
pub use passport_element_error_files::PassportElementErrorFiles;
pub use passport_element_error_front_side::PassportElementErrorFrontSide;
pub use passport_element_error_reverse_side::PassportElementErrorReverseSide;
pub use passport_element_error_selfie::PassportElementErrorSelfie;
pub use passport_element_error_translation_file::PassportElementErrorTranslationFile;
pub use passport_element_error_translation_files::PassportElementErrorTranslationFiles;
pub use passport_element_error_unspecified::PassportElementErrorUnspecified;
pub use passport_file::PassportFile;
pub use photo_size::PhotoSize;
pub use poll::Poll;
pub use poll_answer::PollAnswer;
pub use poll_option::PollOption;
pub use poll_option_added::PollOptionAdded;
pub use poll_option_deleted::PollOptionDeleted;
pub use poll_quiz::PollQuiz;
pub use poll_regular::PollRegular;
pub use pre_checkout_query::PreCheckoutQuery;
pub use prepared_inline_message::PreparedInlineMessage;
pub use prepared_keyboard_button::PreparedKeyboardButton;
pub use proximity_alert_triggered::ProximityAlertTriggered;
pub use reaction_count::ReactionCount;
pub use reaction_type::ReactionType;
pub use reaction_type_custom_emoji::ReactionTypeCustomEmoji;
pub use reaction_type_emoji::ReactionTypeEmoji;
pub use reaction_type_paid::ReactionTypePaid;
pub use refunded_payment::RefundedPayment;
pub use reply_keyboard_markup::ReplyKeyboardMarkup;
pub use reply_keyboard_remove::ReplyKeyboardRemove;
pub use reply_markup::ReplyMarkup;
pub use reply_parameters::ReplyParameters;
pub use response_parameters::ResponseParameters;
pub use revenue_withdrawal_state::RevenueWithdrawalState;
pub use revenue_withdrawal_state_failed::RevenueWithdrawalStateFailed;
pub use revenue_withdrawal_state_pending::RevenueWithdrawalStatePending;
pub use revenue_withdrawal_state_succeeded::RevenueWithdrawalStateSucceeded;
pub use sent_web_app_message::SentWebAppMessage;
pub use shared_user::SharedUser;
pub use shipping_address::ShippingAddress;
pub use shipping_option::ShippingOption;
pub use shipping_query::ShippingQuery;
pub use star_amount::StarAmount;
pub use star_transaction::StarTransaction;
pub use star_transaction_incoming::StarTransactionIncoming;
pub use star_transaction_outgoing::StarTransactionOutgoing;
pub use star_transactions::StarTransactions;
pub use sticker::Sticker;
pub use sticker_custom_emoji::StickerCustomEmoji;
pub use sticker_mask::StickerMask;
pub use sticker_regular::StickerRegular;
pub use sticker_set::StickerSet;
pub use story::Story;
pub use story_area::StoryArea;
pub use story_area_position::StoryAreaPosition;
pub use story_area_type::StoryAreaType;
pub use story_area_type_link::StoryAreaTypeLink;
pub use story_area_type_location::StoryAreaTypeLocation;
pub use story_area_type_suggested_reaction::StoryAreaTypeSuggestedReaction;
pub use story_area_type_unique_gift::StoryAreaTypeUniqueGift;
pub use story_area_type_weather::StoryAreaTypeWeather;
pub use successful_payment::SuccessfulPayment;
pub use suggested_post_approval_failed::SuggestedPostApprovalFailed;
pub use suggested_post_approved::SuggestedPostApproved;
pub use suggested_post_declined::SuggestedPostDeclined;
pub use suggested_post_info::SuggestedPostInfo;
pub use suggested_post_paid::SuggestedPostPaid;
pub use suggested_post_parameters::SuggestedPostParameters;
pub use suggested_post_price::SuggestedPostPrice;
pub use suggested_post_refunded::SuggestedPostRefunded;
pub use switch_inline_query_chosen_chat::SwitchInlineQueryChosenChat;
pub use text_quote::TextQuote;
pub use transaction_partner::TransactionPartner;
pub use transaction_partner_affiliate_program::TransactionPartnerAffiliateProgram;
pub use transaction_partner_chat::TransactionPartnerChat;
pub use transaction_partner_fragment::TransactionPartnerFragment;
pub use transaction_partner_other::TransactionPartnerOther;
pub use transaction_partner_telegram_ads::TransactionPartnerTelegramAds;
pub use transaction_partner_telegram_api::TransactionPartnerTelegramApi;
pub use transaction_partner_user::TransactionPartnerUser;
pub use transaction_partner_user_business_account_transfer::TransactionPartnerUserBusinessAccountTransfer;
pub use transaction_partner_user_gift_purchase::TransactionPartnerUserGiftPurchase;
pub use transaction_partner_user_invoice_payment::TransactionPartnerUserInvoicePayment;
pub use transaction_partner_user_paid_media_payment::TransactionPartnerUserPaidMediaPayment;
pub use transaction_partner_user_premium_purchase::TransactionPartnerUserPremiumPurchase;
pub use unique_gift::UniqueGift;
pub use unique_gift_backdrop::UniqueGiftBackdrop;
pub use unique_gift_backdrop_colors::UniqueGiftBackdropColors;
pub use unique_gift_colors::UniqueGiftColors;
pub use unique_gift_info::UniqueGiftInfo;
pub use unique_gift_model::UniqueGiftModel;
pub use unique_gift_symbol::UniqueGiftSymbol;
pub use update::Update;
pub use update_business_connection::UpdateBusinessConnection;
pub use update_business_message::UpdateBusinessMessage;
pub use update_callback_query::UpdateCallbackQuery;
pub use update_channel_post::UpdateChannelPost;
pub use update_chat_boost::UpdateChatBoost;
pub use update_chat_join_request::UpdateChatJoinRequest;
pub use update_chat_member::UpdateChatMember;
pub use update_chosen_inline_result::UpdateChosenInlineResult;
pub use update_deleted_business_messages::UpdateDeletedBusinessMessages;
pub use update_edited_business_message::UpdateEditedBusinessMessage;
pub use update_edited_channel_post::UpdateEditedChannelPost;
pub use update_edited_message::UpdateEditedMessage;
pub use update_inline_query::UpdateInlineQuery;
pub use update_managed_bot::UpdateManagedBot;
pub use update_message::UpdateMessage;
pub use update_message_reaction::UpdateMessageReaction;
pub use update_message_reaction_count::UpdateMessageReactionCount;
pub use update_my_chat_member::UpdateMyChatMember;
pub use update_poll::UpdatePoll;
pub use update_poll_answer::UpdatePollAnswer;
pub use update_pre_checkout_query::UpdatePreCheckoutQuery;
pub use update_purchased_paid_media::UpdatePurchasedPaidMedia;
pub use update_removed_chat_boost::UpdateRemovedChatBoost;
pub use update_shipping_query::UpdateShippingQuery;
pub use update_unparsed::UpdateUnparsed;
pub use user::User;
pub use user_chat_boosts::UserChatBoosts;
pub use user_profile_audios::UserProfileAudios;
pub use user_profile_photos::UserProfilePhotos;
pub use user_rating::UserRating;
pub use users_shared::UsersShared;
pub use venue::Venue;
pub use video::Video;
pub use video_chat_ended::VideoChatEnded;
pub use video_chat_participants_invited::VideoChatParticipantsInvited;
pub use video_chat_scheduled::VideoChatScheduled;
pub use video_chat_started::VideoChatStarted;
pub use video_note::VideoNote;
pub use video_quality::VideoQuality;
pub use voice::Voice;
pub use web_app_data::WebAppData;
pub use web_app_info::WebAppInfo;
pub use webhook_info::WebhookInfo;
pub use write_access_allowed::WriteAccessAllowed;