Skip to main content

telegram_client/api/
aasync.rs

1// Generated from TDLib 1.8.69 td_api.tl (commit 4c6377aa7386c39217878a9a56d581922ad37ca4).
2// Callback signatures are the public API.
3#![allow(clippy::type_complexity)]
4
5use rtdlib::errors::{RTDError, RTDResult};
6use rtdlib::types::*;
7
8use crate::api::Api;
9use crate::observer;
10
11macro_rules! async_caller {
12  ($td_type:ident) => {
13    async fn async_caller<Fnc: RFunction>(api: &Api, fnc: Fnc) -> RTDResult<$td_type> {
14      let extra = fnc.extra().ok_or(RTDError::Custom(
15        "invalid tdjson response type, not have `extra` field".to_string(),
16      ))?;
17      // Drop unsubscribes, including when `send` fails or this future is dropped.
18      let mut subscription = observer::subscribe(&extra);
19      api.send(&fnc)?;
20      let val = subscription.recv().await;
21      if let Some(TdType::Error(v)) = val {
22        return Err(RTDError::custom(format!("[{}] {}", v.code(), v.message())));
23      }
24      match val {
25        Some(TdType::$td_type(v)) => Ok(v),
26        _ => Err(RTDError::custom(
27          "invalid tdjson response type, unexpected `extra` field".to_string(),
28        )),
29      }
30    }
31  };
32}
33
34#[derive(Clone)]
35pub struct AsyncApi {
36  api: Api,
37}
38
39impl AsyncApi {
40  pub fn new(api: Api) -> Self {
41    Self { api }
42  }
43
44  #[doc(hidden)]
45  pub fn api(&self) -> &Api {
46    &self.api
47  }
48
49  pub async fn accept_call<C: AsRef<AcceptCall>>(&self, accept_call: C) -> RTDResult<Ok> {
50    async_caller!(Ok);
51    async_caller(&self.api, accept_call.as_ref()).await
52  }
53
54  pub async fn accept_oauth_request<C: AsRef<AcceptOauthRequest>>(
55    &self,
56    accept_oauth_request: C,
57  ) -> RTDResult<HttpUrl> {
58    async_caller!(HttpUrl);
59    async_caller(&self.api, accept_oauth_request.as_ref()).await
60  }
61
62  pub async fn accept_terms_of_service<C: AsRef<AcceptTermsOfService>>(
63    &self,
64    accept_terms_of_service: C,
65  ) -> RTDResult<Ok> {
66    async_caller!(Ok);
67    async_caller(&self.api, accept_terms_of_service.as_ref()).await
68  }
69
70  pub async fn activate_story_stealth_mode<C: AsRef<ActivateStoryStealthMode>>(
71    &self,
72    activate_story_stealth_mode: C,
73  ) -> RTDResult<Ok> {
74    async_caller!(Ok);
75    async_caller(&self.api, activate_story_stealth_mode.as_ref()).await
76  }
77
78  pub async fn add_bot_media_preview<C: AsRef<AddBotMediaPreview>>(
79    &self,
80    add_bot_media_preview: C,
81  ) -> RTDResult<BotMediaPreview> {
82    async_caller!(BotMediaPreview);
83    async_caller(&self.api, add_bot_media_preview.as_ref()).await
84  }
85
86  pub async fn add_bot_secondary_username<C: AsRef<AddBotSecondaryUsername>>(
87    &self,
88    add_bot_secondary_username: C,
89  ) -> RTDResult<Ok> {
90    async_caller!(Ok);
91    async_caller(&self.api, add_bot_secondary_username.as_ref()).await
92  }
93
94  pub async fn add_chat_folder_by_invite_link<C: AsRef<AddChatFolderByInviteLink>>(
95    &self,
96    add_chat_folder_by_invite_link: C,
97  ) -> RTDResult<Ok> {
98    async_caller!(Ok);
99    async_caller(&self.api, add_chat_folder_by_invite_link.as_ref()).await
100  }
101
102  pub async fn add_chat_member<C: AsRef<AddChatMember>>(
103    &self,
104    add_chat_member: C,
105  ) -> RTDResult<FailedToAddMembers> {
106    async_caller!(FailedToAddMembers);
107    async_caller(&self.api, add_chat_member.as_ref()).await
108  }
109
110  pub async fn add_chat_members<C: AsRef<AddChatMembers>>(
111    &self,
112    add_chat_members: C,
113  ) -> RTDResult<FailedToAddMembers> {
114    async_caller!(FailedToAddMembers);
115    async_caller(&self.api, add_chat_members.as_ref()).await
116  }
117
118  pub async fn add_chat_to_list<C: AsRef<AddChatToList>>(
119    &self,
120    add_chat_to_list: C,
121  ) -> RTDResult<Ok> {
122    async_caller!(Ok);
123    async_caller(&self.api, add_chat_to_list.as_ref()).await
124  }
125
126  pub async fn add_chat_welcome_message<C: AsRef<AddChatWelcomeMessage>>(
127    &self,
128    add_chat_welcome_message: C,
129  ) -> RTDResult<Ok> {
130    async_caller!(Ok);
131    async_caller(&self.api, add_chat_welcome_message.as_ref()).await
132  }
133
134  pub async fn add_checklist_tasks<C: AsRef<AddChecklistTasks>>(
135    &self,
136    add_checklist_tasks: C,
137  ) -> RTDResult<Ok> {
138    async_caller!(Ok);
139    async_caller(&self.api, add_checklist_tasks.as_ref()).await
140  }
141
142  pub async fn add_contact<C: AsRef<AddContact>>(&self, add_contact: C) -> RTDResult<Ok> {
143    async_caller!(Ok);
144    async_caller(&self.api, add_contact.as_ref()).await
145  }
146
147  pub async fn add_custom_server_language_pack<C: AsRef<AddCustomServerLanguagePack>>(
148    &self,
149    add_custom_server_language_pack: C,
150  ) -> RTDResult<Ok> {
151    async_caller!(Ok);
152    async_caller(&self.api, add_custom_server_language_pack.as_ref()).await
153  }
154
155  pub async fn add_favorite_sticker<C: AsRef<AddFavoriteSticker>>(
156    &self,
157    add_favorite_sticker: C,
158  ) -> RTDResult<Ok> {
159    async_caller!(Ok);
160    async_caller(&self.api, add_favorite_sticker.as_ref()).await
161  }
162
163  pub async fn add_file_to_downloads<C: AsRef<AddFileToDownloads>>(
164    &self,
165    add_file_to_downloads: C,
166  ) -> RTDResult<File> {
167    async_caller!(File);
168    async_caller(&self.api, add_file_to_downloads.as_ref()).await
169  }
170
171  pub async fn add_gift_collection_gifts<C: AsRef<AddGiftCollectionGifts>>(
172    &self,
173    add_gift_collection_gifts: C,
174  ) -> RTDResult<GiftCollection> {
175    async_caller!(GiftCollection);
176    async_caller(&self.api, add_gift_collection_gifts.as_ref()).await
177  }
178
179  pub async fn add_local_message<C: AsRef<AddLocalMessage>>(
180    &self,
181    add_local_message: C,
182  ) -> RTDResult<Message> {
183    async_caller!(Message);
184    async_caller(&self.api, add_local_message.as_ref()).await
185  }
186
187  pub async fn add_log_message<C: AsRef<AddLogMessage>>(
188    &self,
189    add_log_message: C,
190  ) -> RTDResult<Ok> {
191    async_caller!(Ok);
192    async_caller(&self.api, add_log_message.as_ref()).await
193  }
194
195  pub async fn add_login_passkey<C: AsRef<AddLoginPasskey>>(
196    &self,
197    add_login_passkey: C,
198  ) -> RTDResult<Passkey> {
199    async_caller!(Passkey);
200    async_caller(&self.api, add_login_passkey.as_ref()).await
201  }
202
203  pub async fn add_message_reaction<C: AsRef<AddMessageReaction>>(
204    &self,
205    add_message_reaction: C,
206  ) -> RTDResult<Ok> {
207    async_caller!(Ok);
208    async_caller(&self.api, add_message_reaction.as_ref()).await
209  }
210
211  pub async fn add_network_statistics<C: AsRef<AddNetworkStatistics>>(
212    &self,
213    add_network_statistics: C,
214  ) -> RTDResult<Ok> {
215    async_caller!(Ok);
216    async_caller(&self.api, add_network_statistics.as_ref()).await
217  }
218
219  pub async fn add_offer<C: AsRef<AddOffer>>(&self, add_offer: C) -> RTDResult<Message> {
220    async_caller!(Message);
221    async_caller(&self.api, add_offer.as_ref()).await
222  }
223
224  pub async fn add_pending_live_story_reaction<C: AsRef<AddPendingLiveStoryReaction>>(
225    &self,
226    add_pending_live_story_reaction: C,
227  ) -> RTDResult<Ok> {
228    async_caller!(Ok);
229    async_caller(&self.api, add_pending_live_story_reaction.as_ref()).await
230  }
231
232  pub async fn add_pending_paid_message_reaction<C: AsRef<AddPendingPaidMessageReaction>>(
233    &self,
234    add_pending_paid_message_reaction: C,
235  ) -> RTDResult<Ok> {
236    async_caller!(Ok);
237    async_caller(&self.api, add_pending_paid_message_reaction.as_ref()).await
238  }
239
240  pub async fn add_poll_option<C: AsRef<AddPollOption>>(
241    &self,
242    add_poll_option: C,
243  ) -> RTDResult<Ok> {
244    async_caller!(Ok);
245    async_caller(&self.api, add_poll_option.as_ref()).await
246  }
247
248  pub async fn add_profile_audio<C: AsRef<AddProfileAudio>>(
249    &self,
250    add_profile_audio: C,
251  ) -> RTDResult<Ok> {
252    async_caller!(Ok);
253    async_caller(&self.api, add_profile_audio.as_ref()).await
254  }
255
256  pub async fn add_proxy<C: AsRef<AddProxy>>(&self, add_proxy: C) -> RTDResult<AddedProxy> {
257    async_caller!(AddedProxy);
258    async_caller(&self.api, add_proxy.as_ref()).await
259  }
260
261  pub async fn add_quick_reply_shortcut_inline_query_result_message<
262    C: AsRef<AddQuickReplyShortcutInlineQueryResultMessage>,
263  >(
264    &self,
265    add_quick_reply_shortcut_inline_query_result_message: C,
266  ) -> RTDResult<QuickReplyMessage> {
267    async_caller!(QuickReplyMessage);
268    async_caller(
269      &self.api,
270      add_quick_reply_shortcut_inline_query_result_message.as_ref(),
271    )
272    .await
273  }
274
275  pub async fn add_quick_reply_shortcut_message<C: AsRef<AddQuickReplyShortcutMessage>>(
276    &self,
277    add_quick_reply_shortcut_message: C,
278  ) -> RTDResult<QuickReplyMessage> {
279    async_caller!(QuickReplyMessage);
280    async_caller(&self.api, add_quick_reply_shortcut_message.as_ref()).await
281  }
282
283  pub async fn add_quick_reply_shortcut_message_album<
284    C: AsRef<AddQuickReplyShortcutMessageAlbum>,
285  >(
286    &self,
287    add_quick_reply_shortcut_message_album: C,
288  ) -> RTDResult<QuickReplyMessages> {
289    async_caller!(QuickReplyMessages);
290    async_caller(&self.api, add_quick_reply_shortcut_message_album.as_ref()).await
291  }
292
293  pub async fn add_recent_sticker<C: AsRef<AddRecentSticker>>(
294    &self,
295    add_recent_sticker: C,
296  ) -> RTDResult<Stickers> {
297    async_caller!(Stickers);
298    async_caller(&self.api, add_recent_sticker.as_ref()).await
299  }
300
301  pub async fn add_recently_found_chat<C: AsRef<AddRecentlyFoundChat>>(
302    &self,
303    add_recently_found_chat: C,
304  ) -> RTDResult<Ok> {
305    async_caller!(Ok);
306    async_caller(&self.api, add_recently_found_chat.as_ref()).await
307  }
308
309  pub async fn add_saved_animation<C: AsRef<AddSavedAnimation>>(
310    &self,
311    add_saved_animation: C,
312  ) -> RTDResult<Ok> {
313    async_caller!(Ok);
314    async_caller(&self.api, add_saved_animation.as_ref()).await
315  }
316
317  pub async fn add_saved_notification_sound<C: AsRef<AddSavedNotificationSound>>(
318    &self,
319    add_saved_notification_sound: C,
320  ) -> RTDResult<NotificationSound> {
321    async_caller!(NotificationSound);
322    async_caller(&self.api, add_saved_notification_sound.as_ref()).await
323  }
324
325  pub async fn add_sticker_to_set<C: AsRef<AddStickerToSet>>(
326    &self,
327    add_sticker_to_set: C,
328  ) -> RTDResult<Ok> {
329    async_caller!(Ok);
330    async_caller(&self.api, add_sticker_to_set.as_ref()).await
331  }
332
333  pub async fn add_story_album_stories<C: AsRef<AddStoryAlbumStories>>(
334    &self,
335    add_story_album_stories: C,
336  ) -> RTDResult<StoryAlbum> {
337    async_caller!(StoryAlbum);
338    async_caller(&self.api, add_story_album_stories.as_ref()).await
339  }
340
341  pub async fn add_text_composition_style<C: AsRef<AddTextCompositionStyle>>(
342    &self,
343    add_text_composition_style: C,
344  ) -> RTDResult<Ok> {
345    async_caller!(Ok);
346    async_caller(&self.api, add_text_composition_style.as_ref()).await
347  }
348
349  pub async fn add_web_browser_settings_exception<C: AsRef<AddWebBrowserSettingsException>>(
350    &self,
351    add_web_browser_settings_exception: C,
352  ) -> RTDResult<Ok> {
353    async_caller!(Ok);
354    async_caller(&self.api, add_web_browser_settings_exception.as_ref()).await
355  }
356
357  pub async fn allow_bot_to_send_messages<C: AsRef<AllowBotToSendMessages>>(
358    &self,
359    allow_bot_to_send_messages: C,
360  ) -> RTDResult<Ok> {
361    async_caller!(Ok);
362    async_caller(&self.api, allow_bot_to_send_messages.as_ref()).await
363  }
364
365  pub async fn allow_unpaid_messages_from_user<C: AsRef<AllowUnpaidMessagesFromUser>>(
366    &self,
367    allow_unpaid_messages_from_user: C,
368  ) -> RTDResult<Ok> {
369    async_caller!(Ok);
370    async_caller(&self.api, allow_unpaid_messages_from_user.as_ref()).await
371  }
372
373  pub async fn answer_callback_query<C: AsRef<AnswerCallbackQuery>>(
374    &self,
375    answer_callback_query: C,
376  ) -> RTDResult<Ok> {
377    async_caller!(Ok);
378    async_caller(&self.api, answer_callback_query.as_ref()).await
379  }
380
381  pub async fn answer_chat_join_request_query<C: AsRef<AnswerChatJoinRequestQuery>>(
382    &self,
383    answer_chat_join_request_query: C,
384  ) -> RTDResult<Ok> {
385    async_caller!(Ok);
386    async_caller(&self.api, answer_chat_join_request_query.as_ref()).await
387  }
388
389  pub async fn answer_custom_query<C: AsRef<AnswerCustomQuery>>(
390    &self,
391    answer_custom_query: C,
392  ) -> RTDResult<Ok> {
393    async_caller!(Ok);
394    async_caller(&self.api, answer_custom_query.as_ref()).await
395  }
396
397  pub async fn answer_guest_query<C: AsRef<AnswerGuestQuery>>(
398    &self,
399    answer_guest_query: C,
400  ) -> RTDResult<InlineMessageId> {
401    async_caller!(InlineMessageId);
402    async_caller(&self.api, answer_guest_query.as_ref()).await
403  }
404
405  pub async fn answer_inline_query<C: AsRef<AnswerInlineQuery>>(
406    &self,
407    answer_inline_query: C,
408  ) -> RTDResult<Ok> {
409    async_caller!(Ok);
410    async_caller(&self.api, answer_inline_query.as_ref()).await
411  }
412
413  pub async fn answer_pre_checkout_query<C: AsRef<AnswerPreCheckoutQuery>>(
414    &self,
415    answer_pre_checkout_query: C,
416  ) -> RTDResult<Ok> {
417    async_caller!(Ok);
418    async_caller(&self.api, answer_pre_checkout_query.as_ref()).await
419  }
420
421  pub async fn answer_shipping_query<C: AsRef<AnswerShippingQuery>>(
422    &self,
423    answer_shipping_query: C,
424  ) -> RTDResult<Ok> {
425    async_caller!(Ok);
426    async_caller(&self.api, answer_shipping_query.as_ref()).await
427  }
428
429  pub async fn answer_ton_connect_request<C: AsRef<AnswerTonConnectRequest>>(
430    &self,
431    answer_ton_connect_request: C,
432  ) -> RTDResult<Ok> {
433    async_caller!(Ok);
434    async_caller(&self.api, answer_ton_connect_request.as_ref()).await
435  }
436
437  pub async fn answer_web_app_query<C: AsRef<AnswerWebAppQuery>>(
438    &self,
439    answer_web_app_query: C,
440  ) -> RTDResult<InlineMessageId> {
441    async_caller!(InlineMessageId);
442    async_caller(&self.api, answer_web_app_query.as_ref()).await
443  }
444
445  pub async fn apply_premium_gift_code<C: AsRef<ApplyPremiumGiftCode>>(
446    &self,
447    apply_premium_gift_code: C,
448  ) -> RTDResult<Ok> {
449    async_caller!(Ok);
450    async_caller(&self.api, apply_premium_gift_code.as_ref()).await
451  }
452
453  pub async fn apply_unpaid_messages_token<C: AsRef<ApplyUnpaidMessagesToken>>(
454    &self,
455    apply_unpaid_messages_token: C,
456  ) -> RTDResult<Ok> {
457    async_caller!(Ok);
458    async_caller(&self.api, apply_unpaid_messages_token.as_ref()).await
459  }
460
461  pub async fn approve_suggested_post<C: AsRef<ApproveSuggestedPost>>(
462    &self,
463    approve_suggested_post: C,
464  ) -> RTDResult<Ok> {
465    async_caller!(Ok);
466    async_caller(&self.api, approve_suggested_post.as_ref()).await
467  }
468
469  pub async fn assign_store_transaction<C: AsRef<AssignStoreTransaction>>(
470    &self,
471    assign_store_transaction: C,
472  ) -> RTDResult<Ok> {
473    async_caller!(Ok);
474    async_caller(&self.api, assign_store_transaction.as_ref()).await
475  }
476
477  pub async fn ban_chat_member<C: AsRef<BanChatMember>>(
478    &self,
479    ban_chat_member: C,
480  ) -> RTDResult<Ok> {
481    async_caller!(Ok);
482    async_caller(&self.api, ban_chat_member.as_ref()).await
483  }
484
485  pub async fn ban_group_call_participants<C: AsRef<BanGroupCallParticipants>>(
486    &self,
487    ban_group_call_participants: C,
488  ) -> RTDResult<Ok> {
489    async_caller!(Ok);
490    async_caller(&self.api, ban_group_call_participants.as_ref()).await
491  }
492
493  pub async fn block_message_sender_from_replies<C: AsRef<BlockMessageSenderFromReplies>>(
494    &self,
495    block_message_sender_from_replies: C,
496  ) -> RTDResult<Ok> {
497    async_caller!(Ok);
498    async_caller(&self.api, block_message_sender_from_replies.as_ref()).await
499  }
500
501  pub async fn boost_chat<C: AsRef<BoostChat>>(&self, boost_chat: C) -> RTDResult<ChatBoostSlots> {
502    async_caller!(ChatBoostSlots);
503    async_caller(&self.api, boost_chat.as_ref()).await
504  }
505
506  pub async fn buy_gift_upgrade<C: AsRef<BuyGiftUpgrade>>(
507    &self,
508    buy_gift_upgrade: C,
509  ) -> RTDResult<Ok> {
510    async_caller!(Ok);
511    async_caller(&self.api, buy_gift_upgrade.as_ref()).await
512  }
513
514  pub async fn can_bot_send_messages<C: AsRef<CanBotSendMessages>>(
515    &self,
516    can_bot_send_messages: C,
517  ) -> RTDResult<Ok> {
518    async_caller!(Ok);
519    async_caller(&self.api, can_bot_send_messages.as_ref()).await
520  }
521
522  pub async fn can_post_story<C: AsRef<CanPostStory>>(
523    &self,
524    can_post_story: C,
525  ) -> RTDResult<CanPostStoryResult> {
526    async_caller!(CanPostStoryResult);
527    async_caller(&self.api, can_post_story.as_ref()).await
528  }
529
530  pub async fn can_purchase_from_store<C: AsRef<CanPurchaseFromStore>>(
531    &self,
532    can_purchase_from_store: C,
533  ) -> RTDResult<Ok> {
534    async_caller!(Ok);
535    async_caller(&self.api, can_purchase_from_store.as_ref()).await
536  }
537
538  pub async fn can_send_gift<C: AsRef<CanSendGift>>(
539    &self,
540    can_send_gift: C,
541  ) -> RTDResult<CanSendGiftResult> {
542    async_caller!(CanSendGiftResult);
543    async_caller(&self.api, can_send_gift.as_ref()).await
544  }
545
546  pub async fn can_send_message_to_user<C: AsRef<CanSendMessageToUser>>(
547    &self,
548    can_send_message_to_user: C,
549  ) -> RTDResult<CanSendMessageToUserResult> {
550    async_caller!(CanSendMessageToUserResult);
551    async_caller(&self.api, can_send_message_to_user.as_ref()).await
552  }
553
554  pub async fn can_transfer_ownership<C: AsRef<CanTransferOwnership>>(
555    &self,
556    can_transfer_ownership: C,
557  ) -> RTDResult<CanTransferOwnershipResult> {
558    async_caller!(CanTransferOwnershipResult);
559    async_caller(&self.api, can_transfer_ownership.as_ref()).await
560  }
561
562  pub async fn cancel_download_file<C: AsRef<CancelDownloadFile>>(
563    &self,
564    cancel_download_file: C,
565  ) -> RTDResult<Ok> {
566    async_caller!(Ok);
567    async_caller(&self.api, cancel_download_file.as_ref()).await
568  }
569
570  pub async fn cancel_password_reset<C: AsRef<CancelPasswordReset>>(
571    &self,
572    cancel_password_reset: C,
573  ) -> RTDResult<Ok> {
574    async_caller!(Ok);
575    async_caller(&self.api, cancel_password_reset.as_ref()).await
576  }
577
578  pub async fn cancel_preliminary_upload_file<C: AsRef<CancelPreliminaryUploadFile>>(
579    &self,
580    cancel_preliminary_upload_file: C,
581  ) -> RTDResult<Ok> {
582    async_caller!(Ok);
583    async_caller(&self.api, cancel_preliminary_upload_file.as_ref()).await
584  }
585
586  pub async fn cancel_recovery_email_address_verification<
587    C: AsRef<CancelRecoveryEmailAddressVerification>,
588  >(
589    &self,
590    cancel_recovery_email_address_verification: C,
591  ) -> RTDResult<PasswordState> {
592    async_caller!(PasswordState);
593    async_caller(
594      &self.api,
595      cancel_recovery_email_address_verification.as_ref(),
596    )
597    .await
598  }
599
600  pub async fn change_imported_contacts<C: AsRef<ChangeImportedContacts>>(
601    &self,
602    change_imported_contacts: C,
603  ) -> RTDResult<ImportedContacts> {
604    async_caller!(ImportedContacts);
605    async_caller(&self.api, change_imported_contacts.as_ref()).await
606  }
607
608  pub async fn change_sticker_set<C: AsRef<ChangeStickerSet>>(
609    &self,
610    change_sticker_set: C,
611  ) -> RTDResult<Ok> {
612    async_caller!(Ok);
613    async_caller(&self.api, change_sticker_set.as_ref()).await
614  }
615
616  pub async fn change_web_browser_settings<C: AsRef<ChangeWebBrowserSettings>>(
617    &self,
618    change_web_browser_settings: C,
619  ) -> RTDResult<Ok> {
620    async_caller!(Ok);
621    async_caller(&self.api, change_web_browser_settings.as_ref()).await
622  }
623
624  pub async fn check_authentication_bot_token<C: AsRef<CheckAuthenticationBotToken>>(
625    &self,
626    check_authentication_bot_token: C,
627  ) -> RTDResult<Ok> {
628    async_caller!(Ok);
629    async_caller(&self.api, check_authentication_bot_token.as_ref()).await
630  }
631
632  pub async fn check_authentication_code<C: AsRef<CheckAuthenticationCode>>(
633    &self,
634    check_authentication_code: C,
635  ) -> RTDResult<Ok> {
636    async_caller!(Ok);
637    async_caller(&self.api, check_authentication_code.as_ref()).await
638  }
639
640  pub async fn check_authentication_email_code<C: AsRef<CheckAuthenticationEmailCode>>(
641    &self,
642    check_authentication_email_code: C,
643  ) -> RTDResult<Ok> {
644    async_caller!(Ok);
645    async_caller(&self.api, check_authentication_email_code.as_ref()).await
646  }
647
648  pub async fn check_authentication_passkey<C: AsRef<CheckAuthenticationPasskey>>(
649    &self,
650    check_authentication_passkey: C,
651  ) -> RTDResult<Ok> {
652    async_caller!(Ok);
653    async_caller(&self.api, check_authentication_passkey.as_ref()).await
654  }
655
656  pub async fn check_authentication_password<C: AsRef<CheckAuthenticationPassword>>(
657    &self,
658    check_authentication_password: C,
659  ) -> RTDResult<Ok> {
660    async_caller!(Ok);
661    async_caller(&self.api, check_authentication_password.as_ref()).await
662  }
663
664  pub async fn check_authentication_password_recovery_code<
665    C: AsRef<CheckAuthenticationPasswordRecoveryCode>,
666  >(
667    &self,
668    check_authentication_password_recovery_code: C,
669  ) -> RTDResult<Ok> {
670    async_caller!(Ok);
671    async_caller(
672      &self.api,
673      check_authentication_password_recovery_code.as_ref(),
674    )
675    .await
676  }
677
678  pub async fn check_authentication_premium_purchase<
679    C: AsRef<CheckAuthenticationPremiumPurchase>,
680  >(
681    &self,
682    check_authentication_premium_purchase: C,
683  ) -> RTDResult<Ok> {
684    async_caller!(Ok);
685    async_caller(&self.api, check_authentication_premium_purchase.as_ref()).await
686  }
687
688  pub async fn check_authentication_web_token<C: AsRef<CheckAuthenticationWebToken>>(
689    &self,
690    check_authentication_web_token: C,
691  ) -> RTDResult<Ok> {
692    async_caller!(Ok);
693    async_caller(&self.api, check_authentication_web_token.as_ref()).await
694  }
695
696  pub async fn check_bot_username<C: AsRef<CheckBotUsername>>(
697    &self,
698    check_bot_username: C,
699  ) -> RTDResult<CheckChatUsernameResult> {
700    async_caller!(CheckChatUsernameResult);
701    async_caller(&self.api, check_bot_username.as_ref()).await
702  }
703
704  pub async fn check_chat_folder_invite_link<C: AsRef<CheckChatFolderInviteLink>>(
705    &self,
706    check_chat_folder_invite_link: C,
707  ) -> RTDResult<ChatFolderInviteLinkInfo> {
708    async_caller!(ChatFolderInviteLinkInfo);
709    async_caller(&self.api, check_chat_folder_invite_link.as_ref()).await
710  }
711
712  pub async fn check_chat_invite_link<C: AsRef<CheckChatInviteLink>>(
713    &self,
714    check_chat_invite_link: C,
715  ) -> RTDResult<ChatInviteLinkInfo> {
716    async_caller!(ChatInviteLinkInfo);
717    async_caller(&self.api, check_chat_invite_link.as_ref()).await
718  }
719
720  pub async fn check_chat_username<C: AsRef<CheckChatUsername>>(
721    &self,
722    check_chat_username: C,
723  ) -> RTDResult<CheckChatUsernameResult> {
724    async_caller!(CheckChatUsernameResult);
725    async_caller(&self.api, check_chat_username.as_ref()).await
726  }
727
728  pub async fn check_created_public_chats_limit<C: AsRef<CheckCreatedPublicChatsLimit>>(
729    &self,
730    check_created_public_chats_limit: C,
731  ) -> RTDResult<Ok> {
732    async_caller!(Ok);
733    async_caller(&self.api, check_created_public_chats_limit.as_ref()).await
734  }
735
736  pub async fn check_email_address_verification_code<
737    C: AsRef<CheckEmailAddressVerificationCode>,
738  >(
739    &self,
740    check_email_address_verification_code: C,
741  ) -> RTDResult<Ok> {
742    async_caller!(Ok);
743    async_caller(&self.api, check_email_address_verification_code.as_ref()).await
744  }
745
746  pub async fn check_login_email_address_code<C: AsRef<CheckLoginEmailAddressCode>>(
747    &self,
748    check_login_email_address_code: C,
749  ) -> RTDResult<Ok> {
750    async_caller!(Ok);
751    async_caller(&self.api, check_login_email_address_code.as_ref()).await
752  }
753
754  pub async fn check_oauth_request_match_code<C: AsRef<CheckOauthRequestMatchCode>>(
755    &self,
756    check_oauth_request_match_code: C,
757  ) -> RTDResult<Ok> {
758    async_caller!(Ok);
759    async_caller(&self.api, check_oauth_request_match_code.as_ref()).await
760  }
761
762  pub async fn check_password_recovery_code<C: AsRef<CheckPasswordRecoveryCode>>(
763    &self,
764    check_password_recovery_code: C,
765  ) -> RTDResult<Ok> {
766    async_caller!(Ok);
767    async_caller(&self.api, check_password_recovery_code.as_ref()).await
768  }
769
770  pub async fn check_phone_number_code<C: AsRef<CheckPhoneNumberCode>>(
771    &self,
772    check_phone_number_code: C,
773  ) -> RTDResult<Ok> {
774    async_caller!(Ok);
775    async_caller(&self.api, check_phone_number_code.as_ref()).await
776  }
777
778  pub async fn check_premium_gift_code<C: AsRef<CheckPremiumGiftCode>>(
779    &self,
780    check_premium_gift_code: C,
781  ) -> RTDResult<PremiumGiftCodeInfo> {
782    async_caller!(PremiumGiftCodeInfo);
783    async_caller(&self.api, check_premium_gift_code.as_ref()).await
784  }
785
786  pub async fn check_quick_reply_shortcut_name<C: AsRef<CheckQuickReplyShortcutName>>(
787    &self,
788    check_quick_reply_shortcut_name: C,
789  ) -> RTDResult<Ok> {
790    async_caller!(Ok);
791    async_caller(&self.api, check_quick_reply_shortcut_name.as_ref()).await
792  }
793
794  pub async fn check_recovery_email_address_code<C: AsRef<CheckRecoveryEmailAddressCode>>(
795    &self,
796    check_recovery_email_address_code: C,
797  ) -> RTDResult<PasswordState> {
798    async_caller!(PasswordState);
799    async_caller(&self.api, check_recovery_email_address_code.as_ref()).await
800  }
801
802  pub async fn check_sticker_set_name<C: AsRef<CheckStickerSetName>>(
803    &self,
804    check_sticker_set_name: C,
805  ) -> RTDResult<CheckStickerSetNameResult> {
806    async_caller!(CheckStickerSetNameResult);
807    async_caller(&self.api, check_sticker_set_name.as_ref()).await
808  }
809
810  pub async fn check_wallet_bot_balance<C: AsRef<CheckWalletBotBalance>>(
811    &self,
812    check_wallet_bot_balance: C,
813  ) -> RTDResult<WalletBotBalance> {
814    async_caller!(WalletBotBalance);
815    async_caller(&self.api, check_wallet_bot_balance.as_ref()).await
816  }
817
818  pub async fn check_web_app_file_download<C: AsRef<CheckWebAppFileDownload>>(
819    &self,
820    check_web_app_file_download: C,
821  ) -> RTDResult<Ok> {
822    async_caller!(Ok);
823    async_caller(&self.api, check_web_app_file_download.as_ref()).await
824  }
825
826  pub async fn claim_ton_connect_request<C: AsRef<ClaimTonConnectRequest>>(
827    &self,
828    claim_ton_connect_request: C,
829  ) -> RTDResult<Ok> {
830    async_caller!(Ok);
831    async_caller(&self.api, claim_ton_connect_request.as_ref()).await
832  }
833
834  pub async fn clean_file_name<C: AsRef<CleanFileName>>(
835    &self,
836    clean_file_name: C,
837  ) -> RTDResult<Text> {
838    async_caller!(Text);
839    async_caller(&self.api, clean_file_name.as_ref()).await
840  }
841
842  pub async fn clear_all_draft_messages<C: AsRef<ClearAllDraftMessages>>(
843    &self,
844    clear_all_draft_messages: C,
845  ) -> RTDResult<Ok> {
846    async_caller!(Ok);
847    async_caller(&self.api, clear_all_draft_messages.as_ref()).await
848  }
849
850  pub async fn clear_autosave_settings_exceptions<C: AsRef<ClearAutosaveSettingsExceptions>>(
851    &self,
852    clear_autosave_settings_exceptions: C,
853  ) -> RTDResult<Ok> {
854    async_caller!(Ok);
855    async_caller(&self.api, clear_autosave_settings_exceptions.as_ref()).await
856  }
857
858  pub async fn clear_imported_contacts<C: AsRef<ClearImportedContacts>>(
859    &self,
860    clear_imported_contacts: C,
861  ) -> RTDResult<Ok> {
862    async_caller!(Ok);
863    async_caller(&self.api, clear_imported_contacts.as_ref()).await
864  }
865
866  pub async fn clear_recent_emoji_statuses<C: AsRef<ClearRecentEmojiStatuses>>(
867    &self,
868    clear_recent_emoji_statuses: C,
869  ) -> RTDResult<Ok> {
870    async_caller!(Ok);
871    async_caller(&self.api, clear_recent_emoji_statuses.as_ref()).await
872  }
873
874  pub async fn clear_recent_reactions<C: AsRef<ClearRecentReactions>>(
875    &self,
876    clear_recent_reactions: C,
877  ) -> RTDResult<Ok> {
878    async_caller!(Ok);
879    async_caller(&self.api, clear_recent_reactions.as_ref()).await
880  }
881
882  pub async fn clear_recent_stickers<C: AsRef<ClearRecentStickers>>(
883    &self,
884    clear_recent_stickers: C,
885  ) -> RTDResult<Ok> {
886    async_caller!(Ok);
887    async_caller(&self.api, clear_recent_stickers.as_ref()).await
888  }
889
890  pub async fn clear_recently_found_chats<C: AsRef<ClearRecentlyFoundChats>>(
891    &self,
892    clear_recently_found_chats: C,
893  ) -> RTDResult<Ok> {
894    async_caller!(Ok);
895    async_caller(&self.api, clear_recently_found_chats.as_ref()).await
896  }
897
898  pub async fn clear_searched_for_tags<C: AsRef<ClearSearchedForTags>>(
899    &self,
900    clear_searched_for_tags: C,
901  ) -> RTDResult<Ok> {
902    async_caller!(Ok);
903    async_caller(&self.api, clear_searched_for_tags.as_ref()).await
904  }
905
906  pub async fn click_animated_emoji_message<C: AsRef<ClickAnimatedEmojiMessage>>(
907    &self,
908    click_animated_emoji_message: C,
909  ) -> RTDResult<Sticker> {
910    async_caller!(Sticker);
911    async_caller(&self.api, click_animated_emoji_message.as_ref()).await
912  }
913
914  pub async fn click_chat_sponsored_message<C: AsRef<ClickChatSponsoredMessage>>(
915    &self,
916    click_chat_sponsored_message: C,
917  ) -> RTDResult<Ok> {
918    async_caller!(Ok);
919    async_caller(&self.api, click_chat_sponsored_message.as_ref()).await
920  }
921
922  pub async fn click_premium_subscription_button<C: AsRef<ClickPremiumSubscriptionButton>>(
923    &self,
924    click_premium_subscription_button: C,
925  ) -> RTDResult<Ok> {
926    async_caller!(Ok);
927    async_caller(&self.api, click_premium_subscription_button.as_ref()).await
928  }
929
930  pub async fn click_video_message_advertisement<C: AsRef<ClickVideoMessageAdvertisement>>(
931    &self,
932    click_video_message_advertisement: C,
933  ) -> RTDResult<Ok> {
934    async_caller!(Ok);
935    async_caller(&self.api, click_video_message_advertisement.as_ref()).await
936  }
937
938  pub async fn close<C: AsRef<Close>>(&self, close: C) -> RTDResult<Ok> {
939    async_caller!(Ok);
940    async_caller(&self.api, close.as_ref()).await
941  }
942
943  pub async fn close_chat<C: AsRef<CloseChat>>(&self, close_chat: C) -> RTDResult<Ok> {
944    async_caller!(Ok);
945    async_caller(&self.api, close_chat.as_ref()).await
946  }
947
948  pub async fn close_gift_auction<C: AsRef<CloseGiftAuction>>(
949    &self,
950    close_gift_auction: C,
951  ) -> RTDResult<Ok> {
952    async_caller!(Ok);
953    async_caller(&self.api, close_gift_auction.as_ref()).await
954  }
955
956  pub async fn close_secret_chat<C: AsRef<CloseSecretChat>>(
957    &self,
958    close_secret_chat: C,
959  ) -> RTDResult<Ok> {
960    async_caller!(Ok);
961    async_caller(&self.api, close_secret_chat.as_ref()).await
962  }
963
964  pub async fn close_story<C: AsRef<CloseStory>>(&self, close_story: C) -> RTDResult<Ok> {
965    async_caller!(Ok);
966    async_caller(&self.api, close_story.as_ref()).await
967  }
968
969  pub async fn close_web_app<C: AsRef<CloseWebApp>>(&self, close_web_app: C) -> RTDResult<Ok> {
970    async_caller!(Ok);
971    async_caller(&self.api, close_web_app.as_ref()).await
972  }
973
974  pub async fn commit_pending_live_story_reactions<C: AsRef<CommitPendingLiveStoryReactions>>(
975    &self,
976    commit_pending_live_story_reactions: C,
977  ) -> RTDResult<Ok> {
978    async_caller!(Ok);
979    async_caller(&self.api, commit_pending_live_story_reactions.as_ref()).await
980  }
981
982  pub async fn commit_pending_paid_message_reactions<
983    C: AsRef<CommitPendingPaidMessageReactions>,
984  >(
985    &self,
986    commit_pending_paid_message_reactions: C,
987  ) -> RTDResult<Ok> {
988    async_caller!(Ok);
989    async_caller(&self.api, commit_pending_paid_message_reactions.as_ref()).await
990  }
991
992  pub async fn compose_rich_message_with_ai<C: AsRef<ComposeRichMessageWithAi>>(
993    &self,
994    compose_rich_message_with_ai: C,
995  ) -> RTDResult<RichMessage> {
996    async_caller!(RichMessage);
997    async_caller(&self.api, compose_rich_message_with_ai.as_ref()).await
998  }
999
1000  pub async fn compose_text_with_ai<C: AsRef<ComposeTextWithAi>>(
1001    &self,
1002    compose_text_with_ai: C,
1003  ) -> RTDResult<FormattedText> {
1004    async_caller!(FormattedText);
1005    async_caller(&self.api, compose_text_with_ai.as_ref()).await
1006  }
1007
1008  pub async fn confirm_business_connected_bot<C: AsRef<ConfirmBusinessConnectedBot>>(
1009    &self,
1010    confirm_business_connected_bot: C,
1011  ) -> RTDResult<Ok> {
1012    async_caller!(Ok);
1013    async_caller(&self.api, confirm_business_connected_bot.as_ref()).await
1014  }
1015
1016  pub async fn confirm_qr_code_authentication<C: AsRef<ConfirmQrCodeAuthentication>>(
1017    &self,
1018    confirm_qr_code_authentication: C,
1019  ) -> RTDResult<Session> {
1020    async_caller!(Session);
1021    async_caller(&self.api, confirm_qr_code_authentication.as_ref()).await
1022  }
1023
1024  pub async fn confirm_session<C: AsRef<ConfirmSession>>(
1025    &self,
1026    confirm_session: C,
1027  ) -> RTDResult<Ok> {
1028    async_caller!(Ok);
1029    async_caller(&self.api, confirm_session.as_ref()).await
1030  }
1031
1032  pub async fn connect_affiliate_program<C: AsRef<ConnectAffiliateProgram>>(
1033    &self,
1034    connect_affiliate_program: C,
1035  ) -> RTDResult<ConnectedAffiliateProgram> {
1036    async_caller!(ConnectedAffiliateProgram);
1037    async_caller(&self.api, connect_affiliate_program.as_ref()).await
1038  }
1039
1040  pub async fn craft_gift<C: AsRef<CraftGift>>(&self, craft_gift: C) -> RTDResult<CraftGiftResult> {
1041    async_caller!(CraftGiftResult);
1042    async_caller(&self.api, craft_gift.as_ref()).await
1043  }
1044
1045  pub async fn create_basic_group_chat<C: AsRef<CreateBasicGroupChat>>(
1046    &self,
1047    create_basic_group_chat: C,
1048  ) -> RTDResult<Chat> {
1049    async_caller!(Chat);
1050    async_caller(&self.api, create_basic_group_chat.as_ref()).await
1051  }
1052
1053  pub async fn create_bot<C: AsRef<CreateBot>>(&self, create_bot: C) -> RTDResult<User> {
1054    async_caller!(User);
1055    async_caller(&self.api, create_bot.as_ref()).await
1056  }
1057
1058  pub async fn create_business_chat_link<C: AsRef<CreateBusinessChatLink>>(
1059    &self,
1060    create_business_chat_link: C,
1061  ) -> RTDResult<BusinessChatLink> {
1062    async_caller!(BusinessChatLink);
1063    async_caller(&self.api, create_business_chat_link.as_ref()).await
1064  }
1065
1066  pub async fn create_call<C: AsRef<CreateCall>>(&self, create_call: C) -> RTDResult<CallId> {
1067    async_caller!(CallId);
1068    async_caller(&self.api, create_call.as_ref()).await
1069  }
1070
1071  pub async fn create_chat_folder<C: AsRef<CreateChatFolder>>(
1072    &self,
1073    create_chat_folder: C,
1074  ) -> RTDResult<ChatFolderInfo> {
1075    async_caller!(ChatFolderInfo);
1076    async_caller(&self.api, create_chat_folder.as_ref()).await
1077  }
1078
1079  pub async fn create_chat_folder_invite_link<C: AsRef<CreateChatFolderInviteLink>>(
1080    &self,
1081    create_chat_folder_invite_link: C,
1082  ) -> RTDResult<ChatFolderInviteLink> {
1083    async_caller!(ChatFolderInviteLink);
1084    async_caller(&self.api, create_chat_folder_invite_link.as_ref()).await
1085  }
1086
1087  pub async fn create_chat_invite_link<C: AsRef<CreateChatInviteLink>>(
1088    &self,
1089    create_chat_invite_link: C,
1090  ) -> RTDResult<ChatInviteLink> {
1091    async_caller!(ChatInviteLink);
1092    async_caller(&self.api, create_chat_invite_link.as_ref()).await
1093  }
1094
1095  pub async fn create_chat_subscription_invite_link<C: AsRef<CreateChatSubscriptionInviteLink>>(
1096    &self,
1097    create_chat_subscription_invite_link: C,
1098  ) -> RTDResult<ChatInviteLink> {
1099    async_caller!(ChatInviteLink);
1100    async_caller(&self.api, create_chat_subscription_invite_link.as_ref()).await
1101  }
1102
1103  pub async fn create_community<C: AsRef<CreateCommunity>>(
1104    &self,
1105    create_community: C,
1106  ) -> RTDResult<CommunityId> {
1107    async_caller!(CommunityId);
1108    async_caller(&self.api, create_community.as_ref()).await
1109  }
1110
1111  pub async fn create_forum_topic<C: AsRef<CreateForumTopic>>(
1112    &self,
1113    create_forum_topic: C,
1114  ) -> RTDResult<ForumTopicInfo> {
1115    async_caller!(ForumTopicInfo);
1116    async_caller(&self.api, create_forum_topic.as_ref()).await
1117  }
1118
1119  pub async fn create_gift_collection<C: AsRef<CreateGiftCollection>>(
1120    &self,
1121    create_gift_collection: C,
1122  ) -> RTDResult<GiftCollection> {
1123    async_caller!(GiftCollection);
1124    async_caller(&self.api, create_gift_collection.as_ref()).await
1125  }
1126
1127  pub async fn create_group_call<C: AsRef<CreateGroupCall>>(
1128    &self,
1129    create_group_call: C,
1130  ) -> RTDResult<GroupCallInfo> {
1131    async_caller!(GroupCallInfo);
1132    async_caller(&self.api, create_group_call.as_ref()).await
1133  }
1134
1135  pub async fn create_invoice_link<C: AsRef<CreateInvoiceLink>>(
1136    &self,
1137    create_invoice_link: C,
1138  ) -> RTDResult<HttpUrl> {
1139    async_caller!(HttpUrl);
1140    async_caller(&self.api, create_invoice_link.as_ref()).await
1141  }
1142
1143  pub async fn create_new_basic_group_chat<C: AsRef<CreateNewBasicGroupChat>>(
1144    &self,
1145    create_new_basic_group_chat: C,
1146  ) -> RTDResult<CreatedBasicGroupChat> {
1147    async_caller!(CreatedBasicGroupChat);
1148    async_caller(&self.api, create_new_basic_group_chat.as_ref()).await
1149  }
1150
1151  pub async fn create_new_secret_chat<C: AsRef<CreateNewSecretChat>>(
1152    &self,
1153    create_new_secret_chat: C,
1154  ) -> RTDResult<Chat> {
1155    async_caller!(Chat);
1156    async_caller(&self.api, create_new_secret_chat.as_ref()).await
1157  }
1158
1159  pub async fn create_new_sticker_set<C: AsRef<CreateNewStickerSet>>(
1160    &self,
1161    create_new_sticker_set: C,
1162  ) -> RTDResult<StickerSet> {
1163    async_caller!(StickerSet);
1164    async_caller(&self.api, create_new_sticker_set.as_ref()).await
1165  }
1166
1167  pub async fn create_new_supergroup_chat<C: AsRef<CreateNewSupergroupChat>>(
1168    &self,
1169    create_new_supergroup_chat: C,
1170  ) -> RTDResult<Chat> {
1171    async_caller!(Chat);
1172    async_caller(&self.api, create_new_supergroup_chat.as_ref()).await
1173  }
1174
1175  pub async fn create_on_ramp_payment_session<C: AsRef<CreateOnRampPaymentSession>>(
1176    &self,
1177    create_on_ramp_payment_session: C,
1178  ) -> RTDResult<OnRampPaymentSession> {
1179    async_caller!(OnRampPaymentSession);
1180    async_caller(&self.api, create_on_ramp_payment_session.as_ref()).await
1181  }
1182
1183  pub async fn create_private_chat<C: AsRef<CreatePrivateChat>>(
1184    &self,
1185    create_private_chat: C,
1186  ) -> RTDResult<Chat> {
1187    async_caller!(Chat);
1188    async_caller(&self.api, create_private_chat.as_ref()).await
1189  }
1190
1191  pub async fn create_rich_message_with_ai<C: AsRef<CreateRichMessageWithAi>>(
1192    &self,
1193    create_rich_message_with_ai: C,
1194  ) -> RTDResult<RichMessage> {
1195    async_caller!(RichMessage);
1196    async_caller(&self.api, create_rich_message_with_ai.as_ref()).await
1197  }
1198
1199  pub async fn create_secret_chat<C: AsRef<CreateSecretChat>>(
1200    &self,
1201    create_secret_chat: C,
1202  ) -> RTDResult<Chat> {
1203    async_caller!(Chat);
1204    async_caller(&self.api, create_secret_chat.as_ref()).await
1205  }
1206
1207  pub async fn create_story_album<C: AsRef<CreateStoryAlbum>>(
1208    &self,
1209    create_story_album: C,
1210  ) -> RTDResult<StoryAlbum> {
1211    async_caller!(StoryAlbum);
1212    async_caller(&self.api, create_story_album.as_ref()).await
1213  }
1214
1215  pub async fn create_supergroup_chat<C: AsRef<CreateSupergroupChat>>(
1216    &self,
1217    create_supergroup_chat: C,
1218  ) -> RTDResult<Chat> {
1219    async_caller!(Chat);
1220    async_caller(&self.api, create_supergroup_chat.as_ref()).await
1221  }
1222
1223  pub async fn create_temporary_password<C: AsRef<CreateTemporaryPassword>>(
1224    &self,
1225    create_temporary_password: C,
1226  ) -> RTDResult<TemporaryPasswordState> {
1227    async_caller!(TemporaryPasswordState);
1228    async_caller(&self.api, create_temporary_password.as_ref()).await
1229  }
1230
1231  pub async fn create_text_composition_style<C: AsRef<CreateTextCompositionStyle>>(
1232    &self,
1233    create_text_composition_style: C,
1234  ) -> RTDResult<TextCompositionStyle> {
1235    async_caller!(TextCompositionStyle);
1236    async_caller(&self.api, create_text_composition_style.as_ref()).await
1237  }
1238
1239  pub async fn create_ton_connect_session<C: AsRef<CreateTonConnectSession>>(
1240    &self,
1241    create_ton_connect_session: C,
1242  ) -> RTDResult<TonConnectSession> {
1243    async_caller!(TonConnectSession);
1244    async_caller(&self.api, create_ton_connect_session.as_ref()).await
1245  }
1246
1247  pub async fn create_user_ton_wallet<C: AsRef<CreateUserTonWallet>>(
1248    &self,
1249    create_user_ton_wallet: C,
1250  ) -> RTDResult<UserTonWalletAddress> {
1251    async_caller!(UserTonWalletAddress);
1252    async_caller(&self.api, create_user_ton_wallet.as_ref()).await
1253  }
1254
1255  pub async fn create_video_chat<C: AsRef<CreateVideoChat>>(
1256    &self,
1257    create_video_chat: C,
1258  ) -> RTDResult<GroupCallId> {
1259    async_caller!(GroupCallId);
1260    async_caller(&self.api, create_video_chat.as_ref()).await
1261  }
1262
1263  pub async fn decline_group_call_invitation<C: AsRef<DeclineGroupCallInvitation>>(
1264    &self,
1265    decline_group_call_invitation: C,
1266  ) -> RTDResult<Ok> {
1267    async_caller!(Ok);
1268    async_caller(&self.api, decline_group_call_invitation.as_ref()).await
1269  }
1270
1271  pub async fn decline_oauth_request<C: AsRef<DeclineOauthRequest>>(
1272    &self,
1273    decline_oauth_request: C,
1274  ) -> RTDResult<Ok> {
1275    async_caller!(Ok);
1276    async_caller(&self.api, decline_oauth_request.as_ref()).await
1277  }
1278
1279  pub async fn decline_suggested_post<C: AsRef<DeclineSuggestedPost>>(
1280    &self,
1281    decline_suggested_post: C,
1282  ) -> RTDResult<Ok> {
1283    async_caller!(Ok);
1284    async_caller(&self.api, decline_suggested_post.as_ref()).await
1285  }
1286
1287  pub async fn decrypt_group_call_data<C: AsRef<DecryptGroupCallData>>(
1288    &self,
1289    decrypt_group_call_data: C,
1290  ) -> RTDResult<Data> {
1291    async_caller!(Data);
1292    async_caller(&self.api, decrypt_group_call_data.as_ref()).await
1293  }
1294
1295  pub async fn delete_account<C: AsRef<DeleteAccount>>(&self, delete_account: C) -> RTDResult<Ok> {
1296    async_caller!(Ok);
1297    async_caller(&self.api, delete_account.as_ref()).await
1298  }
1299
1300  pub async fn delete_all_call_messages<C: AsRef<DeleteAllCallMessages>>(
1301    &self,
1302    delete_all_call_messages: C,
1303  ) -> RTDResult<Ok> {
1304    async_caller!(Ok);
1305    async_caller(&self.api, delete_all_call_messages.as_ref()).await
1306  }
1307
1308  pub async fn delete_all_chat_welcome_messages<C: AsRef<DeleteAllChatWelcomeMessages>>(
1309    &self,
1310    delete_all_chat_welcome_messages: C,
1311  ) -> RTDResult<Ok> {
1312    async_caller!(Ok);
1313    async_caller(&self.api, delete_all_chat_welcome_messages.as_ref()).await
1314  }
1315
1316  pub async fn delete_all_recent_message_reactions_from_sender<
1317    C: AsRef<DeleteAllRecentMessageReactionsFromSender>,
1318  >(
1319    &self,
1320    delete_all_recent_message_reactions_from_sender: C,
1321  ) -> RTDResult<Ok> {
1322    async_caller!(Ok);
1323    async_caller(
1324      &self.api,
1325      delete_all_recent_message_reactions_from_sender.as_ref(),
1326    )
1327    .await
1328  }
1329
1330  pub async fn delete_all_revoked_chat_invite_links<C: AsRef<DeleteAllRevokedChatInviteLinks>>(
1331    &self,
1332    delete_all_revoked_chat_invite_links: C,
1333  ) -> RTDResult<Ok> {
1334    async_caller!(Ok);
1335    async_caller(&self.api, delete_all_revoked_chat_invite_links.as_ref()).await
1336  }
1337
1338  pub async fn delete_bot_media_previews<C: AsRef<DeleteBotMediaPreviews>>(
1339    &self,
1340    delete_bot_media_previews: C,
1341  ) -> RTDResult<Ok> {
1342    async_caller!(Ok);
1343    async_caller(&self.api, delete_bot_media_previews.as_ref()).await
1344  }
1345
1346  pub async fn delete_bot_secondary_username<C: AsRef<DeleteBotSecondaryUsername>>(
1347    &self,
1348    delete_bot_secondary_username: C,
1349  ) -> RTDResult<Ok> {
1350    async_caller!(Ok);
1351    async_caller(&self.api, delete_bot_secondary_username.as_ref()).await
1352  }
1353
1354  pub async fn delete_business_chat_link<C: AsRef<DeleteBusinessChatLink>>(
1355    &self,
1356    delete_business_chat_link: C,
1357  ) -> RTDResult<Ok> {
1358    async_caller!(Ok);
1359    async_caller(&self.api, delete_business_chat_link.as_ref()).await
1360  }
1361
1362  pub async fn delete_business_connected_bot<C: AsRef<DeleteBusinessConnectedBot>>(
1363    &self,
1364    delete_business_connected_bot: C,
1365  ) -> RTDResult<Ok> {
1366    async_caller!(Ok);
1367    async_caller(&self.api, delete_business_connected_bot.as_ref()).await
1368  }
1369
1370  pub async fn delete_business_messages<C: AsRef<DeleteBusinessMessages>>(
1371    &self,
1372    delete_business_messages: C,
1373  ) -> RTDResult<Ok> {
1374    async_caller!(Ok);
1375    async_caller(&self.api, delete_business_messages.as_ref()).await
1376  }
1377
1378  pub async fn delete_business_story<C: AsRef<DeleteBusinessStory>>(
1379    &self,
1380    delete_business_story: C,
1381  ) -> RTDResult<Ok> {
1382    async_caller!(Ok);
1383    async_caller(&self.api, delete_business_story.as_ref()).await
1384  }
1385
1386  pub async fn delete_chat<C: AsRef<DeleteChat>>(&self, delete_chat: C) -> RTDResult<Ok> {
1387    async_caller!(Ok);
1388    async_caller(&self.api, delete_chat.as_ref()).await
1389  }
1390
1391  pub async fn delete_chat_background<C: AsRef<DeleteChatBackground>>(
1392    &self,
1393    delete_chat_background: C,
1394  ) -> RTDResult<Ok> {
1395    async_caller!(Ok);
1396    async_caller(&self.api, delete_chat_background.as_ref()).await
1397  }
1398
1399  pub async fn delete_chat_folder<C: AsRef<DeleteChatFolder>>(
1400    &self,
1401    delete_chat_folder: C,
1402  ) -> RTDResult<Ok> {
1403    async_caller!(Ok);
1404    async_caller(&self.api, delete_chat_folder.as_ref()).await
1405  }
1406
1407  pub async fn delete_chat_folder_invite_link<C: AsRef<DeleteChatFolderInviteLink>>(
1408    &self,
1409    delete_chat_folder_invite_link: C,
1410  ) -> RTDResult<Ok> {
1411    async_caller!(Ok);
1412    async_caller(&self.api, delete_chat_folder_invite_link.as_ref()).await
1413  }
1414
1415  pub async fn delete_chat_history<C: AsRef<DeleteChatHistory>>(
1416    &self,
1417    delete_chat_history: C,
1418  ) -> RTDResult<Ok> {
1419    async_caller!(Ok);
1420    async_caller(&self.api, delete_chat_history.as_ref()).await
1421  }
1422
1423  pub async fn delete_chat_messages_by_date<C: AsRef<DeleteChatMessagesByDate>>(
1424    &self,
1425    delete_chat_messages_by_date: C,
1426  ) -> RTDResult<Ok> {
1427    async_caller!(Ok);
1428    async_caller(&self.api, delete_chat_messages_by_date.as_ref()).await
1429  }
1430
1431  pub async fn delete_chat_messages_by_sender<C: AsRef<DeleteChatMessagesBySender>>(
1432    &self,
1433    delete_chat_messages_by_sender: C,
1434  ) -> RTDResult<Ok> {
1435    async_caller!(Ok);
1436    async_caller(&self.api, delete_chat_messages_by_sender.as_ref()).await
1437  }
1438
1439  pub async fn delete_chat_reply_markup<C: AsRef<DeleteChatReplyMarkup>>(
1440    &self,
1441    delete_chat_reply_markup: C,
1442  ) -> RTDResult<Ok> {
1443    async_caller!(Ok);
1444    async_caller(&self.api, delete_chat_reply_markup.as_ref()).await
1445  }
1446
1447  pub async fn delete_chat_welcome_message<C: AsRef<DeleteChatWelcomeMessage>>(
1448    &self,
1449    delete_chat_welcome_message: C,
1450  ) -> RTDResult<Ok> {
1451    async_caller!(Ok);
1452    async_caller(&self.api, delete_chat_welcome_message.as_ref()).await
1453  }
1454
1455  pub async fn delete_commands<C: AsRef<DeleteCommands>>(
1456    &self,
1457    delete_commands: C,
1458  ) -> RTDResult<Ok> {
1459    async_caller!(Ok);
1460    async_caller(&self.api, delete_commands.as_ref()).await
1461  }
1462
1463  pub async fn delete_community<C: AsRef<DeleteCommunity>>(
1464    &self,
1465    delete_community: C,
1466  ) -> RTDResult<Ok> {
1467    async_caller!(Ok);
1468    async_caller(&self.api, delete_community.as_ref()).await
1469  }
1470
1471  pub async fn delete_default_background<C: AsRef<DeleteDefaultBackground>>(
1472    &self,
1473    delete_default_background: C,
1474  ) -> RTDResult<Ok> {
1475    async_caller!(Ok);
1476    async_caller(&self.api, delete_default_background.as_ref()).await
1477  }
1478
1479  pub async fn delete_direct_messages_chat_topic_history<
1480    C: AsRef<DeleteDirectMessagesChatTopicHistory>,
1481  >(
1482    &self,
1483    delete_direct_messages_chat_topic_history: C,
1484  ) -> RTDResult<Ok> {
1485    async_caller!(Ok);
1486    async_caller(
1487      &self.api,
1488      delete_direct_messages_chat_topic_history.as_ref(),
1489    )
1490    .await
1491  }
1492
1493  pub async fn delete_direct_messages_chat_topic_messages_by_date<
1494    C: AsRef<DeleteDirectMessagesChatTopicMessagesByDate>,
1495  >(
1496    &self,
1497    delete_direct_messages_chat_topic_messages_by_date: C,
1498  ) -> RTDResult<Ok> {
1499    async_caller!(Ok);
1500    async_caller(
1501      &self.api,
1502      delete_direct_messages_chat_topic_messages_by_date.as_ref(),
1503    )
1504    .await
1505  }
1506
1507  pub async fn delete_ephemeral_message<C: AsRef<DeleteEphemeralMessage>>(
1508    &self,
1509    delete_ephemeral_message: C,
1510  ) -> RTDResult<Ok> {
1511    async_caller!(Ok);
1512    async_caller(&self.api, delete_ephemeral_message.as_ref()).await
1513  }
1514
1515  pub async fn delete_file<C: AsRef<DeleteFile>>(&self, delete_file: C) -> RTDResult<Ok> {
1516    async_caller!(Ok);
1517    async_caller(&self.api, delete_file.as_ref()).await
1518  }
1519
1520  pub async fn delete_forum_topic<C: AsRef<DeleteForumTopic>>(
1521    &self,
1522    delete_forum_topic: C,
1523  ) -> RTDResult<Ok> {
1524    async_caller!(Ok);
1525    async_caller(&self.api, delete_forum_topic.as_ref()).await
1526  }
1527
1528  pub async fn delete_gift<C: AsRef<DeleteGift>>(&self, delete_gift: C) -> RTDResult<Ok> {
1529    async_caller!(Ok);
1530    async_caller(&self.api, delete_gift.as_ref()).await
1531  }
1532
1533  pub async fn delete_gift_collection<C: AsRef<DeleteGiftCollection>>(
1534    &self,
1535    delete_gift_collection: C,
1536  ) -> RTDResult<Ok> {
1537    async_caller!(Ok);
1538    async_caller(&self.api, delete_gift_collection.as_ref()).await
1539  }
1540
1541  pub async fn delete_group_call_messages<C: AsRef<DeleteGroupCallMessages>>(
1542    &self,
1543    delete_group_call_messages: C,
1544  ) -> RTDResult<Ok> {
1545    async_caller!(Ok);
1546    async_caller(&self.api, delete_group_call_messages.as_ref()).await
1547  }
1548
1549  pub async fn delete_group_call_messages_by_sender<C: AsRef<DeleteGroupCallMessagesBySender>>(
1550    &self,
1551    delete_group_call_messages_by_sender: C,
1552  ) -> RTDResult<Ok> {
1553    async_caller!(Ok);
1554    async_caller(&self.api, delete_group_call_messages_by_sender.as_ref()).await
1555  }
1556
1557  pub async fn delete_language_pack<C: AsRef<DeleteLanguagePack>>(
1558    &self,
1559    delete_language_pack: C,
1560  ) -> RTDResult<Ok> {
1561    async_caller!(Ok);
1562    async_caller(&self.api, delete_language_pack.as_ref()).await
1563  }
1564
1565  pub async fn delete_message_ephemeral_content<C: AsRef<DeleteMessageEphemeralContent>>(
1566    &self,
1567    delete_message_ephemeral_content: C,
1568  ) -> RTDResult<Ok> {
1569    async_caller!(Ok);
1570    async_caller(&self.api, delete_message_ephemeral_content.as_ref()).await
1571  }
1572
1573  pub async fn delete_message_reactions_from_sender<C: AsRef<DeleteMessageReactionsFromSender>>(
1574    &self,
1575    delete_message_reactions_from_sender: C,
1576  ) -> RTDResult<Ok> {
1577    async_caller!(Ok);
1578    async_caller(&self.api, delete_message_reactions_from_sender.as_ref()).await
1579  }
1580
1581  pub async fn delete_messages<C: AsRef<DeleteMessages>>(
1582    &self,
1583    delete_messages: C,
1584  ) -> RTDResult<Ok> {
1585    async_caller!(Ok);
1586    async_caller(&self.api, delete_messages.as_ref()).await
1587  }
1588
1589  pub async fn delete_passport_element<C: AsRef<DeletePassportElement>>(
1590    &self,
1591    delete_passport_element: C,
1592  ) -> RTDResult<Ok> {
1593    async_caller!(Ok);
1594    async_caller(&self.api, delete_passport_element.as_ref()).await
1595  }
1596
1597  pub async fn delete_poll_option<C: AsRef<DeletePollOption>>(
1598    &self,
1599    delete_poll_option: C,
1600  ) -> RTDResult<Ok> {
1601    async_caller!(Ok);
1602    async_caller(&self.api, delete_poll_option.as_ref()).await
1603  }
1604
1605  pub async fn delete_profile_photo<C: AsRef<DeleteProfilePhoto>>(
1606    &self,
1607    delete_profile_photo: C,
1608  ) -> RTDResult<Ok> {
1609    async_caller!(Ok);
1610    async_caller(&self.api, delete_profile_photo.as_ref()).await
1611  }
1612
1613  pub async fn delete_quick_reply_shortcut<C: AsRef<DeleteQuickReplyShortcut>>(
1614    &self,
1615    delete_quick_reply_shortcut: C,
1616  ) -> RTDResult<Ok> {
1617    async_caller!(Ok);
1618    async_caller(&self.api, delete_quick_reply_shortcut.as_ref()).await
1619  }
1620
1621  pub async fn delete_quick_reply_shortcut_messages<C: AsRef<DeleteQuickReplyShortcutMessages>>(
1622    &self,
1623    delete_quick_reply_shortcut_messages: C,
1624  ) -> RTDResult<Ok> {
1625    async_caller!(Ok);
1626    async_caller(&self.api, delete_quick_reply_shortcut_messages.as_ref()).await
1627  }
1628
1629  pub async fn delete_revoked_chat_invite_link<C: AsRef<DeleteRevokedChatInviteLink>>(
1630    &self,
1631    delete_revoked_chat_invite_link: C,
1632  ) -> RTDResult<Ok> {
1633    async_caller!(Ok);
1634    async_caller(&self.api, delete_revoked_chat_invite_link.as_ref()).await
1635  }
1636
1637  pub async fn delete_saved_credentials<C: AsRef<DeleteSavedCredentials>>(
1638    &self,
1639    delete_saved_credentials: C,
1640  ) -> RTDResult<Ok> {
1641    async_caller!(Ok);
1642    async_caller(&self.api, delete_saved_credentials.as_ref()).await
1643  }
1644
1645  pub async fn delete_saved_messages_topic_history<C: AsRef<DeleteSavedMessagesTopicHistory>>(
1646    &self,
1647    delete_saved_messages_topic_history: C,
1648  ) -> RTDResult<Ok> {
1649    async_caller!(Ok);
1650    async_caller(&self.api, delete_saved_messages_topic_history.as_ref()).await
1651  }
1652
1653  pub async fn delete_saved_messages_topic_messages_by_date<
1654    C: AsRef<DeleteSavedMessagesTopicMessagesByDate>,
1655  >(
1656    &self,
1657    delete_saved_messages_topic_messages_by_date: C,
1658  ) -> RTDResult<Ok> {
1659    async_caller!(Ok);
1660    async_caller(
1661      &self.api,
1662      delete_saved_messages_topic_messages_by_date.as_ref(),
1663    )
1664    .await
1665  }
1666
1667  pub async fn delete_saved_order_info<C: AsRef<DeleteSavedOrderInfo>>(
1668    &self,
1669    delete_saved_order_info: C,
1670  ) -> RTDResult<Ok> {
1671    async_caller!(Ok);
1672    async_caller(&self.api, delete_saved_order_info.as_ref()).await
1673  }
1674
1675  pub async fn delete_sticker_set<C: AsRef<DeleteStickerSet>>(
1676    &self,
1677    delete_sticker_set: C,
1678  ) -> RTDResult<Ok> {
1679    async_caller!(Ok);
1680    async_caller(&self.api, delete_sticker_set.as_ref()).await
1681  }
1682
1683  pub async fn delete_story<C: AsRef<DeleteStory>>(&self, delete_story: C) -> RTDResult<Ok> {
1684    async_caller!(Ok);
1685    async_caller(&self.api, delete_story.as_ref()).await
1686  }
1687
1688  pub async fn delete_story_album<C: AsRef<DeleteStoryAlbum>>(
1689    &self,
1690    delete_story_album: C,
1691  ) -> RTDResult<Ok> {
1692    async_caller!(Ok);
1693    async_caller(&self.api, delete_story_album.as_ref()).await
1694  }
1695
1696  pub async fn delete_text_composition_style<C: AsRef<DeleteTextCompositionStyle>>(
1697    &self,
1698    delete_text_composition_style: C,
1699  ) -> RTDResult<Ok> {
1700    async_caller!(Ok);
1701    async_caller(&self.api, delete_text_composition_style.as_ref()).await
1702  }
1703
1704  pub async fn delete_ton_wallet<C: AsRef<DeleteTonWallet>>(
1705    &self,
1706    delete_ton_wallet: C,
1707  ) -> RTDResult<Ok> {
1708    async_caller!(Ok);
1709    async_caller(&self.api, delete_ton_wallet.as_ref()).await
1710  }
1711
1712  pub async fn destroy<C: AsRef<Destroy>>(&self, destroy: C) -> RTDResult<Ok> {
1713    async_caller!(Ok);
1714    async_caller(&self.api, destroy.as_ref()).await
1715  }
1716
1717  pub async fn disable_all_supergroup_usernames<C: AsRef<DisableAllSupergroupUsernames>>(
1718    &self,
1719    disable_all_supergroup_usernames: C,
1720  ) -> RTDResult<Ok> {
1721    async_caller!(Ok);
1722    async_caller(&self.api, disable_all_supergroup_usernames.as_ref()).await
1723  }
1724
1725  pub async fn disable_proxy<C: AsRef<DisableProxy>>(&self, disable_proxy: C) -> RTDResult<Ok> {
1726    async_caller!(Ok);
1727    async_caller(&self.api, disable_proxy.as_ref()).await
1728  }
1729
1730  pub async fn disable_ton_wallet_backup<C: AsRef<DisableTonWalletBackup>>(
1731    &self,
1732    disable_ton_wallet_backup: C,
1733  ) -> RTDResult<Ok> {
1734    async_caller!(Ok);
1735    async_caller(&self.api, disable_ton_wallet_backup.as_ref()).await
1736  }
1737
1738  pub async fn disable_ton_wallet_backup_with_proof<C: AsRef<DisableTonWalletBackupWithProof>>(
1739    &self,
1740    disable_ton_wallet_backup_with_proof: C,
1741  ) -> RTDResult<Ok> {
1742    async_caller!(Ok);
1743    async_caller(&self.api, disable_ton_wallet_backup_with_proof.as_ref()).await
1744  }
1745
1746  pub async fn discard_call<C: AsRef<DiscardCall>>(&self, discard_call: C) -> RTDResult<Ok> {
1747    async_caller!(Ok);
1748    async_caller(&self.api, discard_call.as_ref()).await
1749  }
1750
1751  pub async fn disconnect_affiliate_program<C: AsRef<DisconnectAffiliateProgram>>(
1752    &self,
1753    disconnect_affiliate_program: C,
1754  ) -> RTDResult<ConnectedAffiliateProgram> {
1755    async_caller!(ConnectedAffiliateProgram);
1756    async_caller(&self.api, disconnect_affiliate_program.as_ref()).await
1757  }
1758
1759  pub async fn disconnect_all_websites<C: AsRef<DisconnectAllWebsites>>(
1760    &self,
1761    disconnect_all_websites: C,
1762  ) -> RTDResult<Ok> {
1763    async_caller!(Ok);
1764    async_caller(&self.api, disconnect_all_websites.as_ref()).await
1765  }
1766
1767  pub async fn disconnect_ton_connect_session<C: AsRef<DisconnectTonConnectSession>>(
1768    &self,
1769    disconnect_ton_connect_session: C,
1770  ) -> RTDResult<Ok> {
1771    async_caller!(Ok);
1772    async_caller(&self.api, disconnect_ton_connect_session.as_ref()).await
1773  }
1774
1775  pub async fn disconnect_website<C: AsRef<DisconnectWebsite>>(
1776    &self,
1777    disconnect_website: C,
1778  ) -> RTDResult<Ok> {
1779    async_caller!(Ok);
1780    async_caller(&self.api, disconnect_website.as_ref()).await
1781  }
1782
1783  pub async fn dismiss_web_token<C: AsRef<DismissWebToken>>(
1784    &self,
1785    dismiss_web_token: C,
1786  ) -> RTDResult<Ok> {
1787    async_caller!(Ok);
1788    async_caller(&self.api, dismiss_web_token.as_ref()).await
1789  }
1790
1791  pub async fn display_upgraded_gift<C: AsRef<DisplayUpgradedGift>>(
1792    &self,
1793    display_upgraded_gift: C,
1794  ) -> RTDResult<Ok> {
1795    async_caller!(Ok);
1796    async_caller(&self.api, display_upgraded_gift.as_ref()).await
1797  }
1798
1799  pub async fn download_file<C: AsRef<DownloadFile>>(&self, download_file: C) -> RTDResult<File> {
1800    async_caller!(File);
1801    async_caller(&self.api, download_file.as_ref()).await
1802  }
1803
1804  pub async fn drop_gift_original_details<C: AsRef<DropGiftOriginalDetails>>(
1805    &self,
1806    drop_gift_original_details: C,
1807  ) -> RTDResult<Ok> {
1808    async_caller!(Ok);
1809    async_caller(&self.api, drop_gift_original_details.as_ref()).await
1810  }
1811
1812  pub async fn edit_bot_media_preview<C: AsRef<EditBotMediaPreview>>(
1813    &self,
1814    edit_bot_media_preview: C,
1815  ) -> RTDResult<BotMediaPreview> {
1816    async_caller!(BotMediaPreview);
1817    async_caller(&self.api, edit_bot_media_preview.as_ref()).await
1818  }
1819
1820  pub async fn edit_business_chat_link<C: AsRef<EditBusinessChatLink>>(
1821    &self,
1822    edit_business_chat_link: C,
1823  ) -> RTDResult<BusinessChatLink> {
1824    async_caller!(BusinessChatLink);
1825    async_caller(&self.api, edit_business_chat_link.as_ref()).await
1826  }
1827
1828  pub async fn edit_business_message_caption<C: AsRef<EditBusinessMessageCaption>>(
1829    &self,
1830    edit_business_message_caption: C,
1831  ) -> RTDResult<BusinessMessage> {
1832    async_caller!(BusinessMessage);
1833    async_caller(&self.api, edit_business_message_caption.as_ref()).await
1834  }
1835
1836  pub async fn edit_business_message_checklist<C: AsRef<EditBusinessMessageChecklist>>(
1837    &self,
1838    edit_business_message_checklist: C,
1839  ) -> RTDResult<BusinessMessage> {
1840    async_caller!(BusinessMessage);
1841    async_caller(&self.api, edit_business_message_checklist.as_ref()).await
1842  }
1843
1844  pub async fn edit_business_message_live_location<C: AsRef<EditBusinessMessageLiveLocation>>(
1845    &self,
1846    edit_business_message_live_location: C,
1847  ) -> RTDResult<BusinessMessage> {
1848    async_caller!(BusinessMessage);
1849    async_caller(&self.api, edit_business_message_live_location.as_ref()).await
1850  }
1851
1852  pub async fn edit_business_message_media<C: AsRef<EditBusinessMessageMedia>>(
1853    &self,
1854    edit_business_message_media: C,
1855  ) -> RTDResult<BusinessMessage> {
1856    async_caller!(BusinessMessage);
1857    async_caller(&self.api, edit_business_message_media.as_ref()).await
1858  }
1859
1860  pub async fn edit_business_message_reply_markup<C: AsRef<EditBusinessMessageReplyMarkup>>(
1861    &self,
1862    edit_business_message_reply_markup: C,
1863  ) -> RTDResult<BusinessMessage> {
1864    async_caller!(BusinessMessage);
1865    async_caller(&self.api, edit_business_message_reply_markup.as_ref()).await
1866  }
1867
1868  pub async fn edit_business_message_text<C: AsRef<EditBusinessMessageText>>(
1869    &self,
1870    edit_business_message_text: C,
1871  ) -> RTDResult<BusinessMessage> {
1872    async_caller!(BusinessMessage);
1873    async_caller(&self.api, edit_business_message_text.as_ref()).await
1874  }
1875
1876  pub async fn edit_business_story<C: AsRef<EditBusinessStory>>(
1877    &self,
1878    edit_business_story: C,
1879  ) -> RTDResult<Story> {
1880    async_caller!(Story);
1881    async_caller(&self.api, edit_business_story.as_ref()).await
1882  }
1883
1884  pub async fn edit_chat_folder<C: AsRef<EditChatFolder>>(
1885    &self,
1886    edit_chat_folder: C,
1887  ) -> RTDResult<ChatFolderInfo> {
1888    async_caller!(ChatFolderInfo);
1889    async_caller(&self.api, edit_chat_folder.as_ref()).await
1890  }
1891
1892  pub async fn edit_chat_folder_invite_link<C: AsRef<EditChatFolderInviteLink>>(
1893    &self,
1894    edit_chat_folder_invite_link: C,
1895  ) -> RTDResult<ChatFolderInviteLink> {
1896    async_caller!(ChatFolderInviteLink);
1897    async_caller(&self.api, edit_chat_folder_invite_link.as_ref()).await
1898  }
1899
1900  pub async fn edit_chat_invite_link<C: AsRef<EditChatInviteLink>>(
1901    &self,
1902    edit_chat_invite_link: C,
1903  ) -> RTDResult<ChatInviteLink> {
1904    async_caller!(ChatInviteLink);
1905    async_caller(&self.api, edit_chat_invite_link.as_ref()).await
1906  }
1907
1908  pub async fn edit_chat_subscription_invite_link<C: AsRef<EditChatSubscriptionInviteLink>>(
1909    &self,
1910    edit_chat_subscription_invite_link: C,
1911  ) -> RTDResult<ChatInviteLink> {
1912    async_caller!(ChatInviteLink);
1913    async_caller(&self.api, edit_chat_subscription_invite_link.as_ref()).await
1914  }
1915
1916  pub async fn edit_chat_welcome_message<C: AsRef<EditChatWelcomeMessage>>(
1917    &self,
1918    edit_chat_welcome_message: C,
1919  ) -> RTDResult<Ok> {
1920    async_caller!(Ok);
1921    async_caller(&self.api, edit_chat_welcome_message.as_ref()).await
1922  }
1923
1924  pub async fn edit_custom_language_pack_info<C: AsRef<EditCustomLanguagePackInfo>>(
1925    &self,
1926    edit_custom_language_pack_info: C,
1927  ) -> RTDResult<Ok> {
1928    async_caller!(Ok);
1929    async_caller(&self.api, edit_custom_language_pack_info.as_ref()).await
1930  }
1931
1932  pub async fn edit_ephemeral_message<C: AsRef<EditEphemeralMessage>>(
1933    &self,
1934    edit_ephemeral_message: C,
1935  ) -> RTDResult<Ok> {
1936    async_caller!(Ok);
1937    async_caller(&self.api, edit_ephemeral_message.as_ref()).await
1938  }
1939
1940  pub async fn edit_ephemeral_message_caption<C: AsRef<EditEphemeralMessageCaption>>(
1941    &self,
1942    edit_ephemeral_message_caption: C,
1943  ) -> RTDResult<Ok> {
1944    async_caller!(Ok);
1945    async_caller(&self.api, edit_ephemeral_message_caption.as_ref()).await
1946  }
1947
1948  pub async fn edit_forum_topic<C: AsRef<EditForumTopic>>(
1949    &self,
1950    edit_forum_topic: C,
1951  ) -> RTDResult<Ok> {
1952    async_caller!(Ok);
1953    async_caller(&self.api, edit_forum_topic.as_ref()).await
1954  }
1955
1956  pub async fn edit_inline_message_caption<C: AsRef<EditInlineMessageCaption>>(
1957    &self,
1958    edit_inline_message_caption: C,
1959  ) -> RTDResult<Ok> {
1960    async_caller!(Ok);
1961    async_caller(&self.api, edit_inline_message_caption.as_ref()).await
1962  }
1963
1964  pub async fn edit_inline_message_live_location<C: AsRef<EditInlineMessageLiveLocation>>(
1965    &self,
1966    edit_inline_message_live_location: C,
1967  ) -> RTDResult<Ok> {
1968    async_caller!(Ok);
1969    async_caller(&self.api, edit_inline_message_live_location.as_ref()).await
1970  }
1971
1972  pub async fn edit_inline_message_media<C: AsRef<EditInlineMessageMedia>>(
1973    &self,
1974    edit_inline_message_media: C,
1975  ) -> RTDResult<Ok> {
1976    async_caller!(Ok);
1977    async_caller(&self.api, edit_inline_message_media.as_ref()).await
1978  }
1979
1980  pub async fn edit_inline_message_reply_markup<C: AsRef<EditInlineMessageReplyMarkup>>(
1981    &self,
1982    edit_inline_message_reply_markup: C,
1983  ) -> RTDResult<Ok> {
1984    async_caller!(Ok);
1985    async_caller(&self.api, edit_inline_message_reply_markup.as_ref()).await
1986  }
1987
1988  pub async fn edit_inline_message_text<C: AsRef<EditInlineMessageText>>(
1989    &self,
1990    edit_inline_message_text: C,
1991  ) -> RTDResult<Ok> {
1992    async_caller!(Ok);
1993    async_caller(&self.api, edit_inline_message_text.as_ref()).await
1994  }
1995
1996  pub async fn edit_message_caption<C: AsRef<EditMessageCaption>>(
1997    &self,
1998    edit_message_caption: C,
1999  ) -> RTDResult<Message> {
2000    async_caller!(Message);
2001    async_caller(&self.api, edit_message_caption.as_ref()).await
2002  }
2003
2004  pub async fn edit_message_checklist<C: AsRef<EditMessageChecklist>>(
2005    &self,
2006    edit_message_checklist: C,
2007  ) -> RTDResult<Message> {
2008    async_caller!(Message);
2009    async_caller(&self.api, edit_message_checklist.as_ref()).await
2010  }
2011
2012  pub async fn edit_message_live_location<C: AsRef<EditMessageLiveLocation>>(
2013    &self,
2014    edit_message_live_location: C,
2015  ) -> RTDResult<Message> {
2016    async_caller!(Message);
2017    async_caller(&self.api, edit_message_live_location.as_ref()).await
2018  }
2019
2020  pub async fn edit_message_media<C: AsRef<EditMessageMedia>>(
2021    &self,
2022    edit_message_media: C,
2023  ) -> RTDResult<Message> {
2024    async_caller!(Message);
2025    async_caller(&self.api, edit_message_media.as_ref()).await
2026  }
2027
2028  pub async fn edit_message_reply_markup<C: AsRef<EditMessageReplyMarkup>>(
2029    &self,
2030    edit_message_reply_markup: C,
2031  ) -> RTDResult<Message> {
2032    async_caller!(Message);
2033    async_caller(&self.api, edit_message_reply_markup.as_ref()).await
2034  }
2035
2036  pub async fn edit_message_scheduling_state<C: AsRef<EditMessageSchedulingState>>(
2037    &self,
2038    edit_message_scheduling_state: C,
2039  ) -> RTDResult<Ok> {
2040    async_caller!(Ok);
2041    async_caller(&self.api, edit_message_scheduling_state.as_ref()).await
2042  }
2043
2044  pub async fn edit_message_text<C: AsRef<EditMessageText>>(
2045    &self,
2046    edit_message_text: C,
2047  ) -> RTDResult<Message> {
2048    async_caller!(Message);
2049    async_caller(&self.api, edit_message_text.as_ref()).await
2050  }
2051
2052  pub async fn edit_proxy<C: AsRef<EditProxy>>(&self, edit_proxy: C) -> RTDResult<AddedProxy> {
2053    async_caller!(AddedProxy);
2054    async_caller(&self.api, edit_proxy.as_ref()).await
2055  }
2056
2057  pub async fn edit_quick_reply_message<C: AsRef<EditQuickReplyMessage>>(
2058    &self,
2059    edit_quick_reply_message: C,
2060  ) -> RTDResult<Ok> {
2061    async_caller!(Ok);
2062    async_caller(&self.api, edit_quick_reply_message.as_ref()).await
2063  }
2064
2065  pub async fn edit_star_subscription<C: AsRef<EditStarSubscription>>(
2066    &self,
2067    edit_star_subscription: C,
2068  ) -> RTDResult<Ok> {
2069    async_caller!(Ok);
2070    async_caller(&self.api, edit_star_subscription.as_ref()).await
2071  }
2072
2073  pub async fn edit_story<C: AsRef<EditStory>>(&self, edit_story: C) -> RTDResult<Ok> {
2074    async_caller!(Ok);
2075    async_caller(&self.api, edit_story.as_ref()).await
2076  }
2077
2078  pub async fn edit_story_cover<C: AsRef<EditStoryCover>>(
2079    &self,
2080    edit_story_cover: C,
2081  ) -> RTDResult<Ok> {
2082    async_caller!(Ok);
2083    async_caller(&self.api, edit_story_cover.as_ref()).await
2084  }
2085
2086  pub async fn edit_text_composition_style<C: AsRef<EditTextCompositionStyle>>(
2087    &self,
2088    edit_text_composition_style: C,
2089  ) -> RTDResult<TextCompositionStyle> {
2090    async_caller!(TextCompositionStyle);
2091    async_caller(&self.api, edit_text_composition_style.as_ref()).await
2092  }
2093
2094  pub async fn edit_user_star_subscription<C: AsRef<EditUserStarSubscription>>(
2095    &self,
2096    edit_user_star_subscription: C,
2097  ) -> RTDResult<Ok> {
2098    async_caller!(Ok);
2099    async_caller(&self.api, edit_user_star_subscription.as_ref()).await
2100  }
2101
2102  pub async fn enable_proxy<C: AsRef<EnableProxy>>(&self, enable_proxy: C) -> RTDResult<Ok> {
2103    async_caller!(Ok);
2104    async_caller(&self.api, enable_proxy.as_ref()).await
2105  }
2106
2107  pub async fn enable_ton_wallet_backup<C: AsRef<EnableTonWalletBackup>>(
2108    &self,
2109    enable_ton_wallet_backup: C,
2110  ) -> RTDResult<Ok> {
2111    async_caller!(Ok);
2112    async_caller(&self.api, enable_ton_wallet_backup.as_ref()).await
2113  }
2114
2115  pub async fn encrypt_group_call_data<C: AsRef<EncryptGroupCallData>>(
2116    &self,
2117    encrypt_group_call_data: C,
2118  ) -> RTDResult<Data> {
2119    async_caller!(Data);
2120    async_caller(&self.api, encrypt_group_call_data.as_ref()).await
2121  }
2122
2123  pub async fn end_group_call<C: AsRef<EndGroupCall>>(&self, end_group_call: C) -> RTDResult<Ok> {
2124    async_caller!(Ok);
2125    async_caller(&self.api, end_group_call.as_ref()).await
2126  }
2127
2128  pub async fn end_group_call_recording<C: AsRef<EndGroupCallRecording>>(
2129    &self,
2130    end_group_call_recording: C,
2131  ) -> RTDResult<Ok> {
2132    async_caller!(Ok);
2133    async_caller(&self.api, end_group_call_recording.as_ref()).await
2134  }
2135
2136  pub async fn end_group_call_screen_sharing<C: AsRef<EndGroupCallScreenSharing>>(
2137    &self,
2138    end_group_call_screen_sharing: C,
2139  ) -> RTDResult<Ok> {
2140    async_caller!(Ok);
2141    async_caller(&self.api, end_group_call_screen_sharing.as_ref()).await
2142  }
2143
2144  pub async fn finish_file_generation<C: AsRef<FinishFileGeneration>>(
2145    &self,
2146    finish_file_generation: C,
2147  ) -> RTDResult<Ok> {
2148    async_caller!(Ok);
2149    async_caller(&self.api, finish_file_generation.as_ref()).await
2150  }
2151
2152  pub async fn fix_rich_message_with_ai<C: AsRef<FixRichMessageWithAi>>(
2153    &self,
2154    fix_rich_message_with_ai: C,
2155  ) -> RTDResult<RichMessage> {
2156    async_caller!(RichMessage);
2157    async_caller(&self.api, fix_rich_message_with_ai.as_ref()).await
2158  }
2159
2160  pub async fn fix_text_with_ai<C: AsRef<FixTextWithAi>>(
2161    &self,
2162    fix_text_with_ai: C,
2163  ) -> RTDResult<FixedText> {
2164    async_caller!(FixedText);
2165    async_caller(&self.api, fix_text_with_ai.as_ref()).await
2166  }
2167
2168  pub async fn forward_messages<C: AsRef<ForwardMessages>>(
2169    &self,
2170    forward_messages: C,
2171  ) -> RTDResult<Messages> {
2172    async_caller!(Messages);
2173    async_caller(&self.api, forward_messages.as_ref()).await
2174  }
2175
2176  pub async fn get_account_ttl<C: AsRef<GetAccountTtl>>(
2177    &self,
2178    get_account_ttl: C,
2179  ) -> RTDResult<AccountTtl> {
2180    async_caller!(AccountTtl);
2181    async_caller(&self.api, get_account_ttl.as_ref()).await
2182  }
2183
2184  pub async fn get_active_sessions<C: AsRef<GetActiveSessions>>(
2185    &self,
2186    get_active_sessions: C,
2187  ) -> RTDResult<Sessions> {
2188    async_caller!(Sessions);
2189    async_caller(&self.api, get_active_sessions.as_ref()).await
2190  }
2191
2192  pub async fn get_address_ton_wallet<C: AsRef<GetAddressTonWallet>>(
2193    &self,
2194    get_address_ton_wallet: C,
2195  ) -> RTDResult<UserTonWalletAddress> {
2196    async_caller!(UserTonWalletAddress);
2197    async_caller(&self.api, get_address_ton_wallet.as_ref()).await
2198  }
2199
2200  pub async fn get_all_passport_elements<C: AsRef<GetAllPassportElements>>(
2201    &self,
2202    get_all_passport_elements: C,
2203  ) -> RTDResult<PassportElements> {
2204    async_caller!(PassportElements);
2205    async_caller(&self.api, get_all_passport_elements.as_ref()).await
2206  }
2207
2208  pub async fn get_all_sticker_emojis<C: AsRef<GetAllStickerEmojis>>(
2209    &self,
2210    get_all_sticker_emojis: C,
2211  ) -> RTDResult<Emojis> {
2212    async_caller!(Emojis);
2213    async_caller(&self.api, get_all_sticker_emojis.as_ref()).await
2214  }
2215
2216  pub async fn get_animated_emoji<C: AsRef<GetAnimatedEmoji>>(
2217    &self,
2218    get_animated_emoji: C,
2219  ) -> RTDResult<AnimatedEmoji> {
2220    async_caller!(AnimatedEmoji);
2221    async_caller(&self.api, get_animated_emoji.as_ref()).await
2222  }
2223
2224  pub async fn get_application_config<C: AsRef<GetApplicationConfig>>(
2225    &self,
2226    get_application_config: C,
2227  ) -> RTDResult<JsonValue> {
2228    async_caller!(JsonValue);
2229    async_caller(&self.api, get_application_config.as_ref()).await
2230  }
2231
2232  pub async fn get_application_download_link<C: AsRef<GetApplicationDownloadLink>>(
2233    &self,
2234    get_application_download_link: C,
2235  ) -> RTDResult<HttpUrl> {
2236    async_caller!(HttpUrl);
2237    async_caller(&self.api, get_application_download_link.as_ref()).await
2238  }
2239
2240  pub async fn get_archive_chat_list_settings<C: AsRef<GetArchiveChatListSettings>>(
2241    &self,
2242    get_archive_chat_list_settings: C,
2243  ) -> RTDResult<ArchiveChatListSettings> {
2244    async_caller!(ArchiveChatListSettings);
2245    async_caller(&self.api, get_archive_chat_list_settings.as_ref()).await
2246  }
2247
2248  pub async fn get_archived_sticker_sets<C: AsRef<GetArchivedStickerSets>>(
2249    &self,
2250    get_archived_sticker_sets: C,
2251  ) -> RTDResult<StickerSets> {
2252    async_caller!(StickerSets);
2253    async_caller(&self.api, get_archived_sticker_sets.as_ref()).await
2254  }
2255
2256  pub async fn get_attached_sticker_sets<C: AsRef<GetAttachedStickerSets>>(
2257    &self,
2258    get_attached_sticker_sets: C,
2259  ) -> RTDResult<StickerSets> {
2260    async_caller!(StickerSets);
2261    async_caller(&self.api, get_attached_sticker_sets.as_ref()).await
2262  }
2263
2264  pub async fn get_attachment_menu_bot<C: AsRef<GetAttachmentMenuBot>>(
2265    &self,
2266    get_attachment_menu_bot: C,
2267  ) -> RTDResult<AttachmentMenuBot> {
2268    async_caller!(AttachmentMenuBot);
2269    async_caller(&self.api, get_attachment_menu_bot.as_ref()).await
2270  }
2271
2272  pub async fn get_authentication_passkey_parameters<
2273    C: AsRef<GetAuthenticationPasskeyParameters>,
2274  >(
2275    &self,
2276    get_authentication_passkey_parameters: C,
2277  ) -> RTDResult<Text> {
2278    async_caller!(Text);
2279    async_caller(&self.api, get_authentication_passkey_parameters.as_ref()).await
2280  }
2281
2282  pub async fn get_authorization_state<C: AsRef<GetAuthorizationState>>(
2283    &self,
2284    get_authorization_state: C,
2285  ) -> RTDResult<AuthorizationState> {
2286    async_caller!(AuthorizationState);
2287    async_caller(&self.api, get_authorization_state.as_ref()).await
2288  }
2289
2290  pub async fn get_auto_download_settings_presets<C: AsRef<GetAutoDownloadSettingsPresets>>(
2291    &self,
2292    get_auto_download_settings_presets: C,
2293  ) -> RTDResult<AutoDownloadSettingsPresets> {
2294    async_caller!(AutoDownloadSettingsPresets);
2295    async_caller(&self.api, get_auto_download_settings_presets.as_ref()).await
2296  }
2297
2298  pub async fn get_autosave_settings<C: AsRef<GetAutosaveSettings>>(
2299    &self,
2300    get_autosave_settings: C,
2301  ) -> RTDResult<AutosaveSettings> {
2302    async_caller!(AutosaveSettings);
2303    async_caller(&self.api, get_autosave_settings.as_ref()).await
2304  }
2305
2306  pub async fn get_available_chat_boost_slots<C: AsRef<GetAvailableChatBoostSlots>>(
2307    &self,
2308    get_available_chat_boost_slots: C,
2309  ) -> RTDResult<ChatBoostSlots> {
2310    async_caller!(ChatBoostSlots);
2311    async_caller(&self.api, get_available_chat_boost_slots.as_ref()).await
2312  }
2313
2314  pub async fn get_available_gifts<C: AsRef<GetAvailableGifts>>(
2315    &self,
2316    get_available_gifts: C,
2317  ) -> RTDResult<AvailableGifts> {
2318    async_caller!(AvailableGifts);
2319    async_caller(&self.api, get_available_gifts.as_ref()).await
2320  }
2321
2322  pub async fn get_background_url<C: AsRef<GetBackgroundUrl>>(
2323    &self,
2324    get_background_url: C,
2325  ) -> RTDResult<HttpUrl> {
2326    async_caller!(HttpUrl);
2327    async_caller(&self.api, get_background_url.as_ref()).await
2328  }
2329
2330  pub async fn get_bank_card_info<C: AsRef<GetBankCardInfo>>(
2331    &self,
2332    get_bank_card_info: C,
2333  ) -> RTDResult<BankCardInfo> {
2334    async_caller!(BankCardInfo);
2335    async_caller(&self.api, get_bank_card_info.as_ref()).await
2336  }
2337
2338  pub async fn get_basic_group<C: AsRef<GetBasicGroup>>(
2339    &self,
2340    get_basic_group: C,
2341  ) -> RTDResult<BasicGroup> {
2342    async_caller!(BasicGroup);
2343    async_caller(&self.api, get_basic_group.as_ref()).await
2344  }
2345
2346  pub async fn get_basic_group_full_info<C: AsRef<GetBasicGroupFullInfo>>(
2347    &self,
2348    get_basic_group_full_info: C,
2349  ) -> RTDResult<BasicGroupFullInfo> {
2350    async_caller!(BasicGroupFullInfo);
2351    async_caller(&self.api, get_basic_group_full_info.as_ref()).await
2352  }
2353
2354  pub async fn get_blocked_message_senders<C: AsRef<GetBlockedMessageSenders>>(
2355    &self,
2356    get_blocked_message_senders: C,
2357  ) -> RTDResult<MessageSenders> {
2358    async_caller!(MessageSenders);
2359    async_caller(&self.api, get_blocked_message_senders.as_ref()).await
2360  }
2361
2362  pub async fn get_bot_info_description<C: AsRef<GetBotInfoDescription>>(
2363    &self,
2364    get_bot_info_description: C,
2365  ) -> RTDResult<Text> {
2366    async_caller!(Text);
2367    async_caller(&self.api, get_bot_info_description.as_ref()).await
2368  }
2369
2370  pub async fn get_bot_info_short_description<C: AsRef<GetBotInfoShortDescription>>(
2371    &self,
2372    get_bot_info_short_description: C,
2373  ) -> RTDResult<Text> {
2374    async_caller!(Text);
2375    async_caller(&self.api, get_bot_info_short_description.as_ref()).await
2376  }
2377
2378  pub async fn get_bot_media_preview_info<C: AsRef<GetBotMediaPreviewInfo>>(
2379    &self,
2380    get_bot_media_preview_info: C,
2381  ) -> RTDResult<BotMediaPreviewInfo> {
2382    async_caller!(BotMediaPreviewInfo);
2383    async_caller(&self.api, get_bot_media_preview_info.as_ref()).await
2384  }
2385
2386  pub async fn get_bot_media_previews<C: AsRef<GetBotMediaPreviews>>(
2387    &self,
2388    get_bot_media_previews: C,
2389  ) -> RTDResult<BotMediaPreviews> {
2390    async_caller!(BotMediaPreviews);
2391    async_caller(&self.api, get_bot_media_previews.as_ref()).await
2392  }
2393
2394  pub async fn get_bot_name<C: AsRef<GetBotName>>(&self, get_bot_name: C) -> RTDResult<Text> {
2395    async_caller!(Text);
2396    async_caller(&self.api, get_bot_name.as_ref()).await
2397  }
2398
2399  pub async fn get_bot_similar_bot_count<C: AsRef<GetBotSimilarBotCount>>(
2400    &self,
2401    get_bot_similar_bot_count: C,
2402  ) -> RTDResult<Count> {
2403    async_caller!(Count);
2404    async_caller(&self.api, get_bot_similar_bot_count.as_ref()).await
2405  }
2406
2407  pub async fn get_bot_similar_bots<C: AsRef<GetBotSimilarBots>>(
2408    &self,
2409    get_bot_similar_bots: C,
2410  ) -> RTDResult<Users> {
2411    async_caller!(Users);
2412    async_caller(&self.api, get_bot_similar_bots.as_ref()).await
2413  }
2414
2415  pub async fn get_business_account_star_amount<C: AsRef<GetBusinessAccountStarAmount>>(
2416    &self,
2417    get_business_account_star_amount: C,
2418  ) -> RTDResult<StarAmount> {
2419    async_caller!(StarAmount);
2420    async_caller(&self.api, get_business_account_star_amount.as_ref()).await
2421  }
2422
2423  pub async fn get_business_chat_link_info<C: AsRef<GetBusinessChatLinkInfo>>(
2424    &self,
2425    get_business_chat_link_info: C,
2426  ) -> RTDResult<BusinessChatLinkInfo> {
2427    async_caller!(BusinessChatLinkInfo);
2428    async_caller(&self.api, get_business_chat_link_info.as_ref()).await
2429  }
2430
2431  pub async fn get_business_chat_links<C: AsRef<GetBusinessChatLinks>>(
2432    &self,
2433    get_business_chat_links: C,
2434  ) -> RTDResult<BusinessChatLinks> {
2435    async_caller!(BusinessChatLinks);
2436    async_caller(&self.api, get_business_chat_links.as_ref()).await
2437  }
2438
2439  pub async fn get_business_connected_bot<C: AsRef<GetBusinessConnectedBot>>(
2440    &self,
2441    get_business_connected_bot: C,
2442  ) -> RTDResult<BusinessConnectedBotInfo> {
2443    async_caller!(BusinessConnectedBotInfo);
2444    async_caller(&self.api, get_business_connected_bot.as_ref()).await
2445  }
2446
2447  pub async fn get_business_connection<C: AsRef<GetBusinessConnection>>(
2448    &self,
2449    get_business_connection: C,
2450  ) -> RTDResult<BusinessConnection> {
2451    async_caller!(BusinessConnection);
2452    async_caller(&self.api, get_business_connection.as_ref()).await
2453  }
2454
2455  pub async fn get_business_features<C: AsRef<GetBusinessFeatures>>(
2456    &self,
2457    get_business_features: C,
2458  ) -> RTDResult<BusinessFeatures> {
2459    async_caller!(BusinessFeatures);
2460    async_caller(&self.api, get_business_features.as_ref()).await
2461  }
2462
2463  pub async fn get_callback_query_answer<C: AsRef<GetCallbackQueryAnswer>>(
2464    &self,
2465    get_callback_query_answer: C,
2466  ) -> RTDResult<CallbackQueryAnswer> {
2467    async_caller!(CallbackQueryAnswer);
2468    async_caller(&self.api, get_callback_query_answer.as_ref()).await
2469  }
2470
2471  pub async fn get_callback_query_message<C: AsRef<GetCallbackQueryMessage>>(
2472    &self,
2473    get_callback_query_message: C,
2474  ) -> RTDResult<Message> {
2475    async_caller!(Message);
2476    async_caller(&self.api, get_callback_query_message.as_ref()).await
2477  }
2478
2479  pub async fn get_chat<C: AsRef<GetChat>>(&self, get_chat: C) -> RTDResult<Chat> {
2480    async_caller!(Chat);
2481    async_caller(&self.api, get_chat.as_ref()).await
2482  }
2483
2484  pub async fn get_chat_active_stories<C: AsRef<GetChatActiveStories>>(
2485    &self,
2486    get_chat_active_stories: C,
2487  ) -> RTDResult<ChatActiveStories> {
2488    async_caller!(ChatActiveStories);
2489    async_caller(&self.api, get_chat_active_stories.as_ref()).await
2490  }
2491
2492  pub async fn get_chat_administrators<C: AsRef<GetChatAdministrators>>(
2493    &self,
2494    get_chat_administrators: C,
2495  ) -> RTDResult<ChatAdministrators> {
2496    async_caller!(ChatAdministrators);
2497    async_caller(&self.api, get_chat_administrators.as_ref()).await
2498  }
2499
2500  pub async fn get_chat_archived_stories<C: AsRef<GetChatArchivedStories>>(
2501    &self,
2502    get_chat_archived_stories: C,
2503  ) -> RTDResult<Stories> {
2504    async_caller!(Stories);
2505    async_caller(&self.api, get_chat_archived_stories.as_ref()).await
2506  }
2507
2508  pub async fn get_chat_available_message_senders<C: AsRef<GetChatAvailableMessageSenders>>(
2509    &self,
2510    get_chat_available_message_senders: C,
2511  ) -> RTDResult<ChatMessageSenders> {
2512    async_caller!(ChatMessageSenders);
2513    async_caller(&self.api, get_chat_available_message_senders.as_ref()).await
2514  }
2515
2516  pub async fn get_chat_available_paid_message_reaction_senders<
2517    C: AsRef<GetChatAvailablePaidMessageReactionSenders>,
2518  >(
2519    &self,
2520    get_chat_available_paid_message_reaction_senders: C,
2521  ) -> RTDResult<MessageSenders> {
2522    async_caller!(MessageSenders);
2523    async_caller(
2524      &self.api,
2525      get_chat_available_paid_message_reaction_senders.as_ref(),
2526    )
2527    .await
2528  }
2529
2530  pub async fn get_chat_boost_features<C: AsRef<GetChatBoostFeatures>>(
2531    &self,
2532    get_chat_boost_features: C,
2533  ) -> RTDResult<ChatBoostFeatures> {
2534    async_caller!(ChatBoostFeatures);
2535    async_caller(&self.api, get_chat_boost_features.as_ref()).await
2536  }
2537
2538  pub async fn get_chat_boost_level_features<C: AsRef<GetChatBoostLevelFeatures>>(
2539    &self,
2540    get_chat_boost_level_features: C,
2541  ) -> RTDResult<ChatBoostLevelFeatures> {
2542    async_caller!(ChatBoostLevelFeatures);
2543    async_caller(&self.api, get_chat_boost_level_features.as_ref()).await
2544  }
2545
2546  pub async fn get_chat_boost_link<C: AsRef<GetChatBoostLink>>(
2547    &self,
2548    get_chat_boost_link: C,
2549  ) -> RTDResult<ChatBoostLink> {
2550    async_caller!(ChatBoostLink);
2551    async_caller(&self.api, get_chat_boost_link.as_ref()).await
2552  }
2553
2554  pub async fn get_chat_boost_link_info<C: AsRef<GetChatBoostLinkInfo>>(
2555    &self,
2556    get_chat_boost_link_info: C,
2557  ) -> RTDResult<ChatBoostLinkInfo> {
2558    async_caller!(ChatBoostLinkInfo);
2559    async_caller(&self.api, get_chat_boost_link_info.as_ref()).await
2560  }
2561
2562  pub async fn get_chat_boost_status<C: AsRef<GetChatBoostStatus>>(
2563    &self,
2564    get_chat_boost_status: C,
2565  ) -> RTDResult<ChatBoostStatus> {
2566    async_caller!(ChatBoostStatus);
2567    async_caller(&self.api, get_chat_boost_status.as_ref()).await
2568  }
2569
2570  pub async fn get_chat_boosts<C: AsRef<GetChatBoosts>>(
2571    &self,
2572    get_chat_boosts: C,
2573  ) -> RTDResult<FoundChatBoosts> {
2574    async_caller!(FoundChatBoosts);
2575    async_caller(&self.api, get_chat_boosts.as_ref()).await
2576  }
2577
2578  pub async fn get_chat_event_log<C: AsRef<GetChatEventLog>>(
2579    &self,
2580    get_chat_event_log: C,
2581  ) -> RTDResult<ChatEvents> {
2582    async_caller!(ChatEvents);
2583    async_caller(&self.api, get_chat_event_log.as_ref()).await
2584  }
2585
2586  pub async fn get_chat_folder<C: AsRef<GetChatFolder>>(
2587    &self,
2588    get_chat_folder: C,
2589  ) -> RTDResult<ChatFolder> {
2590    async_caller!(ChatFolder);
2591    async_caller(&self.api, get_chat_folder.as_ref()).await
2592  }
2593
2594  pub async fn get_chat_folder_chat_count<C: AsRef<GetChatFolderChatCount>>(
2595    &self,
2596    get_chat_folder_chat_count: C,
2597  ) -> RTDResult<Count> {
2598    async_caller!(Count);
2599    async_caller(&self.api, get_chat_folder_chat_count.as_ref()).await
2600  }
2601
2602  pub async fn get_chat_folder_chats_to_leave<C: AsRef<GetChatFolderChatsToLeave>>(
2603    &self,
2604    get_chat_folder_chats_to_leave: C,
2605  ) -> RTDResult<Chats> {
2606    async_caller!(Chats);
2607    async_caller(&self.api, get_chat_folder_chats_to_leave.as_ref()).await
2608  }
2609
2610  pub async fn get_chat_folder_default_icon_name<C: AsRef<GetChatFolderDefaultIconName>>(
2611    &self,
2612    get_chat_folder_default_icon_name: C,
2613  ) -> RTDResult<ChatFolderIcon> {
2614    async_caller!(ChatFolderIcon);
2615    async_caller(&self.api, get_chat_folder_default_icon_name.as_ref()).await
2616  }
2617
2618  pub async fn get_chat_folder_invite_links<C: AsRef<GetChatFolderInviteLinks>>(
2619    &self,
2620    get_chat_folder_invite_links: C,
2621  ) -> RTDResult<ChatFolderInviteLinks> {
2622    async_caller!(ChatFolderInviteLinks);
2623    async_caller(&self.api, get_chat_folder_invite_links.as_ref()).await
2624  }
2625
2626  pub async fn get_chat_folder_new_chats<C: AsRef<GetChatFolderNewChats>>(
2627    &self,
2628    get_chat_folder_new_chats: C,
2629  ) -> RTDResult<Chats> {
2630    async_caller!(Chats);
2631    async_caller(&self.api, get_chat_folder_new_chats.as_ref()).await
2632  }
2633
2634  pub async fn get_chat_history<C: AsRef<GetChatHistory>>(
2635    &self,
2636    get_chat_history: C,
2637  ) -> RTDResult<Messages> {
2638    async_caller!(Messages);
2639    async_caller(&self.api, get_chat_history.as_ref()).await
2640  }
2641
2642  pub async fn get_chat_invite_link<C: AsRef<GetChatInviteLink>>(
2643    &self,
2644    get_chat_invite_link: C,
2645  ) -> RTDResult<ChatInviteLink> {
2646    async_caller!(ChatInviteLink);
2647    async_caller(&self.api, get_chat_invite_link.as_ref()).await
2648  }
2649
2650  pub async fn get_chat_invite_link_counts<C: AsRef<GetChatInviteLinkCounts>>(
2651    &self,
2652    get_chat_invite_link_counts: C,
2653  ) -> RTDResult<ChatInviteLinkCounts> {
2654    async_caller!(ChatInviteLinkCounts);
2655    async_caller(&self.api, get_chat_invite_link_counts.as_ref()).await
2656  }
2657
2658  pub async fn get_chat_invite_link_members<C: AsRef<GetChatInviteLinkMembers>>(
2659    &self,
2660    get_chat_invite_link_members: C,
2661  ) -> RTDResult<ChatInviteLinkMembers> {
2662    async_caller!(ChatInviteLinkMembers);
2663    async_caller(&self.api, get_chat_invite_link_members.as_ref()).await
2664  }
2665
2666  pub async fn get_chat_invite_links<C: AsRef<GetChatInviteLinks>>(
2667    &self,
2668    get_chat_invite_links: C,
2669  ) -> RTDResult<ChatInviteLinks> {
2670    async_caller!(ChatInviteLinks);
2671    async_caller(&self.api, get_chat_invite_links.as_ref()).await
2672  }
2673
2674  pub async fn get_chat_join_requests<C: AsRef<GetChatJoinRequests>>(
2675    &self,
2676    get_chat_join_requests: C,
2677  ) -> RTDResult<ChatJoinRequests> {
2678    async_caller!(ChatJoinRequests);
2679    async_caller(&self.api, get_chat_join_requests.as_ref()).await
2680  }
2681
2682  pub async fn get_chat_lists_to_add_chat<C: AsRef<GetChatListsToAddChat>>(
2683    &self,
2684    get_chat_lists_to_add_chat: C,
2685  ) -> RTDResult<ChatLists> {
2686    async_caller!(ChatLists);
2687    async_caller(&self.api, get_chat_lists_to_add_chat.as_ref()).await
2688  }
2689
2690  pub async fn get_chat_member<C: AsRef<GetChatMember>>(
2691    &self,
2692    get_chat_member: C,
2693  ) -> RTDResult<ChatMember> {
2694    async_caller!(ChatMember);
2695    async_caller(&self.api, get_chat_member.as_ref()).await
2696  }
2697
2698  pub async fn get_chat_message_by_date<C: AsRef<GetChatMessageByDate>>(
2699    &self,
2700    get_chat_message_by_date: C,
2701  ) -> RTDResult<Message> {
2702    async_caller!(Message);
2703    async_caller(&self.api, get_chat_message_by_date.as_ref()).await
2704  }
2705
2706  pub async fn get_chat_message_calendar<C: AsRef<GetChatMessageCalendar>>(
2707    &self,
2708    get_chat_message_calendar: C,
2709  ) -> RTDResult<MessageCalendar> {
2710    async_caller!(MessageCalendar);
2711    async_caller(&self.api, get_chat_message_calendar.as_ref()).await
2712  }
2713
2714  pub async fn get_chat_message_count<C: AsRef<GetChatMessageCount>>(
2715    &self,
2716    get_chat_message_count: C,
2717  ) -> RTDResult<Count> {
2718    async_caller!(Count);
2719    async_caller(&self.api, get_chat_message_count.as_ref()).await
2720  }
2721
2722  pub async fn get_chat_message_position<C: AsRef<GetChatMessagePosition>>(
2723    &self,
2724    get_chat_message_position: C,
2725  ) -> RTDResult<Count> {
2726    async_caller!(Count);
2727    async_caller(&self.api, get_chat_message_position.as_ref()).await
2728  }
2729
2730  pub async fn get_chat_notification_settings_exceptions<
2731    C: AsRef<GetChatNotificationSettingsExceptions>,
2732  >(
2733    &self,
2734    get_chat_notification_settings_exceptions: C,
2735  ) -> RTDResult<Chats> {
2736    async_caller!(Chats);
2737    async_caller(
2738      &self.api,
2739      get_chat_notification_settings_exceptions.as_ref(),
2740    )
2741    .await
2742  }
2743
2744  pub async fn get_chat_owner_after_leaving<C: AsRef<GetChatOwnerAfterLeaving>>(
2745    &self,
2746    get_chat_owner_after_leaving: C,
2747  ) -> RTDResult<User> {
2748    async_caller!(User);
2749    async_caller(&self.api, get_chat_owner_after_leaving.as_ref()).await
2750  }
2751
2752  pub async fn get_chat_pinned_message<C: AsRef<GetChatPinnedMessage>>(
2753    &self,
2754    get_chat_pinned_message: C,
2755  ) -> RTDResult<Message> {
2756    async_caller!(Message);
2757    async_caller(&self.api, get_chat_pinned_message.as_ref()).await
2758  }
2759
2760  pub async fn get_chat_posted_to_chat_page_stories<C: AsRef<GetChatPostedToChatPageStories>>(
2761    &self,
2762    get_chat_posted_to_chat_page_stories: C,
2763  ) -> RTDResult<Stories> {
2764    async_caller!(Stories);
2765    async_caller(&self.api, get_chat_posted_to_chat_page_stories.as_ref()).await
2766  }
2767
2768  pub async fn get_chat_revenue_statistics<C: AsRef<GetChatRevenueStatistics>>(
2769    &self,
2770    get_chat_revenue_statistics: C,
2771  ) -> RTDResult<ChatRevenueStatistics> {
2772    async_caller!(ChatRevenueStatistics);
2773    async_caller(&self.api, get_chat_revenue_statistics.as_ref()).await
2774  }
2775
2776  pub async fn get_chat_revenue_transactions<C: AsRef<GetChatRevenueTransactions>>(
2777    &self,
2778    get_chat_revenue_transactions: C,
2779  ) -> RTDResult<ChatRevenueTransactions> {
2780    async_caller!(ChatRevenueTransactions);
2781    async_caller(&self.api, get_chat_revenue_transactions.as_ref()).await
2782  }
2783
2784  pub async fn get_chat_revenue_withdrawal_url<C: AsRef<GetChatRevenueWithdrawalUrl>>(
2785    &self,
2786    get_chat_revenue_withdrawal_url: C,
2787  ) -> RTDResult<HttpUrl> {
2788    async_caller!(HttpUrl);
2789    async_caller(&self.api, get_chat_revenue_withdrawal_url.as_ref()).await
2790  }
2791
2792  pub async fn get_chat_scheduled_messages<C: AsRef<GetChatScheduledMessages>>(
2793    &self,
2794    get_chat_scheduled_messages: C,
2795  ) -> RTDResult<Messages> {
2796    async_caller!(Messages);
2797    async_caller(&self.api, get_chat_scheduled_messages.as_ref()).await
2798  }
2799
2800  pub async fn get_chat_similar_chat_count<C: AsRef<GetChatSimilarChatCount>>(
2801    &self,
2802    get_chat_similar_chat_count: C,
2803  ) -> RTDResult<Count> {
2804    async_caller!(Count);
2805    async_caller(&self.api, get_chat_similar_chat_count.as_ref()).await
2806  }
2807
2808  pub async fn get_chat_similar_chats<C: AsRef<GetChatSimilarChats>>(
2809    &self,
2810    get_chat_similar_chats: C,
2811  ) -> RTDResult<Chats> {
2812    async_caller!(Chats);
2813    async_caller(&self.api, get_chat_similar_chats.as_ref()).await
2814  }
2815
2816  pub async fn get_chat_sparse_message_positions<C: AsRef<GetChatSparseMessagePositions>>(
2817    &self,
2818    get_chat_sparse_message_positions: C,
2819  ) -> RTDResult<MessagePositions> {
2820    async_caller!(MessagePositions);
2821    async_caller(&self.api, get_chat_sparse_message_positions.as_ref()).await
2822  }
2823
2824  pub async fn get_chat_sponsored_messages<C: AsRef<GetChatSponsoredMessages>>(
2825    &self,
2826    get_chat_sponsored_messages: C,
2827  ) -> RTDResult<SponsoredMessages> {
2828    async_caller!(SponsoredMessages);
2829    async_caller(&self.api, get_chat_sponsored_messages.as_ref()).await
2830  }
2831
2832  pub async fn get_chat_statistics<C: AsRef<GetChatStatistics>>(
2833    &self,
2834    get_chat_statistics: C,
2835  ) -> RTDResult<ChatStatistics> {
2836    async_caller!(ChatStatistics);
2837    async_caller(&self.api, get_chat_statistics.as_ref()).await
2838  }
2839
2840  pub async fn get_chat_story_albums<C: AsRef<GetChatStoryAlbums>>(
2841    &self,
2842    get_chat_story_albums: C,
2843  ) -> RTDResult<StoryAlbums> {
2844    async_caller!(StoryAlbums);
2845    async_caller(&self.api, get_chat_story_albums.as_ref()).await
2846  }
2847
2848  pub async fn get_chat_story_interactions<C: AsRef<GetChatStoryInteractions>>(
2849    &self,
2850    get_chat_story_interactions: C,
2851  ) -> RTDResult<StoryInteractions> {
2852    async_caller!(StoryInteractions);
2853    async_caller(&self.api, get_chat_story_interactions.as_ref()).await
2854  }
2855
2856  pub async fn get_chats<C: AsRef<GetChats>>(&self, get_chats: C) -> RTDResult<Chats> {
2857    async_caller!(Chats);
2858    async_caller(&self.api, get_chats.as_ref()).await
2859  }
2860
2861  pub async fn get_chats_for_chat_folder_invite_link<C: AsRef<GetChatsForChatFolderInviteLink>>(
2862    &self,
2863    get_chats_for_chat_folder_invite_link: C,
2864  ) -> RTDResult<Chats> {
2865    async_caller!(Chats);
2866    async_caller(&self.api, get_chats_for_chat_folder_invite_link.as_ref()).await
2867  }
2868
2869  pub async fn get_chats_to_post_stories<C: AsRef<GetChatsToPostStories>>(
2870    &self,
2871    get_chats_to_post_stories: C,
2872  ) -> RTDResult<Chats> {
2873    async_caller!(Chats);
2874    async_caller(&self.api, get_chats_to_post_stories.as_ref()).await
2875  }
2876
2877  pub async fn get_close_friends<C: AsRef<GetCloseFriends>>(
2878    &self,
2879    get_close_friends: C,
2880  ) -> RTDResult<Users> {
2881    async_caller!(Users);
2882    async_caller(&self.api, get_close_friends.as_ref()).await
2883  }
2884
2885  pub async fn get_collectible_item_info<C: AsRef<GetCollectibleItemInfo>>(
2886    &self,
2887    get_collectible_item_info: C,
2888  ) -> RTDResult<CollectibleItemInfo> {
2889    async_caller!(CollectibleItemInfo);
2890    async_caller(&self.api, get_collectible_item_info.as_ref()).await
2891  }
2892
2893  pub async fn get_commands<C: AsRef<GetCommands>>(
2894    &self,
2895    get_commands: C,
2896  ) -> RTDResult<BotCommands> {
2897    async_caller!(BotCommands);
2898    async_caller(&self.api, get_commands.as_ref()).await
2899  }
2900
2901  pub async fn get_community_full_info<C: AsRef<GetCommunityFullInfo>>(
2902    &self,
2903    get_community_full_info: C,
2904  ) -> RTDResult<CommunityFullInfo> {
2905    async_caller!(CommunityFullInfo);
2906    async_caller(&self.api, get_community_full_info.as_ref()).await
2907  }
2908
2909  pub async fn get_connected_affiliate_program<C: AsRef<GetConnectedAffiliateProgram>>(
2910    &self,
2911    get_connected_affiliate_program: C,
2912  ) -> RTDResult<ConnectedAffiliateProgram> {
2913    async_caller!(ConnectedAffiliateProgram);
2914    async_caller(&self.api, get_connected_affiliate_program.as_ref()).await
2915  }
2916
2917  pub async fn get_connected_affiliate_programs<C: AsRef<GetConnectedAffiliatePrograms>>(
2918    &self,
2919    get_connected_affiliate_programs: C,
2920  ) -> RTDResult<ConnectedAffiliatePrograms> {
2921    async_caller!(ConnectedAffiliatePrograms);
2922    async_caller(&self.api, get_connected_affiliate_programs.as_ref()).await
2923  }
2924
2925  pub async fn get_connected_websites<C: AsRef<GetConnectedWebsites>>(
2926    &self,
2927    get_connected_websites: C,
2928  ) -> RTDResult<ConnectedWebsites> {
2929    async_caller!(ConnectedWebsites);
2930    async_caller(&self.api, get_connected_websites.as_ref()).await
2931  }
2932
2933  pub async fn get_contacts<C: AsRef<GetContacts>>(&self, get_contacts: C) -> RTDResult<Users> {
2934    async_caller!(Users);
2935    async_caller(&self.api, get_contacts.as_ref()).await
2936  }
2937
2938  pub async fn get_countries<C: AsRef<GetCountries>>(
2939    &self,
2940    get_countries: C,
2941  ) -> RTDResult<Countries> {
2942    async_caller!(Countries);
2943    async_caller(&self.api, get_countries.as_ref()).await
2944  }
2945
2946  pub async fn get_country<C: AsRef<GetCountry>>(&self, get_country: C) -> RTDResult<CountryInfo> {
2947    async_caller!(CountryInfo);
2948    async_caller(&self.api, get_country.as_ref()).await
2949  }
2950
2951  pub async fn get_country_code<C: AsRef<GetCountryCode>>(
2952    &self,
2953    get_country_code: C,
2954  ) -> RTDResult<Text> {
2955    async_caller!(Text);
2956    async_caller(&self.api, get_country_code.as_ref()).await
2957  }
2958
2959  pub async fn get_country_flag_emoji<C: AsRef<GetCountryFlagEmoji>>(
2960    &self,
2961    get_country_flag_emoji: C,
2962  ) -> RTDResult<Text> {
2963    async_caller!(Text);
2964    async_caller(&self.api, get_country_flag_emoji.as_ref()).await
2965  }
2966
2967  pub async fn get_created_public_chats<C: AsRef<GetCreatedPublicChats>>(
2968    &self,
2969    get_created_public_chats: C,
2970  ) -> RTDResult<Chats> {
2971    async_caller!(Chats);
2972    async_caller(&self.api, get_created_public_chats.as_ref()).await
2973  }
2974
2975  pub async fn get_currency_exchange_rates<C: AsRef<GetCurrencyExchangeRates>>(
2976    &self,
2977    get_currency_exchange_rates: C,
2978  ) -> RTDResult<CurrencyExchangeRates> {
2979    async_caller!(CurrencyExchangeRates);
2980    async_caller(&self.api, get_currency_exchange_rates.as_ref()).await
2981  }
2982
2983  pub async fn get_current_state<C: AsRef<GetCurrentState>>(
2984    &self,
2985    get_current_state: C,
2986  ) -> RTDResult<Updates> {
2987    async_caller!(Updates);
2988    async_caller(&self.api, get_current_state.as_ref()).await
2989  }
2990
2991  pub async fn get_current_weather<C: AsRef<GetCurrentWeather>>(
2992    &self,
2993    get_current_weather: C,
2994  ) -> RTDResult<CurrentWeather> {
2995    async_caller!(CurrentWeather);
2996    async_caller(&self.api, get_current_weather.as_ref()).await
2997  }
2998
2999  pub async fn get_custom_emoji_reaction_animations<C: AsRef<GetCustomEmojiReactionAnimations>>(
3000    &self,
3001    get_custom_emoji_reaction_animations: C,
3002  ) -> RTDResult<Stickers> {
3003    async_caller!(Stickers);
3004    async_caller(&self.api, get_custom_emoji_reaction_animations.as_ref()).await
3005  }
3006
3007  pub async fn get_custom_emoji_stickers<C: AsRef<GetCustomEmojiStickers>>(
3008    &self,
3009    get_custom_emoji_stickers: C,
3010  ) -> RTDResult<Stickers> {
3011    async_caller!(Stickers);
3012    async_caller(&self.api, get_custom_emoji_stickers.as_ref()).await
3013  }
3014
3015  pub async fn get_database_statistics<C: AsRef<GetDatabaseStatistics>>(
3016    &self,
3017    get_database_statistics: C,
3018  ) -> RTDResult<DatabaseStatistics> {
3019    async_caller!(DatabaseStatistics);
3020    async_caller(&self.api, get_database_statistics.as_ref()).await
3021  }
3022
3023  pub async fn get_deep_link_info<C: AsRef<GetDeepLinkInfo>>(
3024    &self,
3025    get_deep_link_info: C,
3026  ) -> RTDResult<DeepLinkInfo> {
3027    async_caller!(DeepLinkInfo);
3028    async_caller(&self.api, get_deep_link_info.as_ref()).await
3029  }
3030
3031  pub async fn get_default_background_custom_emoji_stickers<
3032    C: AsRef<GetDefaultBackgroundCustomEmojiStickers>,
3033  >(
3034    &self,
3035    get_default_background_custom_emoji_stickers: C,
3036  ) -> RTDResult<Stickers> {
3037    async_caller!(Stickers);
3038    async_caller(
3039      &self.api,
3040      get_default_background_custom_emoji_stickers.as_ref(),
3041    )
3042    .await
3043  }
3044
3045  pub async fn get_default_chat_emoji_statuses<C: AsRef<GetDefaultChatEmojiStatuses>>(
3046    &self,
3047    get_default_chat_emoji_statuses: C,
3048  ) -> RTDResult<EmojiStatusCustomEmojis> {
3049    async_caller!(EmojiStatusCustomEmojis);
3050    async_caller(&self.api, get_default_chat_emoji_statuses.as_ref()).await
3051  }
3052
3053  pub async fn get_default_chat_photo_custom_emoji_stickers<
3054    C: AsRef<GetDefaultChatPhotoCustomEmojiStickers>,
3055  >(
3056    &self,
3057    get_default_chat_photo_custom_emoji_stickers: C,
3058  ) -> RTDResult<Stickers> {
3059    async_caller!(Stickers);
3060    async_caller(
3061      &self.api,
3062      get_default_chat_photo_custom_emoji_stickers.as_ref(),
3063    )
3064    .await
3065  }
3066
3067  pub async fn get_default_emoji_statuses<C: AsRef<GetDefaultEmojiStatuses>>(
3068    &self,
3069    get_default_emoji_statuses: C,
3070  ) -> RTDResult<EmojiStatusCustomEmojis> {
3071    async_caller!(EmojiStatusCustomEmojis);
3072    async_caller(&self.api, get_default_emoji_statuses.as_ref()).await
3073  }
3074
3075  pub async fn get_default_message_auto_delete_time<C: AsRef<GetDefaultMessageAutoDeleteTime>>(
3076    &self,
3077    get_default_message_auto_delete_time: C,
3078  ) -> RTDResult<MessageAutoDeleteTime> {
3079    async_caller!(MessageAutoDeleteTime);
3080    async_caller(&self.api, get_default_message_auto_delete_time.as_ref()).await
3081  }
3082
3083  pub async fn get_default_profile_photo_custom_emoji_stickers<
3084    C: AsRef<GetDefaultProfilePhotoCustomEmojiStickers>,
3085  >(
3086    &self,
3087    get_default_profile_photo_custom_emoji_stickers: C,
3088  ) -> RTDResult<Stickers> {
3089    async_caller!(Stickers);
3090    async_caller(
3091      &self.api,
3092      get_default_profile_photo_custom_emoji_stickers.as_ref(),
3093    )
3094    .await
3095  }
3096
3097  pub async fn get_direct_messages_chat_topic<C: AsRef<GetDirectMessagesChatTopic>>(
3098    &self,
3099    get_direct_messages_chat_topic: C,
3100  ) -> RTDResult<DirectMessagesChatTopic> {
3101    async_caller!(DirectMessagesChatTopic);
3102    async_caller(&self.api, get_direct_messages_chat_topic.as_ref()).await
3103  }
3104
3105  pub async fn get_direct_messages_chat_topic_history<
3106    C: AsRef<GetDirectMessagesChatTopicHistory>,
3107  >(
3108    &self,
3109    get_direct_messages_chat_topic_history: C,
3110  ) -> RTDResult<Messages> {
3111    async_caller!(Messages);
3112    async_caller(&self.api, get_direct_messages_chat_topic_history.as_ref()).await
3113  }
3114
3115  pub async fn get_direct_messages_chat_topic_message_by_date<
3116    C: AsRef<GetDirectMessagesChatTopicMessageByDate>,
3117  >(
3118    &self,
3119    get_direct_messages_chat_topic_message_by_date: C,
3120  ) -> RTDResult<Message> {
3121    async_caller!(Message);
3122    async_caller(
3123      &self.api,
3124      get_direct_messages_chat_topic_message_by_date.as_ref(),
3125    )
3126    .await
3127  }
3128
3129  pub async fn get_direct_messages_chat_topic_revenue<
3130    C: AsRef<GetDirectMessagesChatTopicRevenue>,
3131  >(
3132    &self,
3133    get_direct_messages_chat_topic_revenue: C,
3134  ) -> RTDResult<StarCount> {
3135    async_caller!(StarCount);
3136    async_caller(&self.api, get_direct_messages_chat_topic_revenue.as_ref()).await
3137  }
3138
3139  pub async fn get_disallowed_chat_emoji_statuses<C: AsRef<GetDisallowedChatEmojiStatuses>>(
3140    &self,
3141    get_disallowed_chat_emoji_statuses: C,
3142  ) -> RTDResult<EmojiStatusCustomEmojis> {
3143    async_caller!(EmojiStatusCustomEmojis);
3144    async_caller(&self.api, get_disallowed_chat_emoji_statuses.as_ref()).await
3145  }
3146
3147  pub async fn get_emoji_categories<C: AsRef<GetEmojiCategories>>(
3148    &self,
3149    get_emoji_categories: C,
3150  ) -> RTDResult<EmojiCategories> {
3151    async_caller!(EmojiCategories);
3152    async_caller(&self.api, get_emoji_categories.as_ref()).await
3153  }
3154
3155  pub async fn get_emoji_reaction<C: AsRef<GetEmojiReaction>>(
3156    &self,
3157    get_emoji_reaction: C,
3158  ) -> RTDResult<EmojiReaction> {
3159    async_caller!(EmojiReaction);
3160    async_caller(&self.api, get_emoji_reaction.as_ref()).await
3161  }
3162
3163  pub async fn get_emoji_suggestions_url<C: AsRef<GetEmojiSuggestionsUrl>>(
3164    &self,
3165    get_emoji_suggestions_url: C,
3166  ) -> RTDResult<HttpUrl> {
3167    async_caller!(HttpUrl);
3168    async_caller(&self.api, get_emoji_suggestions_url.as_ref()).await
3169  }
3170
3171  pub async fn get_external_link<C: AsRef<GetExternalLink>>(
3172    &self,
3173    get_external_link: C,
3174  ) -> RTDResult<HttpUrl> {
3175    async_caller!(HttpUrl);
3176    async_caller(&self.api, get_external_link.as_ref()).await
3177  }
3178
3179  pub async fn get_external_link_info<C: AsRef<GetExternalLinkInfo>>(
3180    &self,
3181    get_external_link_info: C,
3182  ) -> RTDResult<LoginUrlInfo> {
3183    async_caller!(LoginUrlInfo);
3184    async_caller(&self.api, get_external_link_info.as_ref()).await
3185  }
3186
3187  pub async fn get_favorite_stickers<C: AsRef<GetFavoriteStickers>>(
3188    &self,
3189    get_favorite_stickers: C,
3190  ) -> RTDResult<Stickers> {
3191    async_caller!(Stickers);
3192    async_caller(&self.api, get_favorite_stickers.as_ref()).await
3193  }
3194
3195  pub async fn get_file<C: AsRef<GetFile>>(&self, get_file: C) -> RTDResult<File> {
3196    async_caller!(File);
3197    async_caller(&self.api, get_file.as_ref()).await
3198  }
3199
3200  pub async fn get_file_downloaded_prefix_size<C: AsRef<GetFileDownloadedPrefixSize>>(
3201    &self,
3202    get_file_downloaded_prefix_size: C,
3203  ) -> RTDResult<FileDownloadedPrefixSize> {
3204    async_caller!(FileDownloadedPrefixSize);
3205    async_caller(&self.api, get_file_downloaded_prefix_size.as_ref()).await
3206  }
3207
3208  pub async fn get_file_extension<C: AsRef<GetFileExtension>>(
3209    &self,
3210    get_file_extension: C,
3211  ) -> RTDResult<Text> {
3212    async_caller!(Text);
3213    async_caller(&self.api, get_file_extension.as_ref()).await
3214  }
3215
3216  pub async fn get_file_mime_type<C: AsRef<GetFileMimeType>>(
3217    &self,
3218    get_file_mime_type: C,
3219  ) -> RTDResult<Text> {
3220    async_caller!(Text);
3221    async_caller(&self.api, get_file_mime_type.as_ref()).await
3222  }
3223
3224  pub async fn get_forum_topic<C: AsRef<GetForumTopic>>(
3225    &self,
3226    get_forum_topic: C,
3227  ) -> RTDResult<ForumTopic> {
3228    async_caller!(ForumTopic);
3229    async_caller(&self.api, get_forum_topic.as_ref()).await
3230  }
3231
3232  pub async fn get_forum_topic_default_icons<C: AsRef<GetForumTopicDefaultIcons>>(
3233    &self,
3234    get_forum_topic_default_icons: C,
3235  ) -> RTDResult<Stickers> {
3236    async_caller!(Stickers);
3237    async_caller(&self.api, get_forum_topic_default_icons.as_ref()).await
3238  }
3239
3240  pub async fn get_forum_topic_history<C: AsRef<GetForumTopicHistory>>(
3241    &self,
3242    get_forum_topic_history: C,
3243  ) -> RTDResult<Messages> {
3244    async_caller!(Messages);
3245    async_caller(&self.api, get_forum_topic_history.as_ref()).await
3246  }
3247
3248  pub async fn get_forum_topic_link<C: AsRef<GetForumTopicLink>>(
3249    &self,
3250    get_forum_topic_link: C,
3251  ) -> RTDResult<MessageLink> {
3252    async_caller!(MessageLink);
3253    async_caller(&self.api, get_forum_topic_link.as_ref()).await
3254  }
3255
3256  pub async fn get_forum_topics<C: AsRef<GetForumTopics>>(
3257    &self,
3258    get_forum_topics: C,
3259  ) -> RTDResult<ForumTopics> {
3260    async_caller!(ForumTopics);
3261    async_caller(&self.api, get_forum_topics.as_ref()).await
3262  }
3263
3264  pub async fn get_full_rich_message<C: AsRef<GetFullRichMessage>>(
3265    &self,
3266    get_full_rich_message: C,
3267  ) -> RTDResult<RichMessage> {
3268    async_caller!(RichMessage);
3269    async_caller(&self.api, get_full_rich_message.as_ref()).await
3270  }
3271
3272  pub async fn get_game_high_scores<C: AsRef<GetGameHighScores>>(
3273    &self,
3274    get_game_high_scores: C,
3275  ) -> RTDResult<GameHighScores> {
3276    async_caller!(GameHighScores);
3277    async_caller(&self.api, get_game_high_scores.as_ref()).await
3278  }
3279
3280  pub async fn get_gift_auction_acquired_gifts<C: AsRef<GetGiftAuctionAcquiredGifts>>(
3281    &self,
3282    get_gift_auction_acquired_gifts: C,
3283  ) -> RTDResult<GiftAuctionAcquiredGifts> {
3284    async_caller!(GiftAuctionAcquiredGifts);
3285    async_caller(&self.api, get_gift_auction_acquired_gifts.as_ref()).await
3286  }
3287
3288  pub async fn get_gift_auction_state<C: AsRef<GetGiftAuctionState>>(
3289    &self,
3290    get_gift_auction_state: C,
3291  ) -> RTDResult<GiftAuctionState> {
3292    async_caller!(GiftAuctionState);
3293    async_caller(&self.api, get_gift_auction_state.as_ref()).await
3294  }
3295
3296  pub async fn get_gift_chat_themes<C: AsRef<GetGiftChatThemes>>(
3297    &self,
3298    get_gift_chat_themes: C,
3299  ) -> RTDResult<GiftChatThemes> {
3300    async_caller!(GiftChatThemes);
3301    async_caller(&self.api, get_gift_chat_themes.as_ref()).await
3302  }
3303
3304  pub async fn get_gift_collections<C: AsRef<GetGiftCollections>>(
3305    &self,
3306    get_gift_collections: C,
3307  ) -> RTDResult<GiftCollections> {
3308    async_caller!(GiftCollections);
3309    async_caller(&self.api, get_gift_collections.as_ref()).await
3310  }
3311
3312  pub async fn get_gift_upgrade_preview<C: AsRef<GetGiftUpgradePreview>>(
3313    &self,
3314    get_gift_upgrade_preview: C,
3315  ) -> RTDResult<GiftUpgradePreview> {
3316    async_caller!(GiftUpgradePreview);
3317    async_caller(&self.api, get_gift_upgrade_preview.as_ref()).await
3318  }
3319
3320  pub async fn get_gifts_for_crafting<C: AsRef<GetGiftsForCrafting>>(
3321    &self,
3322    get_gifts_for_crafting: C,
3323  ) -> RTDResult<GiftsForCrafting> {
3324    async_caller!(GiftsForCrafting);
3325    async_caller(&self.api, get_gifts_for_crafting.as_ref()).await
3326  }
3327
3328  pub async fn get_giveaway_info<C: AsRef<GetGiveawayInfo>>(
3329    &self,
3330    get_giveaway_info: C,
3331  ) -> RTDResult<GiveawayInfo> {
3332    async_caller!(GiveawayInfo);
3333    async_caller(&self.api, get_giveaway_info.as_ref()).await
3334  }
3335
3336  pub async fn get_gram_revenue_statistics<C: AsRef<GetGramRevenueStatistics>>(
3337    &self,
3338    get_gram_revenue_statistics: C,
3339  ) -> RTDResult<GramRevenueStatistics> {
3340    async_caller!(GramRevenueStatistics);
3341    async_caller(&self.api, get_gram_revenue_statistics.as_ref()).await
3342  }
3343
3344  pub async fn get_gram_withdrawal_url<C: AsRef<GetGramWithdrawalUrl>>(
3345    &self,
3346    get_gram_withdrawal_url: C,
3347  ) -> RTDResult<HttpUrl> {
3348    async_caller!(HttpUrl);
3349    async_caller(&self.api, get_gram_withdrawal_url.as_ref()).await
3350  }
3351
3352  pub async fn get_greeting_stickers<C: AsRef<GetGreetingStickers>>(
3353    &self,
3354    get_greeting_stickers: C,
3355  ) -> RTDResult<Stickers> {
3356    async_caller!(Stickers);
3357    async_caller(&self.api, get_greeting_stickers.as_ref()).await
3358  }
3359
3360  pub async fn get_grossing_web_app_bots<C: AsRef<GetGrossingWebAppBots>>(
3361    &self,
3362    get_grossing_web_app_bots: C,
3363  ) -> RTDResult<FoundUsers> {
3364    async_caller!(FoundUsers);
3365    async_caller(&self.api, get_grossing_web_app_bots.as_ref()).await
3366  }
3367
3368  pub async fn get_group_call<C: AsRef<GetGroupCall>>(
3369    &self,
3370    get_group_call: C,
3371  ) -> RTDResult<GroupCall> {
3372    async_caller!(GroupCall);
3373    async_caller(&self.api, get_group_call.as_ref()).await
3374  }
3375
3376  pub async fn get_group_call_participants<C: AsRef<GetGroupCallParticipants>>(
3377    &self,
3378    get_group_call_participants: C,
3379  ) -> RTDResult<GroupCallParticipants> {
3380    async_caller!(GroupCallParticipants);
3381    async_caller(&self.api, get_group_call_participants.as_ref()).await
3382  }
3383
3384  pub async fn get_group_call_stream_segment<C: AsRef<GetGroupCallStreamSegment>>(
3385    &self,
3386    get_group_call_stream_segment: C,
3387  ) -> RTDResult<Data> {
3388    async_caller!(Data);
3389    async_caller(&self.api, get_group_call_stream_segment.as_ref()).await
3390  }
3391
3392  pub async fn get_group_call_streams<C: AsRef<GetGroupCallStreams>>(
3393    &self,
3394    get_group_call_streams: C,
3395  ) -> RTDResult<GroupCallStreams> {
3396    async_caller!(GroupCallStreams);
3397    async_caller(&self.api, get_group_call_streams.as_ref()).await
3398  }
3399
3400  pub async fn get_groups_in_common<C: AsRef<GetGroupsInCommon>>(
3401    &self,
3402    get_groups_in_common: C,
3403  ) -> RTDResult<Chats> {
3404    async_caller!(Chats);
3405    async_caller(&self.api, get_groups_in_common.as_ref()).await
3406  }
3407
3408  pub async fn get_guard_bot_web_app_url<C: AsRef<GetGuardBotWebAppUrl>>(
3409    &self,
3410    get_guard_bot_web_app_url: C,
3411  ) -> RTDResult<WebAppUrl> {
3412    async_caller!(WebAppUrl);
3413    async_caller(&self.api, get_guard_bot_web_app_url.as_ref()).await
3414  }
3415
3416  pub async fn get_imported_contact_count<C: AsRef<GetImportedContactCount>>(
3417    &self,
3418    get_imported_contact_count: C,
3419  ) -> RTDResult<Count> {
3420    async_caller!(Count);
3421    async_caller(&self.api, get_imported_contact_count.as_ref()).await
3422  }
3423
3424  pub async fn get_inactive_supergroup_chats<C: AsRef<GetInactiveSupergroupChats>>(
3425    &self,
3426    get_inactive_supergroup_chats: C,
3427  ) -> RTDResult<Chats> {
3428    async_caller!(Chats);
3429    async_caller(&self.api, get_inactive_supergroup_chats.as_ref()).await
3430  }
3431
3432  pub async fn get_inline_game_high_scores<C: AsRef<GetInlineGameHighScores>>(
3433    &self,
3434    get_inline_game_high_scores: C,
3435  ) -> RTDResult<GameHighScores> {
3436    async_caller!(GameHighScores);
3437    async_caller(&self.api, get_inline_game_high_scores.as_ref()).await
3438  }
3439
3440  pub async fn get_inline_query_results<C: AsRef<GetInlineQueryResults>>(
3441    &self,
3442    get_inline_query_results: C,
3443  ) -> RTDResult<InlineQueryResults> {
3444    async_caller!(InlineQueryResults);
3445    async_caller(&self.api, get_inline_query_results.as_ref()).await
3446  }
3447
3448  pub async fn get_installed_backgrounds<C: AsRef<GetInstalledBackgrounds>>(
3449    &self,
3450    get_installed_backgrounds: C,
3451  ) -> RTDResult<Backgrounds> {
3452    async_caller!(Backgrounds);
3453    async_caller(&self.api, get_installed_backgrounds.as_ref()).await
3454  }
3455
3456  pub async fn get_installed_sticker_sets<C: AsRef<GetInstalledStickerSets>>(
3457    &self,
3458    get_installed_sticker_sets: C,
3459  ) -> RTDResult<StickerSets> {
3460    async_caller!(StickerSets);
3461    async_caller(&self.api, get_installed_sticker_sets.as_ref()).await
3462  }
3463
3464  pub async fn get_internal_link<C: AsRef<GetInternalLink>>(
3465    &self,
3466    get_internal_link: C,
3467  ) -> RTDResult<HttpUrl> {
3468    async_caller!(HttpUrl);
3469    async_caller(&self.api, get_internal_link.as_ref()).await
3470  }
3471
3472  pub async fn get_internal_link_type<C: AsRef<GetInternalLinkType>>(
3473    &self,
3474    get_internal_link_type: C,
3475  ) -> RTDResult<InternalLinkType> {
3476    async_caller!(InternalLinkType);
3477    async_caller(&self.api, get_internal_link_type.as_ref()).await
3478  }
3479
3480  pub async fn get_json_string<C: AsRef<GetJsonString>>(
3481    &self,
3482    get_json_string: C,
3483  ) -> RTDResult<Text> {
3484    async_caller!(Text);
3485    async_caller(&self.api, get_json_string.as_ref()).await
3486  }
3487
3488  pub async fn get_json_value<C: AsRef<GetJsonValue>>(
3489    &self,
3490    get_json_value: C,
3491  ) -> RTDResult<JsonValue> {
3492    async_caller!(JsonValue);
3493    async_caller(&self.api, get_json_value.as_ref()).await
3494  }
3495
3496  pub async fn get_keyword_emojis<C: AsRef<GetKeywordEmojis>>(
3497    &self,
3498    get_keyword_emojis: C,
3499  ) -> RTDResult<Emojis> {
3500    async_caller!(Emojis);
3501    async_caller(&self.api, get_keyword_emojis.as_ref()).await
3502  }
3503
3504  pub async fn get_language_pack_info<C: AsRef<GetLanguagePackInfo>>(
3505    &self,
3506    get_language_pack_info: C,
3507  ) -> RTDResult<LanguagePackInfo> {
3508    async_caller!(LanguagePackInfo);
3509    async_caller(&self.api, get_language_pack_info.as_ref()).await
3510  }
3511
3512  pub async fn get_language_pack_string<C: AsRef<GetLanguagePackString>>(
3513    &self,
3514    get_language_pack_string: C,
3515  ) -> RTDResult<LanguagePackStringValue> {
3516    async_caller!(LanguagePackStringValue);
3517    async_caller(&self.api, get_language_pack_string.as_ref()).await
3518  }
3519
3520  pub async fn get_language_pack_strings<C: AsRef<GetLanguagePackStrings>>(
3521    &self,
3522    get_language_pack_strings: C,
3523  ) -> RTDResult<LanguagePackStrings> {
3524    async_caller!(LanguagePackStrings);
3525    async_caller(&self.api, get_language_pack_strings.as_ref()).await
3526  }
3527
3528  pub async fn get_link_preview<C: AsRef<GetLinkPreview>>(
3529    &self,
3530    get_link_preview: C,
3531  ) -> RTDResult<LinkPreview> {
3532    async_caller!(LinkPreview);
3533    async_caller(&self.api, get_link_preview.as_ref()).await
3534  }
3535
3536  pub async fn get_link_web_browser_type<C: AsRef<GetLinkWebBrowserType>>(
3537    &self,
3538    get_link_web_browser_type: C,
3539  ) -> RTDResult<WebBrowserType> {
3540    async_caller!(WebBrowserType);
3541    async_caller(&self.api, get_link_web_browser_type.as_ref()).await
3542  }
3543
3544  pub async fn get_live_story_available_message_senders<
3545    C: AsRef<GetLiveStoryAvailableMessageSenders>,
3546  >(
3547    &self,
3548    get_live_story_available_message_senders: C,
3549  ) -> RTDResult<ChatMessageSenders> {
3550    async_caller!(ChatMessageSenders);
3551    async_caller(&self.api, get_live_story_available_message_senders.as_ref()).await
3552  }
3553
3554  pub async fn get_live_story_rtmp_url<C: AsRef<GetLiveStoryRtmpUrl>>(
3555    &self,
3556    get_live_story_rtmp_url: C,
3557  ) -> RTDResult<RtmpUrl> {
3558    async_caller!(RtmpUrl);
3559    async_caller(&self.api, get_live_story_rtmp_url.as_ref()).await
3560  }
3561
3562  pub async fn get_live_story_streamer<C: AsRef<GetLiveStoryStreamer>>(
3563    &self,
3564    get_live_story_streamer: C,
3565  ) -> RTDResult<GroupCallParticipant> {
3566    async_caller!(GroupCallParticipant);
3567    async_caller(&self.api, get_live_story_streamer.as_ref()).await
3568  }
3569
3570  pub async fn get_live_story_top_donors<C: AsRef<GetLiveStoryTopDonors>>(
3571    &self,
3572    get_live_story_top_donors: C,
3573  ) -> RTDResult<LiveStoryDonors> {
3574    async_caller!(LiveStoryDonors);
3575    async_caller(&self.api, get_live_story_top_donors.as_ref()).await
3576  }
3577
3578  pub async fn get_localization_target_info<C: AsRef<GetLocalizationTargetInfo>>(
3579    &self,
3580    get_localization_target_info: C,
3581  ) -> RTDResult<LocalizationTargetInfo> {
3582    async_caller!(LocalizationTargetInfo);
3583    async_caller(&self.api, get_localization_target_info.as_ref()).await
3584  }
3585
3586  pub async fn get_log_stream<C: AsRef<GetLogStream>>(
3587    &self,
3588    get_log_stream: C,
3589  ) -> RTDResult<LogStream> {
3590    async_caller!(LogStream);
3591    async_caller(&self.api, get_log_stream.as_ref()).await
3592  }
3593
3594  pub async fn get_log_tag_verbosity_level<C: AsRef<GetLogTagVerbosityLevel>>(
3595    &self,
3596    get_log_tag_verbosity_level: C,
3597  ) -> RTDResult<LogVerbosityLevel> {
3598    async_caller!(LogVerbosityLevel);
3599    async_caller(&self.api, get_log_tag_verbosity_level.as_ref()).await
3600  }
3601
3602  pub async fn get_log_tags<C: AsRef<GetLogTags>>(&self, get_log_tags: C) -> RTDResult<LogTags> {
3603    async_caller!(LogTags);
3604    async_caller(&self.api, get_log_tags.as_ref()).await
3605  }
3606
3607  pub async fn get_log_verbosity_level<C: AsRef<GetLogVerbosityLevel>>(
3608    &self,
3609    get_log_verbosity_level: C,
3610  ) -> RTDResult<LogVerbosityLevel> {
3611    async_caller!(LogVerbosityLevel);
3612    async_caller(&self.api, get_log_verbosity_level.as_ref()).await
3613  }
3614
3615  pub async fn get_login_passkeys<C: AsRef<GetLoginPasskeys>>(
3616    &self,
3617    get_login_passkeys: C,
3618  ) -> RTDResult<Passkeys> {
3619    async_caller!(Passkeys);
3620    async_caller(&self.api, get_login_passkeys.as_ref()).await
3621  }
3622
3623  pub async fn get_login_url<C: AsRef<GetLoginUrl>>(&self, get_login_url: C) -> RTDResult<HttpUrl> {
3624    async_caller!(HttpUrl);
3625    async_caller(&self.api, get_login_url.as_ref()).await
3626  }
3627
3628  pub async fn get_login_url_info<C: AsRef<GetLoginUrlInfo>>(
3629    &self,
3630    get_login_url_info: C,
3631  ) -> RTDResult<LoginUrlInfo> {
3632    async_caller!(LoginUrlInfo);
3633    async_caller(&self.api, get_login_url_info.as_ref()).await
3634  }
3635
3636  pub async fn get_main_web_app<C: AsRef<GetMainWebApp>>(
3637    &self,
3638    get_main_web_app: C,
3639  ) -> RTDResult<MainWebApp> {
3640    async_caller!(MainWebApp);
3641    async_caller(&self.api, get_main_web_app.as_ref()).await
3642  }
3643
3644  pub async fn get_managed_bot_access_settings<C: AsRef<GetManagedBotAccessSettings>>(
3645    &self,
3646    get_managed_bot_access_settings: C,
3647  ) -> RTDResult<BotAccessSettings> {
3648    async_caller!(BotAccessSettings);
3649    async_caller(&self.api, get_managed_bot_access_settings.as_ref()).await
3650  }
3651
3652  pub async fn get_managed_bot_token<C: AsRef<GetManagedBotToken>>(
3653    &self,
3654    get_managed_bot_token: C,
3655  ) -> RTDResult<Text> {
3656    async_caller!(Text);
3657    async_caller(&self.api, get_managed_bot_token.as_ref()).await
3658  }
3659
3660  pub async fn get_map_thumbnail_file<C: AsRef<GetMapThumbnailFile>>(
3661    &self,
3662    get_map_thumbnail_file: C,
3663  ) -> RTDResult<File> {
3664    async_caller!(File);
3665    async_caller(&self.api, get_map_thumbnail_file.as_ref()).await
3666  }
3667
3668  pub async fn get_markdown_text<C: AsRef<GetMarkdownText>>(
3669    &self,
3670    get_markdown_text: C,
3671  ) -> RTDResult<FormattedText> {
3672    async_caller!(FormattedText);
3673    async_caller(&self.api, get_markdown_text.as_ref()).await
3674  }
3675
3676  pub async fn get_me<C: AsRef<GetMe>>(&self, get_me: C) -> RTDResult<User> {
3677    async_caller!(User);
3678    async_caller(&self.api, get_me.as_ref()).await
3679  }
3680
3681  pub async fn get_menu_button<C: AsRef<GetMenuButton>>(
3682    &self,
3683    get_menu_button: C,
3684  ) -> RTDResult<BotMenuButton> {
3685    async_caller!(BotMenuButton);
3686    async_caller(&self.api, get_menu_button.as_ref()).await
3687  }
3688
3689  pub async fn get_message<C: AsRef<GetMessage>>(&self, get_message: C) -> RTDResult<Message> {
3690    async_caller!(Message);
3691    async_caller(&self.api, get_message.as_ref()).await
3692  }
3693
3694  pub async fn get_message_added_reactions<C: AsRef<GetMessageAddedReactions>>(
3695    &self,
3696    get_message_added_reactions: C,
3697  ) -> RTDResult<AddedReactions> {
3698    async_caller!(AddedReactions);
3699    async_caller(&self.api, get_message_added_reactions.as_ref()).await
3700  }
3701
3702  pub async fn get_message_author<C: AsRef<GetMessageAuthor>>(
3703    &self,
3704    get_message_author: C,
3705  ) -> RTDResult<User> {
3706    async_caller!(User);
3707    async_caller(&self.api, get_message_author.as_ref()).await
3708  }
3709
3710  pub async fn get_message_available_reactions<C: AsRef<GetMessageAvailableReactions>>(
3711    &self,
3712    get_message_available_reactions: C,
3713  ) -> RTDResult<AvailableReactions> {
3714    async_caller!(AvailableReactions);
3715    async_caller(&self.api, get_message_available_reactions.as_ref()).await
3716  }
3717
3718  pub async fn get_message_effect<C: AsRef<GetMessageEffect>>(
3719    &self,
3720    get_message_effect: C,
3721  ) -> RTDResult<MessageEffect> {
3722    async_caller!(MessageEffect);
3723    async_caller(&self.api, get_message_effect.as_ref()).await
3724  }
3725
3726  pub async fn get_message_embedding_code<C: AsRef<GetMessageEmbeddingCode>>(
3727    &self,
3728    get_message_embedding_code: C,
3729  ) -> RTDResult<Text> {
3730    async_caller!(Text);
3731    async_caller(&self.api, get_message_embedding_code.as_ref()).await
3732  }
3733
3734  pub async fn get_message_file_type<C: AsRef<GetMessageFileType>>(
3735    &self,
3736    get_message_file_type: C,
3737  ) -> RTDResult<MessageFileType> {
3738    async_caller!(MessageFileType);
3739    async_caller(&self.api, get_message_file_type.as_ref()).await
3740  }
3741
3742  pub async fn get_message_import_confirmation_text<C: AsRef<GetMessageImportConfirmationText>>(
3743    &self,
3744    get_message_import_confirmation_text: C,
3745  ) -> RTDResult<Text> {
3746    async_caller!(Text);
3747    async_caller(&self.api, get_message_import_confirmation_text.as_ref()).await
3748  }
3749
3750  pub async fn get_message_link<C: AsRef<GetMessageLink>>(
3751    &self,
3752    get_message_link: C,
3753  ) -> RTDResult<MessageLink> {
3754    async_caller!(MessageLink);
3755    async_caller(&self.api, get_message_link.as_ref()).await
3756  }
3757
3758  pub async fn get_message_link_info<C: AsRef<GetMessageLinkInfo>>(
3759    &self,
3760    get_message_link_info: C,
3761  ) -> RTDResult<MessageLinkInfo> {
3762    async_caller!(MessageLinkInfo);
3763    async_caller(&self.api, get_message_link_info.as_ref()).await
3764  }
3765
3766  pub async fn get_message_locally<C: AsRef<GetMessageLocally>>(
3767    &self,
3768    get_message_locally: C,
3769  ) -> RTDResult<Message> {
3770    async_caller!(Message);
3771    async_caller(&self.api, get_message_locally.as_ref()).await
3772  }
3773
3774  pub async fn get_message_properties<C: AsRef<GetMessageProperties>>(
3775    &self,
3776    get_message_properties: C,
3777  ) -> RTDResult<MessageProperties> {
3778    async_caller!(MessageProperties);
3779    async_caller(&self.api, get_message_properties.as_ref()).await
3780  }
3781
3782  pub async fn get_message_public_forwards<C: AsRef<GetMessagePublicForwards>>(
3783    &self,
3784    get_message_public_forwards: C,
3785  ) -> RTDResult<PublicForwards> {
3786    async_caller!(PublicForwards);
3787    async_caller(&self.api, get_message_public_forwards.as_ref()).await
3788  }
3789
3790  pub async fn get_message_read_date<C: AsRef<GetMessageReadDate>>(
3791    &self,
3792    get_message_read_date: C,
3793  ) -> RTDResult<MessageReadDate> {
3794    async_caller!(MessageReadDate);
3795    async_caller(&self.api, get_message_read_date.as_ref()).await
3796  }
3797
3798  pub async fn get_message_statistics<C: AsRef<GetMessageStatistics>>(
3799    &self,
3800    get_message_statistics: C,
3801  ) -> RTDResult<MessageStatistics> {
3802    async_caller!(MessageStatistics);
3803    async_caller(&self.api, get_message_statistics.as_ref()).await
3804  }
3805
3806  pub async fn get_message_thread<C: AsRef<GetMessageThread>>(
3807    &self,
3808    get_message_thread: C,
3809  ) -> RTDResult<MessageThreadInfo> {
3810    async_caller!(MessageThreadInfo);
3811    async_caller(&self.api, get_message_thread.as_ref()).await
3812  }
3813
3814  pub async fn get_message_thread_history<C: AsRef<GetMessageThreadHistory>>(
3815    &self,
3816    get_message_thread_history: C,
3817  ) -> RTDResult<Messages> {
3818    async_caller!(Messages);
3819    async_caller(&self.api, get_message_thread_history.as_ref()).await
3820  }
3821
3822  pub async fn get_message_viewers<C: AsRef<GetMessageViewers>>(
3823    &self,
3824    get_message_viewers: C,
3825  ) -> RTDResult<MessageViewers> {
3826    async_caller!(MessageViewers);
3827    async_caller(&self.api, get_message_viewers.as_ref()).await
3828  }
3829
3830  pub async fn get_messages<C: AsRef<GetMessages>>(&self, get_messages: C) -> RTDResult<Messages> {
3831    async_caller!(Messages);
3832    async_caller(&self.api, get_messages.as_ref()).await
3833  }
3834
3835  pub async fn get_network_statistics<C: AsRef<GetNetworkStatistics>>(
3836    &self,
3837    get_network_statistics: C,
3838  ) -> RTDResult<NetworkStatistics> {
3839    async_caller!(NetworkStatistics);
3840    async_caller(&self.api, get_network_statistics.as_ref()).await
3841  }
3842
3843  pub async fn get_new_chat_privacy_settings<C: AsRef<GetNewChatPrivacySettings>>(
3844    &self,
3845    get_new_chat_privacy_settings: C,
3846  ) -> RTDResult<NewChatPrivacySettings> {
3847    async_caller!(NewChatPrivacySettings);
3848    async_caller(&self.api, get_new_chat_privacy_settings.as_ref()).await
3849  }
3850
3851  pub async fn get_oauth_link_info<C: AsRef<GetOauthLinkInfo>>(
3852    &self,
3853    get_oauth_link_info: C,
3854  ) -> RTDResult<OauthLinkInfo> {
3855    async_caller!(OauthLinkInfo);
3856    async_caller(&self.api, get_oauth_link_info.as_ref()).await
3857  }
3858
3859  pub async fn get_on_ramp_payment_availability<C: AsRef<GetOnRampPaymentAvailability>>(
3860    &self,
3861    get_on_ramp_payment_availability: C,
3862  ) -> RTDResult<OnRampPaymentAvailability> {
3863    async_caller!(OnRampPaymentAvailability);
3864    async_caller(&self.api, get_on_ramp_payment_availability.as_ref()).await
3865  }
3866
3867  pub async fn get_on_ramp_payment_limits<C: AsRef<GetOnRampPaymentLimits>>(
3868    &self,
3869    get_on_ramp_payment_limits: C,
3870  ) -> RTDResult<OnRampPaymentLimits> {
3871    async_caller!(OnRampPaymentLimits);
3872    async_caller(&self.api, get_on_ramp_payment_limits.as_ref()).await
3873  }
3874
3875  pub async fn get_on_ramp_payment_quote<C: AsRef<GetOnRampPaymentQuote>>(
3876    &self,
3877    get_on_ramp_payment_quote: C,
3878  ) -> RTDResult<OnRampPaymentQuote> {
3879    async_caller!(OnRampPaymentQuote);
3880    async_caller(&self.api, get_on_ramp_payment_quote.as_ref()).await
3881  }
3882
3883  pub async fn get_on_ramp_provider_base_currencies<C: AsRef<GetOnRampProviderBaseCurrencies>>(
3884    &self,
3885    get_on_ramp_provider_base_currencies: C,
3886  ) -> RTDResult<Currencies> {
3887    async_caller!(Currencies);
3888    async_caller(&self.api, get_on_ramp_provider_base_currencies.as_ref()).await
3889  }
3890
3891  pub async fn get_on_ramp_providers<C: AsRef<GetOnRampProviders>>(
3892    &self,
3893    get_on_ramp_providers: C,
3894  ) -> RTDResult<OnRampProviders> {
3895    async_caller!(OnRampProviders);
3896    async_caller(&self.api, get_on_ramp_providers.as_ref()).await
3897  }
3898
3899  pub async fn get_option<C: AsRef<GetOption>>(&self, get_option: C) -> RTDResult<OptionValue> {
3900    async_caller!(OptionValue);
3901    async_caller(&self.api, get_option.as_ref()).await
3902  }
3903
3904  pub async fn get_owned_bots<C: AsRef<GetOwnedBots>>(
3905    &self,
3906    get_owned_bots: C,
3907  ) -> RTDResult<Users> {
3908    async_caller!(Users);
3909    async_caller(&self.api, get_owned_bots.as_ref()).await
3910  }
3911
3912  pub async fn get_owned_sticker_sets<C: AsRef<GetOwnedStickerSets>>(
3913    &self,
3914    get_owned_sticker_sets: C,
3915  ) -> RTDResult<StickerSets> {
3916    async_caller!(StickerSets);
3917    async_caller(&self.api, get_owned_sticker_sets.as_ref()).await
3918  }
3919
3920  pub async fn get_paid_message_revenue<C: AsRef<GetPaidMessageRevenue>>(
3921    &self,
3922    get_paid_message_revenue: C,
3923  ) -> RTDResult<StarCount> {
3924    async_caller!(StarCount);
3925    async_caller(&self.api, get_paid_message_revenue.as_ref()).await
3926  }
3927
3928  pub async fn get_passkey_parameters<C: AsRef<GetPasskeyParameters>>(
3929    &self,
3930    get_passkey_parameters: C,
3931  ) -> RTDResult<Text> {
3932    async_caller!(Text);
3933    async_caller(&self.api, get_passkey_parameters.as_ref()).await
3934  }
3935
3936  pub async fn get_passport_authorization_form<C: AsRef<GetPassportAuthorizationForm>>(
3937    &self,
3938    get_passport_authorization_form: C,
3939  ) -> RTDResult<PassportAuthorizationForm> {
3940    async_caller!(PassportAuthorizationForm);
3941    async_caller(&self.api, get_passport_authorization_form.as_ref()).await
3942  }
3943
3944  pub async fn get_passport_authorization_form_available_elements<
3945    C: AsRef<GetPassportAuthorizationFormAvailableElements>,
3946  >(
3947    &self,
3948    get_passport_authorization_form_available_elements: C,
3949  ) -> RTDResult<PassportElementsWithErrors> {
3950    async_caller!(PassportElementsWithErrors);
3951    async_caller(
3952      &self.api,
3953      get_passport_authorization_form_available_elements.as_ref(),
3954    )
3955    .await
3956  }
3957
3958  pub async fn get_passport_element<C: AsRef<GetPassportElement>>(
3959    &self,
3960    get_passport_element: C,
3961  ) -> RTDResult<PassportElement> {
3962    async_caller!(PassportElement);
3963    async_caller(&self.api, get_passport_element.as_ref()).await
3964  }
3965
3966  pub async fn get_password_state<C: AsRef<GetPasswordState>>(
3967    &self,
3968    get_password_state: C,
3969  ) -> RTDResult<PasswordState> {
3970    async_caller!(PasswordState);
3971    async_caller(&self.api, get_password_state.as_ref()).await
3972  }
3973
3974  pub async fn get_payment_form<C: AsRef<GetPaymentForm>>(
3975    &self,
3976    get_payment_form: C,
3977  ) -> RTDResult<PaymentForm> {
3978    async_caller!(PaymentForm);
3979    async_caller(&self.api, get_payment_form.as_ref()).await
3980  }
3981
3982  pub async fn get_payment_receipt<C: AsRef<GetPaymentReceipt>>(
3983    &self,
3984    get_payment_receipt: C,
3985  ) -> RTDResult<PaymentReceipt> {
3986    async_caller!(PaymentReceipt);
3987    async_caller(&self.api, get_payment_receipt.as_ref()).await
3988  }
3989
3990  pub async fn get_personal_chat_history<C: AsRef<GetPersonalChatHistory>>(
3991    &self,
3992    get_personal_chat_history: C,
3993  ) -> RTDResult<Messages> {
3994    async_caller!(Messages);
3995    async_caller(&self.api, get_personal_chat_history.as_ref()).await
3996  }
3997
3998  pub async fn get_phone_number_info<C: AsRef<GetPhoneNumberInfo>>(
3999    &self,
4000    get_phone_number_info: C,
4001  ) -> RTDResult<PhoneNumberInfo> {
4002    async_caller!(PhoneNumberInfo);
4003    async_caller(&self.api, get_phone_number_info.as_ref()).await
4004  }
4005
4006  pub async fn get_phone_number_info_sync<C: AsRef<GetPhoneNumberInfoSync>>(
4007    &self,
4008    get_phone_number_info_sync: C,
4009  ) -> RTDResult<PhoneNumberInfo> {
4010    async_caller!(PhoneNumberInfo);
4011    async_caller(&self.api, get_phone_number_info_sync.as_ref()).await
4012  }
4013
4014  pub async fn get_poll_option_properties<C: AsRef<GetPollOptionProperties>>(
4015    &self,
4016    get_poll_option_properties: C,
4017  ) -> RTDResult<PollOptionProperties> {
4018    async_caller!(PollOptionProperties);
4019    async_caller(&self.api, get_poll_option_properties.as_ref()).await
4020  }
4021
4022  pub async fn get_poll_vote_statistics<C: AsRef<GetPollVoteStatistics>>(
4023    &self,
4024    get_poll_vote_statistics: C,
4025  ) -> RTDResult<PollVoteStatistics> {
4026    async_caller!(PollVoteStatistics);
4027    async_caller(&self.api, get_poll_vote_statistics.as_ref()).await
4028  }
4029
4030  pub async fn get_poll_voters<C: AsRef<GetPollVoters>>(
4031    &self,
4032    get_poll_voters: C,
4033  ) -> RTDResult<PollVoters> {
4034    async_caller!(PollVoters);
4035    async_caller(&self.api, get_poll_voters.as_ref()).await
4036  }
4037
4038  pub async fn get_preferred_country_language<C: AsRef<GetPreferredCountryLanguage>>(
4039    &self,
4040    get_preferred_country_language: C,
4041  ) -> RTDResult<Text> {
4042    async_caller!(Text);
4043    async_caller(&self.api, get_preferred_country_language.as_ref()).await
4044  }
4045
4046  pub async fn get_premium_features<C: AsRef<GetPremiumFeatures>>(
4047    &self,
4048    get_premium_features: C,
4049  ) -> RTDResult<PremiumFeatures> {
4050    async_caller!(PremiumFeatures);
4051    async_caller(&self.api, get_premium_features.as_ref()).await
4052  }
4053
4054  pub async fn get_premium_gift_payment_options<C: AsRef<GetPremiumGiftPaymentOptions>>(
4055    &self,
4056    get_premium_gift_payment_options: C,
4057  ) -> RTDResult<PremiumGiftPaymentOptions> {
4058    async_caller!(PremiumGiftPaymentOptions);
4059    async_caller(&self.api, get_premium_gift_payment_options.as_ref()).await
4060  }
4061
4062  pub async fn get_premium_giveaway_payment_options<C: AsRef<GetPremiumGiveawayPaymentOptions>>(
4063    &self,
4064    get_premium_giveaway_payment_options: C,
4065  ) -> RTDResult<PremiumGiveawayPaymentOptions> {
4066    async_caller!(PremiumGiveawayPaymentOptions);
4067    async_caller(&self.api, get_premium_giveaway_payment_options.as_ref()).await
4068  }
4069
4070  pub async fn get_premium_info_sticker<C: AsRef<GetPremiumInfoSticker>>(
4071    &self,
4072    get_premium_info_sticker: C,
4073  ) -> RTDResult<Sticker> {
4074    async_caller!(Sticker);
4075    async_caller(&self.api, get_premium_info_sticker.as_ref()).await
4076  }
4077
4078  pub async fn get_premium_limit<C: AsRef<GetPremiumLimit>>(
4079    &self,
4080    get_premium_limit: C,
4081  ) -> RTDResult<PremiumLimit> {
4082    async_caller!(PremiumLimit);
4083    async_caller(&self.api, get_premium_limit.as_ref()).await
4084  }
4085
4086  pub async fn get_premium_state<C: AsRef<GetPremiumState>>(
4087    &self,
4088    get_premium_state: C,
4089  ) -> RTDResult<PremiumState> {
4090    async_caller!(PremiumState);
4091    async_caller(&self.api, get_premium_state.as_ref()).await
4092  }
4093
4094  pub async fn get_premium_sticker_examples<C: AsRef<GetPremiumStickerExamples>>(
4095    &self,
4096    get_premium_sticker_examples: C,
4097  ) -> RTDResult<Stickers> {
4098    async_caller!(Stickers);
4099    async_caller(&self.api, get_premium_sticker_examples.as_ref()).await
4100  }
4101
4102  pub async fn get_premium_stickers<C: AsRef<GetPremiumStickers>>(
4103    &self,
4104    get_premium_stickers: C,
4105  ) -> RTDResult<Stickers> {
4106    async_caller!(Stickers);
4107    async_caller(&self.api, get_premium_stickers.as_ref()).await
4108  }
4109
4110  pub async fn get_prepared_inline_message<C: AsRef<GetPreparedInlineMessage>>(
4111    &self,
4112    get_prepared_inline_message: C,
4113  ) -> RTDResult<PreparedInlineMessage> {
4114    async_caller!(PreparedInlineMessage);
4115    async_caller(&self.api, get_prepared_inline_message.as_ref()).await
4116  }
4117
4118  pub async fn get_prepared_keyboard_button<C: AsRef<GetPreparedKeyboardButton>>(
4119    &self,
4120    get_prepared_keyboard_button: C,
4121  ) -> RTDResult<KeyboardButton> {
4122    async_caller!(KeyboardButton);
4123    async_caller(&self.api, get_prepared_keyboard_button.as_ref()).await
4124  }
4125
4126  pub async fn get_profile_share_theme_backdrops<C: AsRef<GetProfileShareThemeBackdrops>>(
4127    &self,
4128    get_profile_share_theme_backdrops: C,
4129  ) -> RTDResult<ProfileShareThemeBackdrops> {
4130    async_caller!(ProfileShareThemeBackdrops);
4131    async_caller(&self.api, get_profile_share_theme_backdrops.as_ref()).await
4132  }
4133
4134  pub async fn get_proxies<C: AsRef<GetProxies>>(&self, get_proxies: C) -> RTDResult<AddedProxies> {
4135    async_caller!(AddedProxies);
4136    async_caller(&self.api, get_proxies.as_ref()).await
4137  }
4138
4139  pub async fn get_public_post_search_limits<C: AsRef<GetPublicPostSearchLimits>>(
4140    &self,
4141    get_public_post_search_limits: C,
4142  ) -> RTDResult<PublicPostSearchLimits> {
4143    async_caller!(PublicPostSearchLimits);
4144    async_caller(&self.api, get_public_post_search_limits.as_ref()).await
4145  }
4146
4147  pub async fn get_push_receiver_id<C: AsRef<GetPushReceiverId>>(
4148    &self,
4149    get_push_receiver_id: C,
4150  ) -> RTDResult<PushReceiverId> {
4151    async_caller!(PushReceiverId);
4152    async_caller(&self.api, get_push_receiver_id.as_ref()).await
4153  }
4154
4155  pub async fn get_read_date_privacy_settings<C: AsRef<GetReadDatePrivacySettings>>(
4156    &self,
4157    get_read_date_privacy_settings: C,
4158  ) -> RTDResult<ReadDatePrivacySettings> {
4159    async_caller!(ReadDatePrivacySettings);
4160    async_caller(&self.api, get_read_date_privacy_settings.as_ref()).await
4161  }
4162
4163  pub async fn get_received_gift<C: AsRef<GetReceivedGift>>(
4164    &self,
4165    get_received_gift: C,
4166  ) -> RTDResult<ReceivedGift> {
4167    async_caller!(ReceivedGift);
4168    async_caller(&self.api, get_received_gift.as_ref()).await
4169  }
4170
4171  pub async fn get_received_gifts<C: AsRef<GetReceivedGifts>>(
4172    &self,
4173    get_received_gifts: C,
4174  ) -> RTDResult<ReceivedGifts> {
4175    async_caller!(ReceivedGifts);
4176    async_caller(&self.api, get_received_gifts.as_ref()).await
4177  }
4178
4179  pub async fn get_recent_emoji_statuses<C: AsRef<GetRecentEmojiStatuses>>(
4180    &self,
4181    get_recent_emoji_statuses: C,
4182  ) -> RTDResult<EmojiStatuses> {
4183    async_caller!(EmojiStatuses);
4184    async_caller(&self.api, get_recent_emoji_statuses.as_ref()).await
4185  }
4186
4187  pub async fn get_recent_inline_bots<C: AsRef<GetRecentInlineBots>>(
4188    &self,
4189    get_recent_inline_bots: C,
4190  ) -> RTDResult<Users> {
4191    async_caller!(Users);
4192    async_caller(&self.api, get_recent_inline_bots.as_ref()).await
4193  }
4194
4195  pub async fn get_recent_stickers<C: AsRef<GetRecentStickers>>(
4196    &self,
4197    get_recent_stickers: C,
4198  ) -> RTDResult<Stickers> {
4199    async_caller!(Stickers);
4200    async_caller(&self.api, get_recent_stickers.as_ref()).await
4201  }
4202
4203  pub async fn get_recently_opened_chats<C: AsRef<GetRecentlyOpenedChats>>(
4204    &self,
4205    get_recently_opened_chats: C,
4206  ) -> RTDResult<Chats> {
4207    async_caller!(Chats);
4208    async_caller(&self.api, get_recently_opened_chats.as_ref()).await
4209  }
4210
4211  pub async fn get_recently_visited_t_me_urls<C: AsRef<GetRecentlyVisitedTMeUrls>>(
4212    &self,
4213    get_recently_visited_t_me_urls: C,
4214  ) -> RTDResult<TMeUrls> {
4215    async_caller!(TMeUrls);
4216    async_caller(&self.api, get_recently_visited_t_me_urls.as_ref()).await
4217  }
4218
4219  pub async fn get_recommended_chat_folders<C: AsRef<GetRecommendedChatFolders>>(
4220    &self,
4221    get_recommended_chat_folders: C,
4222  ) -> RTDResult<RecommendedChatFolders> {
4223    async_caller!(RecommendedChatFolders);
4224    async_caller(&self.api, get_recommended_chat_folders.as_ref()).await
4225  }
4226
4227  pub async fn get_recommended_chats<C: AsRef<GetRecommendedChats>>(
4228    &self,
4229    get_recommended_chats: C,
4230  ) -> RTDResult<Chats> {
4231    async_caller!(Chats);
4232    async_caller(&self.api, get_recommended_chats.as_ref()).await
4233  }
4234
4235  pub async fn get_recovery_email_address<C: AsRef<GetRecoveryEmailAddress>>(
4236    &self,
4237    get_recovery_email_address: C,
4238  ) -> RTDResult<RecoveryEmailAddress> {
4239    async_caller!(RecoveryEmailAddress);
4240    async_caller(&self.api, get_recovery_email_address.as_ref()).await
4241  }
4242
4243  pub async fn get_remote_file<C: AsRef<GetRemoteFile>>(
4244    &self,
4245    get_remote_file: C,
4246  ) -> RTDResult<File> {
4247    async_caller!(File);
4248    async_caller(&self.api, get_remote_file.as_ref()).await
4249  }
4250
4251  pub async fn get_replied_message<C: AsRef<GetRepliedMessage>>(
4252    &self,
4253    get_replied_message: C,
4254  ) -> RTDResult<Message> {
4255    async_caller!(Message);
4256    async_caller(&self.api, get_replied_message.as_ref()).await
4257  }
4258
4259  pub async fn get_saved_animations<C: AsRef<GetSavedAnimations>>(
4260    &self,
4261    get_saved_animations: C,
4262  ) -> RTDResult<Animations> {
4263    async_caller!(Animations);
4264    async_caller(&self.api, get_saved_animations.as_ref()).await
4265  }
4266
4267  pub async fn get_saved_messages_tags<C: AsRef<GetSavedMessagesTags>>(
4268    &self,
4269    get_saved_messages_tags: C,
4270  ) -> RTDResult<SavedMessagesTags> {
4271    async_caller!(SavedMessagesTags);
4272    async_caller(&self.api, get_saved_messages_tags.as_ref()).await
4273  }
4274
4275  pub async fn get_saved_messages_topic_history<C: AsRef<GetSavedMessagesTopicHistory>>(
4276    &self,
4277    get_saved_messages_topic_history: C,
4278  ) -> RTDResult<Messages> {
4279    async_caller!(Messages);
4280    async_caller(&self.api, get_saved_messages_topic_history.as_ref()).await
4281  }
4282
4283  pub async fn get_saved_messages_topic_message_by_date<
4284    C: AsRef<GetSavedMessagesTopicMessageByDate>,
4285  >(
4286    &self,
4287    get_saved_messages_topic_message_by_date: C,
4288  ) -> RTDResult<Message> {
4289    async_caller!(Message);
4290    async_caller(&self.api, get_saved_messages_topic_message_by_date.as_ref()).await
4291  }
4292
4293  pub async fn get_saved_notification_sound<C: AsRef<GetSavedNotificationSound>>(
4294    &self,
4295    get_saved_notification_sound: C,
4296  ) -> RTDResult<NotificationSound> {
4297    async_caller!(NotificationSound);
4298    async_caller(&self.api, get_saved_notification_sound.as_ref()).await
4299  }
4300
4301  pub async fn get_saved_notification_sounds<C: AsRef<GetSavedNotificationSounds>>(
4302    &self,
4303    get_saved_notification_sounds: C,
4304  ) -> RTDResult<NotificationSounds> {
4305    async_caller!(NotificationSounds);
4306    async_caller(&self.api, get_saved_notification_sounds.as_ref()).await
4307  }
4308
4309  pub async fn get_saved_order_info<C: AsRef<GetSavedOrderInfo>>(
4310    &self,
4311    get_saved_order_info: C,
4312  ) -> RTDResult<OrderInfo> {
4313    async_caller!(OrderInfo);
4314    async_caller(&self.api, get_saved_order_info.as_ref()).await
4315  }
4316
4317  pub async fn get_scope_notification_settings<C: AsRef<GetScopeNotificationSettings>>(
4318    &self,
4319    get_scope_notification_settings: C,
4320  ) -> RTDResult<ScopeNotificationSettings> {
4321    async_caller!(ScopeNotificationSettings);
4322    async_caller(&self.api, get_scope_notification_settings.as_ref()).await
4323  }
4324
4325  pub async fn get_search_sponsored_chats<C: AsRef<GetSearchSponsoredChats>>(
4326    &self,
4327    get_search_sponsored_chats: C,
4328  ) -> RTDResult<SponsoredChats> {
4329    async_caller!(SponsoredChats);
4330    async_caller(&self.api, get_search_sponsored_chats.as_ref()).await
4331  }
4332
4333  pub async fn get_searched_for_tags<C: AsRef<GetSearchedForTags>>(
4334    &self,
4335    get_searched_for_tags: C,
4336  ) -> RTDResult<Hashtags> {
4337    async_caller!(Hashtags);
4338    async_caller(&self.api, get_searched_for_tags.as_ref()).await
4339  }
4340
4341  pub async fn get_secret_chat<C: AsRef<GetSecretChat>>(
4342    &self,
4343    get_secret_chat: C,
4344  ) -> RTDResult<SecretChat> {
4345    async_caller!(SecretChat);
4346    async_caller(&self.api, get_secret_chat.as_ref()).await
4347  }
4348
4349  pub async fn get_stake_dice_state<C: AsRef<GetStakeDiceState>>(
4350    &self,
4351    get_stake_dice_state: C,
4352  ) -> RTDResult<StakeDiceState> {
4353    async_caller!(StakeDiceState);
4354    async_caller(&self.api, get_stake_dice_state.as_ref()).await
4355  }
4356
4357  pub async fn get_star_ad_account_url<C: AsRef<GetStarAdAccountUrl>>(
4358    &self,
4359    get_star_ad_account_url: C,
4360  ) -> RTDResult<HttpUrl> {
4361    async_caller!(HttpUrl);
4362    async_caller(&self.api, get_star_ad_account_url.as_ref()).await
4363  }
4364
4365  pub async fn get_star_gift_payment_options<C: AsRef<GetStarGiftPaymentOptions>>(
4366    &self,
4367    get_star_gift_payment_options: C,
4368  ) -> RTDResult<StarPaymentOptions> {
4369    async_caller!(StarPaymentOptions);
4370    async_caller(&self.api, get_star_gift_payment_options.as_ref()).await
4371  }
4372
4373  pub async fn get_star_giveaway_payment_options<C: AsRef<GetStarGiveawayPaymentOptions>>(
4374    &self,
4375    get_star_giveaway_payment_options: C,
4376  ) -> RTDResult<StarGiveawayPaymentOptions> {
4377    async_caller!(StarGiveawayPaymentOptions);
4378    async_caller(&self.api, get_star_giveaway_payment_options.as_ref()).await
4379  }
4380
4381  pub async fn get_star_payment_options<C: AsRef<GetStarPaymentOptions>>(
4382    &self,
4383    get_star_payment_options: C,
4384  ) -> RTDResult<StarPaymentOptions> {
4385    async_caller!(StarPaymentOptions);
4386    async_caller(&self.api, get_star_payment_options.as_ref()).await
4387  }
4388
4389  pub async fn get_star_revenue_statistics<C: AsRef<GetStarRevenueStatistics>>(
4390    &self,
4391    get_star_revenue_statistics: C,
4392  ) -> RTDResult<StarRevenueStatistics> {
4393    async_caller!(StarRevenueStatistics);
4394    async_caller(&self.api, get_star_revenue_statistics.as_ref()).await
4395  }
4396
4397  pub async fn get_star_subscriptions<C: AsRef<GetStarSubscriptions>>(
4398    &self,
4399    get_star_subscriptions: C,
4400  ) -> RTDResult<StarSubscriptions> {
4401    async_caller!(StarSubscriptions);
4402    async_caller(&self.api, get_star_subscriptions.as_ref()).await
4403  }
4404
4405  pub async fn get_star_transactions<C: AsRef<GetStarTransactions>>(
4406    &self,
4407    get_star_transactions: C,
4408  ) -> RTDResult<StarTransactions> {
4409    async_caller!(StarTransactions);
4410    async_caller(&self.api, get_star_transactions.as_ref()).await
4411  }
4412
4413  pub async fn get_star_withdrawal_url<C: AsRef<GetStarWithdrawalUrl>>(
4414    &self,
4415    get_star_withdrawal_url: C,
4416  ) -> RTDResult<HttpUrl> {
4417    async_caller!(HttpUrl);
4418    async_caller(&self.api, get_star_withdrawal_url.as_ref()).await
4419  }
4420
4421  pub async fn get_statistical_graph<C: AsRef<GetStatisticalGraph>>(
4422    &self,
4423    get_statistical_graph: C,
4424  ) -> RTDResult<StatisticalGraph> {
4425    async_caller!(StatisticalGraph);
4426    async_caller(&self.api, get_statistical_graph.as_ref()).await
4427  }
4428
4429  pub async fn get_sticker_emojis<C: AsRef<GetStickerEmojis>>(
4430    &self,
4431    get_sticker_emojis: C,
4432  ) -> RTDResult<Emojis> {
4433    async_caller!(Emojis);
4434    async_caller(&self.api, get_sticker_emojis.as_ref()).await
4435  }
4436
4437  pub async fn get_sticker_outline<C: AsRef<GetStickerOutline>>(
4438    &self,
4439    get_sticker_outline: C,
4440  ) -> RTDResult<Outline> {
4441    async_caller!(Outline);
4442    async_caller(&self.api, get_sticker_outline.as_ref()).await
4443  }
4444
4445  pub async fn get_sticker_outline_svg_path<C: AsRef<GetStickerOutlineSvgPath>>(
4446    &self,
4447    get_sticker_outline_svg_path: C,
4448  ) -> RTDResult<Text> {
4449    async_caller!(Text);
4450    async_caller(&self.api, get_sticker_outline_svg_path.as_ref()).await
4451  }
4452
4453  pub async fn get_sticker_set<C: AsRef<GetStickerSet>>(
4454    &self,
4455    get_sticker_set: C,
4456  ) -> RTDResult<StickerSet> {
4457    async_caller!(StickerSet);
4458    async_caller(&self.api, get_sticker_set.as_ref()).await
4459  }
4460
4461  pub async fn get_sticker_set_name<C: AsRef<GetStickerSetName>>(
4462    &self,
4463    get_sticker_set_name: C,
4464  ) -> RTDResult<Text> {
4465    async_caller!(Text);
4466    async_caller(&self.api, get_sticker_set_name.as_ref()).await
4467  }
4468
4469  pub async fn get_stickers<C: AsRef<GetStickers>>(&self, get_stickers: C) -> RTDResult<Stickers> {
4470    async_caller!(Stickers);
4471    async_caller(&self.api, get_stickers.as_ref()).await
4472  }
4473
4474  pub async fn get_storage_statistics<C: AsRef<GetStorageStatistics>>(
4475    &self,
4476    get_storage_statistics: C,
4477  ) -> RTDResult<StorageStatistics> {
4478    async_caller!(StorageStatistics);
4479    async_caller(&self.api, get_storage_statistics.as_ref()).await
4480  }
4481
4482  pub async fn get_storage_statistics_fast<C: AsRef<GetStorageStatisticsFast>>(
4483    &self,
4484    get_storage_statistics_fast: C,
4485  ) -> RTDResult<StorageStatisticsFast> {
4486    async_caller!(StorageStatisticsFast);
4487    async_caller(&self.api, get_storage_statistics_fast.as_ref()).await
4488  }
4489
4490  pub async fn get_story<C: AsRef<GetStory>>(&self, get_story: C) -> RTDResult<Story> {
4491    async_caller!(Story);
4492    async_caller(&self.api, get_story.as_ref()).await
4493  }
4494
4495  pub async fn get_story_album_stories<C: AsRef<GetStoryAlbumStories>>(
4496    &self,
4497    get_story_album_stories: C,
4498  ) -> RTDResult<Stories> {
4499    async_caller!(Stories);
4500    async_caller(&self.api, get_story_album_stories.as_ref()).await
4501  }
4502
4503  pub async fn get_story_available_reactions<C: AsRef<GetStoryAvailableReactions>>(
4504    &self,
4505    get_story_available_reactions: C,
4506  ) -> RTDResult<AvailableReactions> {
4507    async_caller!(AvailableReactions);
4508    async_caller(&self.api, get_story_available_reactions.as_ref()).await
4509  }
4510
4511  pub async fn get_story_interactions<C: AsRef<GetStoryInteractions>>(
4512    &self,
4513    get_story_interactions: C,
4514  ) -> RTDResult<StoryInteractions> {
4515    async_caller!(StoryInteractions);
4516    async_caller(&self.api, get_story_interactions.as_ref()).await
4517  }
4518
4519  pub async fn get_story_notification_settings_exceptions<
4520    C: AsRef<GetStoryNotificationSettingsExceptions>,
4521  >(
4522    &self,
4523    get_story_notification_settings_exceptions: C,
4524  ) -> RTDResult<Chats> {
4525    async_caller!(Chats);
4526    async_caller(
4527      &self.api,
4528      get_story_notification_settings_exceptions.as_ref(),
4529    )
4530    .await
4531  }
4532
4533  pub async fn get_story_public_forwards<C: AsRef<GetStoryPublicForwards>>(
4534    &self,
4535    get_story_public_forwards: C,
4536  ) -> RTDResult<PublicForwards> {
4537    async_caller!(PublicForwards);
4538    async_caller(&self.api, get_story_public_forwards.as_ref()).await
4539  }
4540
4541  pub async fn get_story_statistics<C: AsRef<GetStoryStatistics>>(
4542    &self,
4543    get_story_statistics: C,
4544  ) -> RTDResult<StoryStatistics> {
4545    async_caller!(StoryStatistics);
4546    async_caller(&self.api, get_story_statistics.as_ref()).await
4547  }
4548
4549  pub async fn get_suggested_file_name<C: AsRef<GetSuggestedFileName>>(
4550    &self,
4551    get_suggested_file_name: C,
4552  ) -> RTDResult<Text> {
4553    async_caller!(Text);
4554    async_caller(&self.api, get_suggested_file_name.as_ref()).await
4555  }
4556
4557  pub async fn get_suggested_sticker_set_name<C: AsRef<GetSuggestedStickerSetName>>(
4558    &self,
4559    get_suggested_sticker_set_name: C,
4560  ) -> RTDResult<Text> {
4561    async_caller!(Text);
4562    async_caller(&self.api, get_suggested_sticker_set_name.as_ref()).await
4563  }
4564
4565  pub async fn get_suitable_discussion_chats<C: AsRef<GetSuitableDiscussionChats>>(
4566    &self,
4567    get_suitable_discussion_chats: C,
4568  ) -> RTDResult<Chats> {
4569    async_caller!(Chats);
4570    async_caller(&self.api, get_suitable_discussion_chats.as_ref()).await
4571  }
4572
4573  pub async fn get_suitable_personal_chats<C: AsRef<GetSuitablePersonalChats>>(
4574    &self,
4575    get_suitable_personal_chats: C,
4576  ) -> RTDResult<Chats> {
4577    async_caller!(Chats);
4578    async_caller(&self.api, get_suitable_personal_chats.as_ref()).await
4579  }
4580
4581  pub async fn get_supergroup<C: AsRef<GetSupergroup>>(
4582    &self,
4583    get_supergroup: C,
4584  ) -> RTDResult<Supergroup> {
4585    async_caller!(Supergroup);
4586    async_caller(&self.api, get_supergroup.as_ref()).await
4587  }
4588
4589  pub async fn get_supergroup_full_info<C: AsRef<GetSupergroupFullInfo>>(
4590    &self,
4591    get_supergroup_full_info: C,
4592  ) -> RTDResult<SupergroupFullInfo> {
4593    async_caller!(SupergroupFullInfo);
4594    async_caller(&self.api, get_supergroup_full_info.as_ref()).await
4595  }
4596
4597  pub async fn get_supergroup_members<C: AsRef<GetSupergroupMembers>>(
4598    &self,
4599    get_supergroup_members: C,
4600  ) -> RTDResult<ChatMembers> {
4601    async_caller!(ChatMembers);
4602    async_caller(&self.api, get_supergroup_members.as_ref()).await
4603  }
4604
4605  pub async fn get_support_name<C: AsRef<GetSupportName>>(
4606    &self,
4607    get_support_name: C,
4608  ) -> RTDResult<Text> {
4609    async_caller!(Text);
4610    async_caller(&self.api, get_support_name.as_ref()).await
4611  }
4612
4613  pub async fn get_support_user<C: AsRef<GetSupportUser>>(
4614    &self,
4615    get_support_user: C,
4616  ) -> RTDResult<User> {
4617    async_caller!(User);
4618    async_caller(&self.api, get_support_user.as_ref()).await
4619  }
4620
4621  pub async fn get_temporary_password_state<C: AsRef<GetTemporaryPasswordState>>(
4622    &self,
4623    get_temporary_password_state: C,
4624  ) -> RTDResult<TemporaryPasswordState> {
4625    async_caller!(TemporaryPasswordState);
4626    async_caller(&self.api, get_temporary_password_state.as_ref()).await
4627  }
4628
4629  pub async fn get_text_composition_style_example<C: AsRef<GetTextCompositionStyleExample>>(
4630    &self,
4631    get_text_composition_style_example: C,
4632  ) -> RTDResult<TextCompositionStyleExample> {
4633    async_caller!(TextCompositionStyleExample);
4634    async_caller(&self.api, get_text_composition_style_example.as_ref()).await
4635  }
4636
4637  pub async fn get_text_entities<C: AsRef<GetTextEntities>>(
4638    &self,
4639    get_text_entities: C,
4640  ) -> RTDResult<TextEntities> {
4641    async_caller!(TextEntities);
4642    async_caller(&self.api, get_text_entities.as_ref()).await
4643  }
4644
4645  pub async fn get_theme_parameters_json_string<C: AsRef<GetThemeParametersJsonString>>(
4646    &self,
4647    get_theme_parameters_json_string: C,
4648  ) -> RTDResult<Text> {
4649    async_caller!(Text);
4650    async_caller(&self.api, get_theme_parameters_json_string.as_ref()).await
4651  }
4652
4653  pub async fn get_themed_chat_emoji_statuses<C: AsRef<GetThemedChatEmojiStatuses>>(
4654    &self,
4655    get_themed_chat_emoji_statuses: C,
4656  ) -> RTDResult<EmojiStatusCustomEmojis> {
4657    async_caller!(EmojiStatusCustomEmojis);
4658    async_caller(&self.api, get_themed_chat_emoji_statuses.as_ref()).await
4659  }
4660
4661  pub async fn get_themed_emoji_statuses<C: AsRef<GetThemedEmojiStatuses>>(
4662    &self,
4663    get_themed_emoji_statuses: C,
4664  ) -> RTDResult<EmojiStatusCustomEmojis> {
4665    async_caller!(EmojiStatusCustomEmojis);
4666    async_caller(&self.api, get_themed_emoji_statuses.as_ref()).await
4667  }
4668
4669  pub async fn get_time_zones<C: AsRef<GetTimeZones>>(
4670    &self,
4671    get_time_zones: C,
4672  ) -> RTDResult<TimeZones> {
4673    async_caller!(TimeZones);
4674    async_caller(&self.api, get_time_zones.as_ref()).await
4675  }
4676
4677  pub async fn get_ton_center_streaming_api_url<C: AsRef<GetTonCenterStreamingApiUrl>>(
4678    &self,
4679    get_ton_center_streaming_api_url: C,
4680  ) -> RTDResult<TonCenterStreamingApiUrl> {
4681    async_caller!(TonCenterStreamingApiUrl);
4682    async_caller(&self.api, get_ton_center_streaming_api_url.as_ref()).await
4683  }
4684
4685  pub async fn get_ton_connect_d_app_pending_requests<
4686    C: AsRef<GetTonConnectDAppPendingRequests>,
4687  >(
4688    &self,
4689    get_ton_connect_d_app_pending_requests: C,
4690  ) -> RTDResult<TonConnectRequests> {
4691    async_caller!(TonConnectRequests);
4692    async_caller(&self.api, get_ton_connect_d_app_pending_requests.as_ref()).await
4693  }
4694
4695  pub async fn get_ton_connect_session_next_event_id<C: AsRef<GetTonConnectSessionNextEventId>>(
4696    &self,
4697    get_ton_connect_session_next_event_id: C,
4698  ) -> RTDResult<TonConnectSessionEventId> {
4699    async_caller!(TonConnectSessionEventId);
4700    async_caller(&self.api, get_ton_connect_session_next_event_id.as_ref()).await
4701  }
4702
4703  pub async fn get_ton_connect_session_pending_requests<
4704    C: AsRef<GetTonConnectSessionPendingRequests>,
4705  >(
4706    &self,
4707    get_ton_connect_session_pending_requests: C,
4708  ) -> RTDResult<TonConnectRequests> {
4709    async_caller!(TonConnectRequests);
4710    async_caller(&self.api, get_ton_connect_session_pending_requests.as_ref()).await
4711  }
4712
4713  pub async fn get_ton_connect_sessions<C: AsRef<GetTonConnectSessions>>(
4714    &self,
4715    get_ton_connect_sessions: C,
4716  ) -> RTDResult<TonConnectSessions> {
4717    async_caller!(TonConnectSessions);
4718    async_caller(&self.api, get_ton_connect_sessions.as_ref()).await
4719  }
4720
4721  pub async fn get_ton_transactions<C: AsRef<GetTonTransactions>>(
4722    &self,
4723    get_ton_transactions: C,
4724  ) -> RTDResult<TonTransactions> {
4725    async_caller!(TonTransactions);
4726    async_caller(&self.api, get_ton_transactions.as_ref()).await
4727  }
4728
4729  pub async fn get_ton_wallet_card_background_gift_collection_names<
4730    C: AsRef<GetTonWalletCardBackgroundGiftCollectionNames>,
4731  >(
4732    &self,
4733    get_ton_wallet_card_background_gift_collection_names: C,
4734  ) -> RTDResult<UpgradedGiftCollectionNames> {
4735    async_caller!(UpgradedGiftCollectionNames);
4736    async_caller(
4737      &self.api,
4738      get_ton_wallet_card_background_gift_collection_names.as_ref(),
4739    )
4740    .await
4741  }
4742
4743  pub async fn get_ton_wallet_nfts<C: AsRef<GetTonWalletNfts>>(
4744    &self,
4745    get_ton_wallet_nfts: C,
4746  ) -> RTDResult<TonNfts> {
4747    async_caller!(TonNfts);
4748    async_caller(&self.api, get_ton_wallet_nfts.as_ref()).await
4749  }
4750
4751  pub async fn get_ton_wallet_ownership_proof_challenge<
4752    C: AsRef<GetTonWalletOwnershipProofChallenge>,
4753  >(
4754    &self,
4755    get_ton_wallet_ownership_proof_challenge: C,
4756  ) -> RTDResult<TonWalletOwnershipProofChallenge> {
4757    async_caller!(TonWalletOwnershipProofChallenge);
4758    async_caller(&self.api, get_ton_wallet_ownership_proof_challenge.as_ref()).await
4759  }
4760
4761  pub async fn get_ton_wallet_secret_phrase<C: AsRef<GetTonWalletSecretPhrase>>(
4762    &self,
4763    get_ton_wallet_secret_phrase: C,
4764  ) -> RTDResult<TonWalletSecretPhrase> {
4765    async_caller!(TonWalletSecretPhrase);
4766    async_caller(&self.api, get_ton_wallet_secret_phrase.as_ref()).await
4767  }
4768
4769  pub async fn get_ton_wallet_transaction<C: AsRef<GetTonWalletTransaction>>(
4770    &self,
4771    get_ton_wallet_transaction: C,
4772  ) -> RTDResult<TonWalletTransaction> {
4773    async_caller!(TonWalletTransaction);
4774    async_caller(&self.api, get_ton_wallet_transaction.as_ref()).await
4775  }
4776
4777  pub async fn get_ton_wallet_transaction_by_msg_hash<
4778    C: AsRef<GetTonWalletTransactionByMsgHash>,
4779  >(
4780    &self,
4781    get_ton_wallet_transaction_by_msg_hash: C,
4782  ) -> RTDResult<TonWalletTransaction> {
4783    async_caller!(TonWalletTransaction);
4784    async_caller(&self.api, get_ton_wallet_transaction_by_msg_hash.as_ref()).await
4785  }
4786
4787  pub async fn get_ton_wallet_transactions<C: AsRef<GetTonWalletTransactions>>(
4788    &self,
4789    get_ton_wallet_transactions: C,
4790  ) -> RTDResult<TonWalletTransactions> {
4791    async_caller!(TonWalletTransactions);
4792    async_caller(&self.api, get_ton_wallet_transactions.as_ref()).await
4793  }
4794
4795  pub async fn get_top_chats<C: AsRef<GetTopChats>>(&self, get_top_chats: C) -> RTDResult<Chats> {
4796    async_caller!(Chats);
4797    async_caller(&self.api, get_top_chats.as_ref()).await
4798  }
4799
4800  pub async fn get_trending_sticker_sets<C: AsRef<GetTrendingStickerSets>>(
4801    &self,
4802    get_trending_sticker_sets: C,
4803  ) -> RTDResult<TrendingStickerSets> {
4804    async_caller!(TrendingStickerSets);
4805    async_caller(&self.api, get_trending_sticker_sets.as_ref()).await
4806  }
4807
4808  pub async fn get_upgraded_gift<C: AsRef<GetUpgradedGift>>(
4809    &self,
4810    get_upgraded_gift: C,
4811  ) -> RTDResult<UpgradedGift> {
4812    async_caller!(UpgradedGift);
4813    async_caller(&self.api, get_upgraded_gift.as_ref()).await
4814  }
4815
4816  pub async fn get_upgraded_gift_deposit_info<C: AsRef<GetUpgradedGiftDepositInfo>>(
4817    &self,
4818    get_upgraded_gift_deposit_info: C,
4819  ) -> RTDResult<UpgradedGiftDepositInfo> {
4820    async_caller!(UpgradedGiftDepositInfo);
4821    async_caller(&self.api, get_upgraded_gift_deposit_info.as_ref()).await
4822  }
4823
4824  pub async fn get_upgraded_gift_emoji_statuses<C: AsRef<GetUpgradedGiftEmojiStatuses>>(
4825    &self,
4826    get_upgraded_gift_emoji_statuses: C,
4827  ) -> RTDResult<EmojiStatuses> {
4828    async_caller!(EmojiStatuses);
4829    async_caller(&self.api, get_upgraded_gift_emoji_statuses.as_ref()).await
4830  }
4831
4832  pub async fn get_upgraded_gift_value_info<C: AsRef<GetUpgradedGiftValueInfo>>(
4833    &self,
4834    get_upgraded_gift_value_info: C,
4835  ) -> RTDResult<UpgradedGiftValueInfo> {
4836    async_caller!(UpgradedGiftValueInfo);
4837    async_caller(&self.api, get_upgraded_gift_value_info.as_ref()).await
4838  }
4839
4840  pub async fn get_upgraded_gift_variants<C: AsRef<GetUpgradedGiftVariants>>(
4841    &self,
4842    get_upgraded_gift_variants: C,
4843  ) -> RTDResult<GiftUpgradeVariants> {
4844    async_caller!(GiftUpgradeVariants);
4845    async_caller(&self.api, get_upgraded_gift_variants.as_ref()).await
4846  }
4847
4848  pub async fn get_upgraded_gift_withdrawal_url<C: AsRef<GetUpgradedGiftWithdrawalUrl>>(
4849    &self,
4850    get_upgraded_gift_withdrawal_url: C,
4851  ) -> RTDResult<HttpUrl> {
4852    async_caller!(HttpUrl);
4853    async_caller(&self.api, get_upgraded_gift_withdrawal_url.as_ref()).await
4854  }
4855
4856  pub async fn get_upgraded_gifts_promotional_animation<
4857    C: AsRef<GetUpgradedGiftsPromotionalAnimation>,
4858  >(
4859    &self,
4860    get_upgraded_gifts_promotional_animation: C,
4861  ) -> RTDResult<Animation> {
4862    async_caller!(Animation);
4863    async_caller(&self.api, get_upgraded_gifts_promotional_animation.as_ref()).await
4864  }
4865
4866  pub async fn get_user<C: AsRef<GetUser>>(&self, get_user: C) -> RTDResult<User> {
4867    async_caller!(User);
4868    async_caller(&self.api, get_user.as_ref()).await
4869  }
4870
4871  pub async fn get_user_chat_boosts<C: AsRef<GetUserChatBoosts>>(
4872    &self,
4873    get_user_chat_boosts: C,
4874  ) -> RTDResult<FoundChatBoosts> {
4875    async_caller!(FoundChatBoosts);
4876    async_caller(&self.api, get_user_chat_boosts.as_ref()).await
4877  }
4878
4879  pub async fn get_user_full_info<C: AsRef<GetUserFullInfo>>(
4880    &self,
4881    get_user_full_info: C,
4882  ) -> RTDResult<UserFullInfo> {
4883    async_caller!(UserFullInfo);
4884    async_caller(&self.api, get_user_full_info.as_ref()).await
4885  }
4886
4887  pub async fn get_user_link<C: AsRef<GetUserLink>>(
4888    &self,
4889    get_user_link: C,
4890  ) -> RTDResult<UserLink> {
4891    async_caller!(UserLink);
4892    async_caller(&self.api, get_user_link.as_ref()).await
4893  }
4894
4895  pub async fn get_user_privacy_setting_rules<C: AsRef<GetUserPrivacySettingRules>>(
4896    &self,
4897    get_user_privacy_setting_rules: C,
4898  ) -> RTDResult<UserPrivacySettingRules> {
4899    async_caller!(UserPrivacySettingRules);
4900    async_caller(&self.api, get_user_privacy_setting_rules.as_ref()).await
4901  }
4902
4903  pub async fn get_user_profile_audios<C: AsRef<GetUserProfileAudios>>(
4904    &self,
4905    get_user_profile_audios: C,
4906  ) -> RTDResult<Audios> {
4907    async_caller!(Audios);
4908    async_caller(&self.api, get_user_profile_audios.as_ref()).await
4909  }
4910
4911  pub async fn get_user_profile_photos<C: AsRef<GetUserProfilePhotos>>(
4912    &self,
4913    get_user_profile_photos: C,
4914  ) -> RTDResult<ChatPhotos> {
4915    async_caller!(ChatPhotos);
4916    async_caller(&self.api, get_user_profile_photos.as_ref()).await
4917  }
4918
4919  pub async fn get_user_support_info<C: AsRef<GetUserSupportInfo>>(
4920    &self,
4921    get_user_support_info: C,
4922  ) -> RTDResult<UserSupportInfo> {
4923    async_caller!(UserSupportInfo);
4924    async_caller(&self.api, get_user_support_info.as_ref()).await
4925  }
4926
4927  pub async fn get_user_ton_wallet_addresses<C: AsRef<GetUserTonWalletAddresses>>(
4928    &self,
4929    get_user_ton_wallet_addresses: C,
4930  ) -> RTDResult<UserTonWalletAddresses> {
4931    async_caller!(UserTonWalletAddresses);
4932    async_caller(&self.api, get_user_ton_wallet_addresses.as_ref()).await
4933  }
4934
4935  pub async fn get_video_chat_available_participants<
4936    C: AsRef<GetVideoChatAvailableParticipants>,
4937  >(
4938    &self,
4939    get_video_chat_available_participants: C,
4940  ) -> RTDResult<MessageSenders> {
4941    async_caller!(MessageSenders);
4942    async_caller(&self.api, get_video_chat_available_participants.as_ref()).await
4943  }
4944
4945  pub async fn get_video_chat_invite_link<C: AsRef<GetVideoChatInviteLink>>(
4946    &self,
4947    get_video_chat_invite_link: C,
4948  ) -> RTDResult<HttpUrl> {
4949    async_caller!(HttpUrl);
4950    async_caller(&self.api, get_video_chat_invite_link.as_ref()).await
4951  }
4952
4953  pub async fn get_video_chat_rtmp_url<C: AsRef<GetVideoChatRtmpUrl>>(
4954    &self,
4955    get_video_chat_rtmp_url: C,
4956  ) -> RTDResult<RtmpUrl> {
4957    async_caller!(RtmpUrl);
4958    async_caller(&self.api, get_video_chat_rtmp_url.as_ref()).await
4959  }
4960
4961  pub async fn get_video_message_advertisements<C: AsRef<GetVideoMessageAdvertisements>>(
4962    &self,
4963    get_video_message_advertisements: C,
4964  ) -> RTDResult<VideoMessageAdvertisements> {
4965    async_caller!(VideoMessageAdvertisements);
4966    async_caller(&self.api, get_video_message_advertisements.as_ref()).await
4967  }
4968
4969  pub async fn get_web_app_link_url<C: AsRef<GetWebAppLinkUrl>>(
4970    &self,
4971    get_web_app_link_url: C,
4972  ) -> RTDResult<WebAppUrl> {
4973    async_caller!(WebAppUrl);
4974    async_caller(&self.api, get_web_app_link_url.as_ref()).await
4975  }
4976
4977  pub async fn get_web_app_placeholder<C: AsRef<GetWebAppPlaceholder>>(
4978    &self,
4979    get_web_app_placeholder: C,
4980  ) -> RTDResult<Outline> {
4981    async_caller!(Outline);
4982    async_caller(&self.api, get_web_app_placeholder.as_ref()).await
4983  }
4984
4985  pub async fn get_web_app_url<C: AsRef<GetWebAppUrl>>(
4986    &self,
4987    get_web_app_url: C,
4988  ) -> RTDResult<WebAppUrl> {
4989    async_caller!(WebAppUrl);
4990    async_caller(&self.api, get_web_app_url.as_ref()).await
4991  }
4992
4993  pub async fn get_web_page_instant_view<C: AsRef<GetWebPageInstantView>>(
4994    &self,
4995    get_web_page_instant_view: C,
4996  ) -> RTDResult<WebPageInstantView> {
4997    async_caller!(WebPageInstantView);
4998    async_caller(&self.api, get_web_page_instant_view.as_ref()).await
4999  }
5000
5001  pub async fn gift_premium_with_stars<C: AsRef<GiftPremiumWithStars>>(
5002    &self,
5003    gift_premium_with_stars: C,
5004  ) -> RTDResult<Ok> {
5005    async_caller!(Ok);
5006    async_caller(&self.api, gift_premium_with_stars.as_ref()).await
5007  }
5008
5009  pub async fn hide_contact_close_birthdays<C: AsRef<HideContactCloseBirthdays>>(
5010    &self,
5011    hide_contact_close_birthdays: C,
5012  ) -> RTDResult<Ok> {
5013    async_caller!(Ok);
5014    async_caller(&self.api, hide_contact_close_birthdays.as_ref()).await
5015  }
5016
5017  pub async fn hide_suggested_action<C: AsRef<HideSuggestedAction>>(
5018    &self,
5019    hide_suggested_action: C,
5020  ) -> RTDResult<Ok> {
5021    async_caller!(Ok);
5022    async_caller(&self.api, hide_suggested_action.as_ref()).await
5023  }
5024
5025  pub async fn import_contacts<C: AsRef<ImportContacts>>(
5026    &self,
5027    import_contacts: C,
5028  ) -> RTDResult<ImportedContacts> {
5029    async_caller!(ImportedContacts);
5030    async_caller(&self.api, import_contacts.as_ref()).await
5031  }
5032
5033  pub async fn import_messages<C: AsRef<ImportMessages>>(
5034    &self,
5035    import_messages: C,
5036  ) -> RTDResult<Ok> {
5037    async_caller!(Ok);
5038    async_caller(&self.api, import_messages.as_ref()).await
5039  }
5040
5041  pub async fn increase_gift_auction_bid<C: AsRef<IncreaseGiftAuctionBid>>(
5042    &self,
5043    increase_gift_auction_bid: C,
5044  ) -> RTDResult<Ok> {
5045    async_caller!(Ok);
5046    async_caller(&self.api, increase_gift_auction_bid.as_ref()).await
5047  }
5048
5049  pub async fn invite_group_call_participant<C: AsRef<InviteGroupCallParticipant>>(
5050    &self,
5051    invite_group_call_participant: C,
5052  ) -> RTDResult<InviteGroupCallParticipantResult> {
5053    async_caller!(InviteGroupCallParticipantResult);
5054    async_caller(&self.api, invite_group_call_participant.as_ref()).await
5055  }
5056
5057  pub async fn invite_video_chat_participants<C: AsRef<InviteVideoChatParticipants>>(
5058    &self,
5059    invite_video_chat_participants: C,
5060  ) -> RTDResult<Ok> {
5061    async_caller!(Ok);
5062    async_caller(&self.api, invite_video_chat_participants.as_ref()).await
5063  }
5064
5065  pub async fn is_login_email_address_required<C: AsRef<IsLoginEmailAddressRequired>>(
5066    &self,
5067    is_login_email_address_required: C,
5068  ) -> RTDResult<Ok> {
5069    async_caller!(Ok);
5070    async_caller(&self.api, is_login_email_address_required.as_ref()).await
5071  }
5072
5073  pub async fn is_profile_audio<C: AsRef<IsProfileAudio>>(
5074    &self,
5075    is_profile_audio: C,
5076  ) -> RTDResult<Ok> {
5077    async_caller!(Ok);
5078    async_caller(&self.api, is_profile_audio.as_ref()).await
5079  }
5080
5081  pub async fn join_chat<C: AsRef<JoinChat>>(&self, join_chat: C) -> RTDResult<ChatJoinResult> {
5082    async_caller!(ChatJoinResult);
5083    async_caller(&self.api, join_chat.as_ref()).await
5084  }
5085
5086  pub async fn join_chat_by_invite_link<C: AsRef<JoinChatByInviteLink>>(
5087    &self,
5088    join_chat_by_invite_link: C,
5089  ) -> RTDResult<ChatJoinResult> {
5090    async_caller!(ChatJoinResult);
5091    async_caller(&self.api, join_chat_by_invite_link.as_ref()).await
5092  }
5093
5094  pub async fn join_group_call<C: AsRef<JoinGroupCall>>(
5095    &self,
5096    join_group_call: C,
5097  ) -> RTDResult<GroupCallInfo> {
5098    async_caller!(GroupCallInfo);
5099    async_caller(&self.api, join_group_call.as_ref()).await
5100  }
5101
5102  pub async fn join_live_story<C: AsRef<JoinLiveStory>>(
5103    &self,
5104    join_live_story: C,
5105  ) -> RTDResult<Text> {
5106    async_caller!(Text);
5107    async_caller(&self.api, join_live_story.as_ref()).await
5108  }
5109
5110  pub async fn join_video_chat<C: AsRef<JoinVideoChat>>(
5111    &self,
5112    join_video_chat: C,
5113  ) -> RTDResult<Text> {
5114    async_caller!(Text);
5115    async_caller(&self.api, join_video_chat.as_ref()).await
5116  }
5117
5118  pub async fn launch_prepaid_giveaway<C: AsRef<LaunchPrepaidGiveaway>>(
5119    &self,
5120    launch_prepaid_giveaway: C,
5121  ) -> RTDResult<Ok> {
5122    async_caller!(Ok);
5123    async_caller(&self.api, launch_prepaid_giveaway.as_ref()).await
5124  }
5125
5126  pub async fn leave_chat<C: AsRef<LeaveChat>>(&self, leave_chat: C) -> RTDResult<Ok> {
5127    async_caller!(Ok);
5128    async_caller(&self.api, leave_chat.as_ref()).await
5129  }
5130
5131  pub async fn leave_group_call<C: AsRef<LeaveGroupCall>>(
5132    &self,
5133    leave_group_call: C,
5134  ) -> RTDResult<Ok> {
5135    async_caller!(Ok);
5136    async_caller(&self.api, leave_group_call.as_ref()).await
5137  }
5138
5139  pub async fn listen_to_audio<C: AsRef<ListenToAudio>>(
5140    &self,
5141    listen_to_audio: C,
5142  ) -> RTDResult<Ok> {
5143    async_caller!(Ok);
5144    async_caller(&self.api, listen_to_audio.as_ref()).await
5145  }
5146
5147  pub async fn load_active_stories<C: AsRef<LoadActiveStories>>(
5148    &self,
5149    load_active_stories: C,
5150  ) -> RTDResult<Ok> {
5151    async_caller!(Ok);
5152    async_caller(&self.api, load_active_stories.as_ref()).await
5153  }
5154
5155  pub async fn load_chat_welcome_messages<C: AsRef<LoadChatWelcomeMessages>>(
5156    &self,
5157    load_chat_welcome_messages: C,
5158  ) -> RTDResult<Ok> {
5159    async_caller!(Ok);
5160    async_caller(&self.api, load_chat_welcome_messages.as_ref()).await
5161  }
5162
5163  pub async fn load_chats<C: AsRef<LoadChats>>(&self, load_chats: C) -> RTDResult<Ok> {
5164    async_caller!(Ok);
5165    async_caller(&self.api, load_chats.as_ref()).await
5166  }
5167
5168  pub async fn load_direct_messages_chat_topics<C: AsRef<LoadDirectMessagesChatTopics>>(
5169    &self,
5170    load_direct_messages_chat_topics: C,
5171  ) -> RTDResult<Ok> {
5172    async_caller!(Ok);
5173    async_caller(&self.api, load_direct_messages_chat_topics.as_ref()).await
5174  }
5175
5176  pub async fn load_group_call_participants<C: AsRef<LoadGroupCallParticipants>>(
5177    &self,
5178    load_group_call_participants: C,
5179  ) -> RTDResult<Ok> {
5180    async_caller!(Ok);
5181    async_caller(&self.api, load_group_call_participants.as_ref()).await
5182  }
5183
5184  pub async fn load_quick_reply_shortcut_messages<C: AsRef<LoadQuickReplyShortcutMessages>>(
5185    &self,
5186    load_quick_reply_shortcut_messages: C,
5187  ) -> RTDResult<Ok> {
5188    async_caller!(Ok);
5189    async_caller(&self.api, load_quick_reply_shortcut_messages.as_ref()).await
5190  }
5191
5192  pub async fn load_quick_reply_shortcuts<C: AsRef<LoadQuickReplyShortcuts>>(
5193    &self,
5194    load_quick_reply_shortcuts: C,
5195  ) -> RTDResult<Ok> {
5196    async_caller!(Ok);
5197    async_caller(&self.api, load_quick_reply_shortcuts.as_ref()).await
5198  }
5199
5200  pub async fn load_saved_messages_topics<C: AsRef<LoadSavedMessagesTopics>>(
5201    &self,
5202    load_saved_messages_topics: C,
5203  ) -> RTDResult<Ok> {
5204    async_caller!(Ok);
5205    async_caller(&self.api, load_saved_messages_topics.as_ref()).await
5206  }
5207
5208  pub async fn load_ton_wallet_gasless_transfers_info<
5209    C: AsRef<LoadTonWalletGaslessTransfersInfo>,
5210  >(
5211    &self,
5212    load_ton_wallet_gasless_transfers_info: C,
5213  ) -> RTDResult<Ok> {
5214    async_caller!(Ok);
5215    async_caller(&self.api, load_ton_wallet_gasless_transfers_info.as_ref()).await
5216  }
5217
5218  pub async fn load_ton_wallet_state<C: AsRef<LoadTonWalletState>>(
5219    &self,
5220    load_ton_wallet_state: C,
5221  ) -> RTDResult<Ok> {
5222    async_caller!(Ok);
5223    async_caller(&self.api, load_ton_wallet_state.as_ref()).await
5224  }
5225
5226  pub async fn log_out<C: AsRef<LogOut>>(&self, log_out: C) -> RTDResult<Ok> {
5227    async_caller!(Ok);
5228    async_caller(&self.api, log_out.as_ref()).await
5229  }
5230
5231  pub async fn mark_checklist_tasks_as_done<C: AsRef<MarkChecklistTasksAsDone>>(
5232    &self,
5233    mark_checklist_tasks_as_done: C,
5234  ) -> RTDResult<Ok> {
5235    async_caller!(Ok);
5236    async_caller(&self.api, mark_checklist_tasks_as_done.as_ref()).await
5237  }
5238
5239  pub async fn open_bot_similar_bot<C: AsRef<OpenBotSimilarBot>>(
5240    &self,
5241    open_bot_similar_bot: C,
5242  ) -> RTDResult<Ok> {
5243    async_caller!(Ok);
5244    async_caller(&self.api, open_bot_similar_bot.as_ref()).await
5245  }
5246
5247  pub async fn open_chat<C: AsRef<OpenChat>>(&self, open_chat: C) -> RTDResult<Ok> {
5248    async_caller!(Ok);
5249    async_caller(&self.api, open_chat.as_ref()).await
5250  }
5251
5252  pub async fn open_chat_similar_chat<C: AsRef<OpenChatSimilarChat>>(
5253    &self,
5254    open_chat_similar_chat: C,
5255  ) -> RTDResult<Ok> {
5256    async_caller!(Ok);
5257    async_caller(&self.api, open_chat_similar_chat.as_ref()).await
5258  }
5259
5260  pub async fn open_gift_auction<C: AsRef<OpenGiftAuction>>(
5261    &self,
5262    open_gift_auction: C,
5263  ) -> RTDResult<Ok> {
5264    async_caller!(Ok);
5265    async_caller(&self.api, open_gift_auction.as_ref()).await
5266  }
5267
5268  pub async fn open_message_content<C: AsRef<OpenMessageContent>>(
5269    &self,
5270    open_message_content: C,
5271  ) -> RTDResult<Ok> {
5272    async_caller!(Ok);
5273    async_caller(&self.api, open_message_content.as_ref()).await
5274  }
5275
5276  pub async fn open_sponsored_chat<C: AsRef<OpenSponsoredChat>>(
5277    &self,
5278    open_sponsored_chat: C,
5279  ) -> RTDResult<Ok> {
5280    async_caller!(Ok);
5281    async_caller(&self.api, open_sponsored_chat.as_ref()).await
5282  }
5283
5284  pub async fn open_story<C: AsRef<OpenStory>>(&self, open_story: C) -> RTDResult<Ok> {
5285    async_caller!(Ok);
5286    async_caller(&self.api, open_story.as_ref()).await
5287  }
5288
5289  pub async fn open_web_app<C: AsRef<OpenWebApp>>(&self, open_web_app: C) -> RTDResult<WebAppInfo> {
5290    async_caller!(WebAppInfo);
5291    async_caller(&self.api, open_web_app.as_ref()).await
5292  }
5293
5294  pub async fn optimize_storage<C: AsRef<OptimizeStorage>>(
5295    &self,
5296    optimize_storage: C,
5297  ) -> RTDResult<StorageStatistics> {
5298    async_caller!(StorageStatistics);
5299    async_caller(&self.api, optimize_storage.as_ref()).await
5300  }
5301
5302  pub async fn parse_markdown<C: AsRef<ParseMarkdown>>(
5303    &self,
5304    parse_markdown: C,
5305  ) -> RTDResult<FormattedText> {
5306    async_caller!(FormattedText);
5307    async_caller(&self.api, parse_markdown.as_ref()).await
5308  }
5309
5310  pub async fn parse_text_entities<C: AsRef<ParseTextEntities>>(
5311    &self,
5312    parse_text_entities: C,
5313  ) -> RTDResult<FormattedText> {
5314    async_caller!(FormattedText);
5315    async_caller(&self.api, parse_text_entities.as_ref()).await
5316  }
5317
5318  pub async fn pin_chat_message<C: AsRef<PinChatMessage>>(
5319    &self,
5320    pin_chat_message: C,
5321  ) -> RTDResult<Ok> {
5322    async_caller!(Ok);
5323    async_caller(&self.api, pin_chat_message.as_ref()).await
5324  }
5325
5326  pub async fn ping_proxy<C: AsRef<PingProxy>>(&self, ping_proxy: C) -> RTDResult<Seconds> {
5327    async_caller!(Seconds);
5328    async_caller(&self.api, ping_proxy.as_ref()).await
5329  }
5330
5331  pub async fn place_gift_auction_bid<C: AsRef<PlaceGiftAuctionBid>>(
5332    &self,
5333    place_gift_auction_bid: C,
5334  ) -> RTDResult<Ok> {
5335    async_caller!(Ok);
5336    async_caller(&self.api, place_gift_auction_bid.as_ref()).await
5337  }
5338
5339  pub async fn post_story<C: AsRef<PostStory>>(&self, post_story: C) -> RTDResult<Story> {
5340    async_caller!(Story);
5341    async_caller(&self.api, post_story.as_ref()).await
5342  }
5343
5344  pub async fn preliminary_upload_file<C: AsRef<PreliminaryUploadFile>>(
5345    &self,
5346    preliminary_upload_file: C,
5347  ) -> RTDResult<File> {
5348    async_caller!(File);
5349    async_caller(&self.api, preliminary_upload_file.as_ref()).await
5350  }
5351
5352  pub async fn process_chat_folder_new_chats<C: AsRef<ProcessChatFolderNewChats>>(
5353    &self,
5354    process_chat_folder_new_chats: C,
5355  ) -> RTDResult<Ok> {
5356    async_caller!(Ok);
5357    async_caller(&self.api, process_chat_folder_new_chats.as_ref()).await
5358  }
5359
5360  pub async fn process_chat_has_protected_content_disable_request<
5361    C: AsRef<ProcessChatHasProtectedContentDisableRequest>,
5362  >(
5363    &self,
5364    process_chat_has_protected_content_disable_request: C,
5365  ) -> RTDResult<Ok> {
5366    async_caller!(Ok);
5367    async_caller(
5368      &self.api,
5369      process_chat_has_protected_content_disable_request.as_ref(),
5370    )
5371    .await
5372  }
5373
5374  pub async fn process_chat_join_request<C: AsRef<ProcessChatJoinRequest>>(
5375    &self,
5376    process_chat_join_request: C,
5377  ) -> RTDResult<Ok> {
5378    async_caller!(Ok);
5379    async_caller(&self.api, process_chat_join_request.as_ref()).await
5380  }
5381
5382  pub async fn process_chat_join_requests<C: AsRef<ProcessChatJoinRequests>>(
5383    &self,
5384    process_chat_join_requests: C,
5385  ) -> RTDResult<Ok> {
5386    async_caller!(Ok);
5387    async_caller(&self.api, process_chat_join_requests.as_ref()).await
5388  }
5389
5390  pub async fn process_gift_purchase_offer<C: AsRef<ProcessGiftPurchaseOffer>>(
5391    &self,
5392    process_gift_purchase_offer: C,
5393  ) -> RTDResult<Ok> {
5394    async_caller!(Ok);
5395    async_caller(&self.api, process_gift_purchase_offer.as_ref()).await
5396  }
5397
5398  pub async fn process_push_notification<C: AsRef<ProcessPushNotification>>(
5399    &self,
5400    process_push_notification: C,
5401  ) -> RTDResult<Ok> {
5402    async_caller!(Ok);
5403    async_caller(&self.api, process_push_notification.as_ref()).await
5404  }
5405
5406  pub async fn process_web_proxy_carrier_message<C: AsRef<ProcessWebProxyCarrierMessage>>(
5407    &self,
5408    process_web_proxy_carrier_message: C,
5409  ) -> RTDResult<Ok> {
5410    async_caller!(Ok);
5411    async_caller(&self.api, process_web_proxy_carrier_message.as_ref()).await
5412  }
5413
5414  pub async fn rate_speech_recognition<C: AsRef<RateSpeechRecognition>>(
5415    &self,
5416    rate_speech_recognition: C,
5417  ) -> RTDResult<Ok> {
5418    async_caller!(Ok);
5419    async_caller(&self.api, rate_speech_recognition.as_ref()).await
5420  }
5421
5422  pub async fn read_all_chat_mentions<C: AsRef<ReadAllChatMentions>>(
5423    &self,
5424    read_all_chat_mentions: C,
5425  ) -> RTDResult<Ok> {
5426    async_caller!(Ok);
5427    async_caller(&self.api, read_all_chat_mentions.as_ref()).await
5428  }
5429
5430  pub async fn read_all_chat_poll_votes<C: AsRef<ReadAllChatPollVotes>>(
5431    &self,
5432    read_all_chat_poll_votes: C,
5433  ) -> RTDResult<Ok> {
5434    async_caller!(Ok);
5435    async_caller(&self.api, read_all_chat_poll_votes.as_ref()).await
5436  }
5437
5438  pub async fn read_all_chat_reactions<C: AsRef<ReadAllChatReactions>>(
5439    &self,
5440    read_all_chat_reactions: C,
5441  ) -> RTDResult<Ok> {
5442    async_caller!(Ok);
5443    async_caller(&self.api, read_all_chat_reactions.as_ref()).await
5444  }
5445
5446  pub async fn read_all_direct_messages_chat_topic_reactions<
5447    C: AsRef<ReadAllDirectMessagesChatTopicReactions>,
5448  >(
5449    &self,
5450    read_all_direct_messages_chat_topic_reactions: C,
5451  ) -> RTDResult<Ok> {
5452    async_caller!(Ok);
5453    async_caller(
5454      &self.api,
5455      read_all_direct_messages_chat_topic_reactions.as_ref(),
5456    )
5457    .await
5458  }
5459
5460  pub async fn read_all_forum_topic_mentions<C: AsRef<ReadAllForumTopicMentions>>(
5461    &self,
5462    read_all_forum_topic_mentions: C,
5463  ) -> RTDResult<Ok> {
5464    async_caller!(Ok);
5465    async_caller(&self.api, read_all_forum_topic_mentions.as_ref()).await
5466  }
5467
5468  pub async fn read_all_forum_topic_poll_votes<C: AsRef<ReadAllForumTopicPollVotes>>(
5469    &self,
5470    read_all_forum_topic_poll_votes: C,
5471  ) -> RTDResult<Ok> {
5472    async_caller!(Ok);
5473    async_caller(&self.api, read_all_forum_topic_poll_votes.as_ref()).await
5474  }
5475
5476  pub async fn read_all_forum_topic_reactions<C: AsRef<ReadAllForumTopicReactions>>(
5477    &self,
5478    read_all_forum_topic_reactions: C,
5479  ) -> RTDResult<Ok> {
5480    async_caller!(Ok);
5481    async_caller(&self.api, read_all_forum_topic_reactions.as_ref()).await
5482  }
5483
5484  pub async fn read_business_message<C: AsRef<ReadBusinessMessage>>(
5485    &self,
5486    read_business_message: C,
5487  ) -> RTDResult<Ok> {
5488    async_caller!(Ok);
5489    async_caller(&self.api, read_business_message.as_ref()).await
5490  }
5491
5492  pub async fn read_chat_list<C: AsRef<ReadChatList>>(&self, read_chat_list: C) -> RTDResult<Ok> {
5493    async_caller!(Ok);
5494    async_caller(&self.api, read_chat_list.as_ref()).await
5495  }
5496
5497  pub async fn read_file_part<C: AsRef<ReadFilePart>>(&self, read_file_part: C) -> RTDResult<Data> {
5498    async_caller!(Data);
5499    async_caller(&self.api, read_file_part.as_ref()).await
5500  }
5501
5502  pub async fn readd_quick_reply_shortcut_messages<C: AsRef<ReaddQuickReplyShortcutMessages>>(
5503    &self,
5504    readd_quick_reply_shortcut_messages: C,
5505  ) -> RTDResult<QuickReplyMessages> {
5506    async_caller!(QuickReplyMessages);
5507    async_caller(&self.api, readd_quick_reply_shortcut_messages.as_ref()).await
5508  }
5509
5510  pub async fn recognize_speech<C: AsRef<RecognizeSpeech>>(
5511    &self,
5512    recognize_speech: C,
5513  ) -> RTDResult<Ok> {
5514    async_caller!(Ok);
5515    async_caller(&self.api, recognize_speech.as_ref()).await
5516  }
5517
5518  pub async fn recover_authentication_password<C: AsRef<RecoverAuthenticationPassword>>(
5519    &self,
5520    recover_authentication_password: C,
5521  ) -> RTDResult<Ok> {
5522    async_caller!(Ok);
5523    async_caller(&self.api, recover_authentication_password.as_ref()).await
5524  }
5525
5526  pub async fn recover_password<C: AsRef<RecoverPassword>>(
5527    &self,
5528    recover_password: C,
5529  ) -> RTDResult<PasswordState> {
5530    async_caller!(PasswordState);
5531    async_caller(&self.api, recover_password.as_ref()).await
5532  }
5533
5534  pub async fn refund_star_payment<C: AsRef<RefundStarPayment>>(
5535    &self,
5536    refund_star_payment: C,
5537  ) -> RTDResult<Ok> {
5538    async_caller!(Ok);
5539    async_caller(&self.api, refund_star_payment.as_ref()).await
5540  }
5541
5542  pub async fn register_device<C: AsRef<RegisterDevice>>(
5543    &self,
5544    register_device: C,
5545  ) -> RTDResult<PushReceiverId> {
5546    async_caller!(PushReceiverId);
5547    async_caller(&self.api, register_device.as_ref()).await
5548  }
5549
5550  pub async fn register_user<C: AsRef<RegisterUser>>(&self, register_user: C) -> RTDResult<Ok> {
5551    async_caller!(Ok);
5552    async_caller(&self.api, register_user.as_ref()).await
5553  }
5554
5555  pub async fn remove_all_files_from_downloads<C: AsRef<RemoveAllFilesFromDownloads>>(
5556    &self,
5557    remove_all_files_from_downloads: C,
5558  ) -> RTDResult<Ok> {
5559    async_caller!(Ok);
5560    async_caller(&self.api, remove_all_files_from_downloads.as_ref()).await
5561  }
5562
5563  pub async fn remove_all_web_browser_settings_exceptions<
5564    C: AsRef<RemoveAllWebBrowserSettingsExceptions>,
5565  >(
5566    &self,
5567    remove_all_web_browser_settings_exceptions: C,
5568  ) -> RTDResult<Ok> {
5569    async_caller!(Ok);
5570    async_caller(
5571      &self.api,
5572      remove_all_web_browser_settings_exceptions.as_ref(),
5573    )
5574    .await
5575  }
5576
5577  pub async fn remove_business_connected_bot_from_chat<
5578    C: AsRef<RemoveBusinessConnectedBotFromChat>,
5579  >(
5580    &self,
5581    remove_business_connected_bot_from_chat: C,
5582  ) -> RTDResult<Ok> {
5583    async_caller!(Ok);
5584    async_caller(&self.api, remove_business_connected_bot_from_chat.as_ref()).await
5585  }
5586
5587  pub async fn remove_chat_action_bar<C: AsRef<RemoveChatActionBar>>(
5588    &self,
5589    remove_chat_action_bar: C,
5590  ) -> RTDResult<Ok> {
5591    async_caller!(Ok);
5592    async_caller(&self.api, remove_chat_action_bar.as_ref()).await
5593  }
5594
5595  pub async fn remove_contacts<C: AsRef<RemoveContacts>>(
5596    &self,
5597    remove_contacts: C,
5598  ) -> RTDResult<Ok> {
5599    async_caller!(Ok);
5600    async_caller(&self.api, remove_contacts.as_ref()).await
5601  }
5602
5603  pub async fn remove_favorite_sticker<C: AsRef<RemoveFavoriteSticker>>(
5604    &self,
5605    remove_favorite_sticker: C,
5606  ) -> RTDResult<Ok> {
5607    async_caller!(Ok);
5608    async_caller(&self.api, remove_favorite_sticker.as_ref()).await
5609  }
5610
5611  pub async fn remove_file_from_downloads<C: AsRef<RemoveFileFromDownloads>>(
5612    &self,
5613    remove_file_from_downloads: C,
5614  ) -> RTDResult<Ok> {
5615    async_caller!(Ok);
5616    async_caller(&self.api, remove_file_from_downloads.as_ref()).await
5617  }
5618
5619  pub async fn remove_gift_collection_gifts<C: AsRef<RemoveGiftCollectionGifts>>(
5620    &self,
5621    remove_gift_collection_gifts: C,
5622  ) -> RTDResult<GiftCollection> {
5623    async_caller!(GiftCollection);
5624    async_caller(&self.api, remove_gift_collection_gifts.as_ref()).await
5625  }
5626
5627  pub async fn remove_installed_background<C: AsRef<RemoveInstalledBackground>>(
5628    &self,
5629    remove_installed_background: C,
5630  ) -> RTDResult<Ok> {
5631    async_caller!(Ok);
5632    async_caller(&self.api, remove_installed_background.as_ref()).await
5633  }
5634
5635  pub async fn remove_login_passkey<C: AsRef<RemoveLoginPasskey>>(
5636    &self,
5637    remove_login_passkey: C,
5638  ) -> RTDResult<Ok> {
5639    async_caller!(Ok);
5640    async_caller(&self.api, remove_login_passkey.as_ref()).await
5641  }
5642
5643  pub async fn remove_message_reaction<C: AsRef<RemoveMessageReaction>>(
5644    &self,
5645    remove_message_reaction: C,
5646  ) -> RTDResult<Ok> {
5647    async_caller!(Ok);
5648    async_caller(&self.api, remove_message_reaction.as_ref()).await
5649  }
5650
5651  pub async fn remove_message_sender_bot_verification<
5652    C: AsRef<RemoveMessageSenderBotVerification>,
5653  >(
5654    &self,
5655    remove_message_sender_bot_verification: C,
5656  ) -> RTDResult<Ok> {
5657    async_caller!(Ok);
5658    async_caller(&self.api, remove_message_sender_bot_verification.as_ref()).await
5659  }
5660
5661  pub async fn remove_notification<C: AsRef<RemoveNotification>>(
5662    &self,
5663    remove_notification: C,
5664  ) -> RTDResult<Ok> {
5665    async_caller!(Ok);
5666    async_caller(&self.api, remove_notification.as_ref()).await
5667  }
5668
5669  pub async fn remove_notification_group<C: AsRef<RemoveNotificationGroup>>(
5670    &self,
5671    remove_notification_group: C,
5672  ) -> RTDResult<Ok> {
5673    async_caller!(Ok);
5674    async_caller(&self.api, remove_notification_group.as_ref()).await
5675  }
5676
5677  pub async fn remove_pending_live_story_reactions<C: AsRef<RemovePendingLiveStoryReactions>>(
5678    &self,
5679    remove_pending_live_story_reactions: C,
5680  ) -> RTDResult<Ok> {
5681    async_caller!(Ok);
5682    async_caller(&self.api, remove_pending_live_story_reactions.as_ref()).await
5683  }
5684
5685  pub async fn remove_pending_paid_message_reactions<
5686    C: AsRef<RemovePendingPaidMessageReactions>,
5687  >(
5688    &self,
5689    remove_pending_paid_message_reactions: C,
5690  ) -> RTDResult<Ok> {
5691    async_caller!(Ok);
5692    async_caller(&self.api, remove_pending_paid_message_reactions.as_ref()).await
5693  }
5694
5695  pub async fn remove_profile_audio<C: AsRef<RemoveProfileAudio>>(
5696    &self,
5697    remove_profile_audio: C,
5698  ) -> RTDResult<Ok> {
5699    async_caller!(Ok);
5700    async_caller(&self.api, remove_profile_audio.as_ref()).await
5701  }
5702
5703  pub async fn remove_proxy<C: AsRef<RemoveProxy>>(&self, remove_proxy: C) -> RTDResult<Ok> {
5704    async_caller!(Ok);
5705    async_caller(&self.api, remove_proxy.as_ref()).await
5706  }
5707
5708  pub async fn remove_recent_hashtag<C: AsRef<RemoveRecentHashtag>>(
5709    &self,
5710    remove_recent_hashtag: C,
5711  ) -> RTDResult<Ok> {
5712    async_caller!(Ok);
5713    async_caller(&self.api, remove_recent_hashtag.as_ref()).await
5714  }
5715
5716  pub async fn remove_recent_sticker<C: AsRef<RemoveRecentSticker>>(
5717    &self,
5718    remove_recent_sticker: C,
5719  ) -> RTDResult<Ok> {
5720    async_caller!(Ok);
5721    async_caller(&self.api, remove_recent_sticker.as_ref()).await
5722  }
5723
5724  pub async fn remove_recently_found_chat<C: AsRef<RemoveRecentlyFoundChat>>(
5725    &self,
5726    remove_recently_found_chat: C,
5727  ) -> RTDResult<Ok> {
5728    async_caller!(Ok);
5729    async_caller(&self.api, remove_recently_found_chat.as_ref()).await
5730  }
5731
5732  pub async fn remove_saved_animation<C: AsRef<RemoveSavedAnimation>>(
5733    &self,
5734    remove_saved_animation: C,
5735  ) -> RTDResult<Ok> {
5736    async_caller!(Ok);
5737    async_caller(&self.api, remove_saved_animation.as_ref()).await
5738  }
5739
5740  pub async fn remove_saved_notification_sound<C: AsRef<RemoveSavedNotificationSound>>(
5741    &self,
5742    remove_saved_notification_sound: C,
5743  ) -> RTDResult<Ok> {
5744    async_caller!(Ok);
5745    async_caller(&self.api, remove_saved_notification_sound.as_ref()).await
5746  }
5747
5748  pub async fn remove_searched_for_tag<C: AsRef<RemoveSearchedForTag>>(
5749    &self,
5750    remove_searched_for_tag: C,
5751  ) -> RTDResult<Ok> {
5752    async_caller!(Ok);
5753    async_caller(&self.api, remove_searched_for_tag.as_ref()).await
5754  }
5755
5756  pub async fn remove_sticker_from_set<C: AsRef<RemoveStickerFromSet>>(
5757    &self,
5758    remove_sticker_from_set: C,
5759  ) -> RTDResult<Ok> {
5760    async_caller!(Ok);
5761    async_caller(&self.api, remove_sticker_from_set.as_ref()).await
5762  }
5763
5764  pub async fn remove_story_album_stories<C: AsRef<RemoveStoryAlbumStories>>(
5765    &self,
5766    remove_story_album_stories: C,
5767  ) -> RTDResult<StoryAlbum> {
5768    async_caller!(StoryAlbum);
5769    async_caller(&self.api, remove_story_album_stories.as_ref()).await
5770  }
5771
5772  pub async fn remove_text_composition_style<C: AsRef<RemoveTextCompositionStyle>>(
5773    &self,
5774    remove_text_composition_style: C,
5775  ) -> RTDResult<Ok> {
5776    async_caller!(Ok);
5777    async_caller(&self.api, remove_text_composition_style.as_ref()).await
5778  }
5779
5780  pub async fn remove_top_chat<C: AsRef<RemoveTopChat>>(
5781    &self,
5782    remove_top_chat: C,
5783  ) -> RTDResult<Ok> {
5784    async_caller!(Ok);
5785    async_caller(&self.api, remove_top_chat.as_ref()).await
5786  }
5787
5788  pub async fn remove_web_browser_settings_exception<
5789    C: AsRef<RemoveWebBrowserSettingsException>,
5790  >(
5791    &self,
5792    remove_web_browser_settings_exception: C,
5793  ) -> RTDResult<Ok> {
5794    async_caller!(Ok);
5795    async_caller(&self.api, remove_web_browser_settings_exception.as_ref()).await
5796  }
5797
5798  pub async fn reorder_active_usernames<C: AsRef<ReorderActiveUsernames>>(
5799    &self,
5800    reorder_active_usernames: C,
5801  ) -> RTDResult<Ok> {
5802    async_caller!(Ok);
5803    async_caller(&self.api, reorder_active_usernames.as_ref()).await
5804  }
5805
5806  pub async fn reorder_bot_active_usernames<C: AsRef<ReorderBotActiveUsernames>>(
5807    &self,
5808    reorder_bot_active_usernames: C,
5809  ) -> RTDResult<Ok> {
5810    async_caller!(Ok);
5811    async_caller(&self.api, reorder_bot_active_usernames.as_ref()).await
5812  }
5813
5814  pub async fn reorder_bot_media_previews<C: AsRef<ReorderBotMediaPreviews>>(
5815    &self,
5816    reorder_bot_media_previews: C,
5817  ) -> RTDResult<Ok> {
5818    async_caller!(Ok);
5819    async_caller(&self.api, reorder_bot_media_previews.as_ref()).await
5820  }
5821
5822  pub async fn reorder_chat_folders<C: AsRef<ReorderChatFolders>>(
5823    &self,
5824    reorder_chat_folders: C,
5825  ) -> RTDResult<Ok> {
5826    async_caller!(Ok);
5827    async_caller(&self.api, reorder_chat_folders.as_ref()).await
5828  }
5829
5830  pub async fn reorder_gift_collection_gifts<C: AsRef<ReorderGiftCollectionGifts>>(
5831    &self,
5832    reorder_gift_collection_gifts: C,
5833  ) -> RTDResult<GiftCollection> {
5834    async_caller!(GiftCollection);
5835    async_caller(&self.api, reorder_gift_collection_gifts.as_ref()).await
5836  }
5837
5838  pub async fn reorder_gift_collections<C: AsRef<ReorderGiftCollections>>(
5839    &self,
5840    reorder_gift_collections: C,
5841  ) -> RTDResult<Ok> {
5842    async_caller!(Ok);
5843    async_caller(&self.api, reorder_gift_collections.as_ref()).await
5844  }
5845
5846  pub async fn reorder_installed_sticker_sets<C: AsRef<ReorderInstalledStickerSets>>(
5847    &self,
5848    reorder_installed_sticker_sets: C,
5849  ) -> RTDResult<Ok> {
5850    async_caller!(Ok);
5851    async_caller(&self.api, reorder_installed_sticker_sets.as_ref()).await
5852  }
5853
5854  pub async fn reorder_quick_reply_shortcuts<C: AsRef<ReorderQuickReplyShortcuts>>(
5855    &self,
5856    reorder_quick_reply_shortcuts: C,
5857  ) -> RTDResult<Ok> {
5858    async_caller!(Ok);
5859    async_caller(&self.api, reorder_quick_reply_shortcuts.as_ref()).await
5860  }
5861
5862  pub async fn reorder_story_album_stories<C: AsRef<ReorderStoryAlbumStories>>(
5863    &self,
5864    reorder_story_album_stories: C,
5865  ) -> RTDResult<StoryAlbum> {
5866    async_caller!(StoryAlbum);
5867    async_caller(&self.api, reorder_story_album_stories.as_ref()).await
5868  }
5869
5870  pub async fn reorder_story_albums<C: AsRef<ReorderStoryAlbums>>(
5871    &self,
5872    reorder_story_albums: C,
5873  ) -> RTDResult<Ok> {
5874    async_caller!(Ok);
5875    async_caller(&self.api, reorder_story_albums.as_ref()).await
5876  }
5877
5878  pub async fn reorder_supergroup_active_usernames<C: AsRef<ReorderSupergroupActiveUsernames>>(
5879    &self,
5880    reorder_supergroup_active_usernames: C,
5881  ) -> RTDResult<Ok> {
5882    async_caller!(Ok);
5883    async_caller(&self.api, reorder_supergroup_active_usernames.as_ref()).await
5884  }
5885
5886  pub async fn replace_live_story_rtmp_url<C: AsRef<ReplaceLiveStoryRtmpUrl>>(
5887    &self,
5888    replace_live_story_rtmp_url: C,
5889  ) -> RTDResult<RtmpUrl> {
5890    async_caller!(RtmpUrl);
5891    async_caller(&self.api, replace_live_story_rtmp_url.as_ref()).await
5892  }
5893
5894  pub async fn replace_primary_chat_invite_link<C: AsRef<ReplacePrimaryChatInviteLink>>(
5895    &self,
5896    replace_primary_chat_invite_link: C,
5897  ) -> RTDResult<ChatInviteLink> {
5898    async_caller!(ChatInviteLink);
5899    async_caller(&self.api, replace_primary_chat_invite_link.as_ref()).await
5900  }
5901
5902  pub async fn replace_sticker_in_set<C: AsRef<ReplaceStickerInSet>>(
5903    &self,
5904    replace_sticker_in_set: C,
5905  ) -> RTDResult<Ok> {
5906    async_caller!(Ok);
5907    async_caller(&self.api, replace_sticker_in_set.as_ref()).await
5908  }
5909
5910  pub async fn replace_ton_wallet<C: AsRef<ReplaceTonWallet>>(
5911    &self,
5912    replace_ton_wallet: C,
5913  ) -> RTDResult<Ok> {
5914    async_caller!(Ok);
5915    async_caller(&self.api, replace_ton_wallet.as_ref()).await
5916  }
5917
5918  pub async fn replace_video_chat_rtmp_url<C: AsRef<ReplaceVideoChatRtmpUrl>>(
5919    &self,
5920    replace_video_chat_rtmp_url: C,
5921  ) -> RTDResult<RtmpUrl> {
5922    async_caller!(RtmpUrl);
5923    async_caller(&self.api, replace_video_chat_rtmp_url.as_ref()).await
5924  }
5925
5926  pub async fn reply_to_callback_query_with_ephemeral_message<
5927    C: AsRef<ReplyToCallbackQueryWithEphemeralMessage>,
5928  >(
5929    &self,
5930    reply_to_callback_query_with_ephemeral_message: C,
5931  ) -> RTDResult<Ok> {
5932    async_caller!(Ok);
5933    async_caller(
5934      &self.api,
5935      reply_to_callback_query_with_ephemeral_message.as_ref(),
5936    )
5937    .await
5938  }
5939
5940  pub async fn report_authentication_code_missing<C: AsRef<ReportAuthenticationCodeMissing>>(
5941    &self,
5942    report_authentication_code_missing: C,
5943  ) -> RTDResult<Ok> {
5944    async_caller!(Ok);
5945    async_caller(&self.api, report_authentication_code_missing.as_ref()).await
5946  }
5947
5948  pub async fn report_chat<C: AsRef<ReportChat>>(
5949    &self,
5950    report_chat: C,
5951  ) -> RTDResult<ReportChatResult> {
5952    async_caller!(ReportChatResult);
5953    async_caller(&self.api, report_chat.as_ref()).await
5954  }
5955
5956  pub async fn report_chat_photo<C: AsRef<ReportChatPhoto>>(
5957    &self,
5958    report_chat_photo: C,
5959  ) -> RTDResult<Ok> {
5960    async_caller!(Ok);
5961    async_caller(&self.api, report_chat_photo.as_ref()).await
5962  }
5963
5964  pub async fn report_chat_sponsored_message<C: AsRef<ReportChatSponsoredMessage>>(
5965    &self,
5966    report_chat_sponsored_message: C,
5967  ) -> RTDResult<ReportSponsoredResult> {
5968    async_caller!(ReportSponsoredResult);
5969    async_caller(&self.api, report_chat_sponsored_message.as_ref()).await
5970  }
5971
5972  pub async fn report_message_reactions<C: AsRef<ReportMessageReactions>>(
5973    &self,
5974    report_message_reactions: C,
5975  ) -> RTDResult<Ok> {
5976    async_caller!(Ok);
5977    async_caller(&self.api, report_message_reactions.as_ref()).await
5978  }
5979
5980  pub async fn report_phone_number_code_missing<C: AsRef<ReportPhoneNumberCodeMissing>>(
5981    &self,
5982    report_phone_number_code_missing: C,
5983  ) -> RTDResult<Ok> {
5984    async_caller!(Ok);
5985    async_caller(&self.api, report_phone_number_code_missing.as_ref()).await
5986  }
5987
5988  pub async fn report_sponsored_chat<C: AsRef<ReportSponsoredChat>>(
5989    &self,
5990    report_sponsored_chat: C,
5991  ) -> RTDResult<ReportSponsoredResult> {
5992    async_caller!(ReportSponsoredResult);
5993    async_caller(&self.api, report_sponsored_chat.as_ref()).await
5994  }
5995
5996  pub async fn report_story<C: AsRef<ReportStory>>(
5997    &self,
5998    report_story: C,
5999  ) -> RTDResult<ReportStoryResult> {
6000    async_caller!(ReportStoryResult);
6001    async_caller(&self.api, report_story.as_ref()).await
6002  }
6003
6004  pub async fn report_supergroup_anti_spam_false_positive<
6005    C: AsRef<ReportSupergroupAntiSpamFalsePositive>,
6006  >(
6007    &self,
6008    report_supergroup_anti_spam_false_positive: C,
6009  ) -> RTDResult<Ok> {
6010    async_caller!(Ok);
6011    async_caller(
6012      &self.api,
6013      report_supergroup_anti_spam_false_positive.as_ref(),
6014    )
6015    .await
6016  }
6017
6018  pub async fn report_supergroup_spam<C: AsRef<ReportSupergroupSpam>>(
6019    &self,
6020    report_supergroup_spam: C,
6021  ) -> RTDResult<Ok> {
6022    async_caller!(Ok);
6023    async_caller(&self.api, report_supergroup_spam.as_ref()).await
6024  }
6025
6026  pub async fn report_video_message_advertisement<C: AsRef<ReportVideoMessageAdvertisement>>(
6027    &self,
6028    report_video_message_advertisement: C,
6029  ) -> RTDResult<ReportSponsoredResult> {
6030    async_caller!(ReportSponsoredResult);
6031    async_caller(&self.api, report_video_message_advertisement.as_ref()).await
6032  }
6033
6034  pub async fn report_web_proxy_carrier_error<C: AsRef<ReportWebProxyCarrierError>>(
6035    &self,
6036    report_web_proxy_carrier_error: C,
6037  ) -> RTDResult<Ok> {
6038    async_caller!(Ok);
6039    async_caller(&self.api, report_web_proxy_carrier_error.as_ref()).await
6040  }
6041
6042  pub async fn request_authentication_password_recovery<
6043    C: AsRef<RequestAuthenticationPasswordRecovery>,
6044  >(
6045    &self,
6046    request_authentication_password_recovery: C,
6047  ) -> RTDResult<Ok> {
6048    async_caller!(Ok);
6049    async_caller(&self.api, request_authentication_password_recovery.as_ref()).await
6050  }
6051
6052  pub async fn request_password_recovery<C: AsRef<RequestPasswordRecovery>>(
6053    &self,
6054    request_password_recovery: C,
6055  ) -> RTDResult<EmailAddressAuthenticationCodeInfo> {
6056    async_caller!(EmailAddressAuthenticationCodeInfo);
6057    async_caller(&self.api, request_password_recovery.as_ref()).await
6058  }
6059
6060  pub async fn request_qr_code_authentication<C: AsRef<RequestQrCodeAuthentication>>(
6061    &self,
6062    request_qr_code_authentication: C,
6063  ) -> RTDResult<Ok> {
6064    async_caller!(Ok);
6065    async_caller(&self.api, request_qr_code_authentication.as_ref()).await
6066  }
6067
6068  pub async fn resend_authentication_code<C: AsRef<ResendAuthenticationCode>>(
6069    &self,
6070    resend_authentication_code: C,
6071  ) -> RTDResult<Ok> {
6072    async_caller!(Ok);
6073    async_caller(&self.api, resend_authentication_code.as_ref()).await
6074  }
6075
6076  pub async fn resend_email_address_verification_code<
6077    C: AsRef<ResendEmailAddressVerificationCode>,
6078  >(
6079    &self,
6080    resend_email_address_verification_code: C,
6081  ) -> RTDResult<EmailAddressAuthenticationCodeInfo> {
6082    async_caller!(EmailAddressAuthenticationCodeInfo);
6083    async_caller(&self.api, resend_email_address_verification_code.as_ref()).await
6084  }
6085
6086  pub async fn resend_login_email_address_code<C: AsRef<ResendLoginEmailAddressCode>>(
6087    &self,
6088    resend_login_email_address_code: C,
6089  ) -> RTDResult<EmailAddressAuthenticationCodeInfo> {
6090    async_caller!(EmailAddressAuthenticationCodeInfo);
6091    async_caller(&self.api, resend_login_email_address_code.as_ref()).await
6092  }
6093
6094  pub async fn resend_messages<C: AsRef<ResendMessages>>(
6095    &self,
6096    resend_messages: C,
6097  ) -> RTDResult<Messages> {
6098    async_caller!(Messages);
6099    async_caller(&self.api, resend_messages.as_ref()).await
6100  }
6101
6102  pub async fn resend_phone_number_code<C: AsRef<ResendPhoneNumberCode>>(
6103    &self,
6104    resend_phone_number_code: C,
6105  ) -> RTDResult<AuthenticationCodeInfo> {
6106    async_caller!(AuthenticationCodeInfo);
6107    async_caller(&self.api, resend_phone_number_code.as_ref()).await
6108  }
6109
6110  pub async fn resend_recovery_email_address_code<C: AsRef<ResendRecoveryEmailAddressCode>>(
6111    &self,
6112    resend_recovery_email_address_code: C,
6113  ) -> RTDResult<PasswordState> {
6114    async_caller!(PasswordState);
6115    async_caller(&self.api, resend_recovery_email_address_code.as_ref()).await
6116  }
6117
6118  pub async fn reset_all_notification_settings<C: AsRef<ResetAllNotificationSettings>>(
6119    &self,
6120    reset_all_notification_settings: C,
6121  ) -> RTDResult<Ok> {
6122    async_caller!(Ok);
6123    async_caller(&self.api, reset_all_notification_settings.as_ref()).await
6124  }
6125
6126  pub async fn reset_authentication_email_address<C: AsRef<ResetAuthenticationEmailAddress>>(
6127    &self,
6128    reset_authentication_email_address: C,
6129  ) -> RTDResult<Ok> {
6130    async_caller!(Ok);
6131    async_caller(&self.api, reset_authentication_email_address.as_ref()).await
6132  }
6133
6134  pub async fn reset_installed_backgrounds<C: AsRef<ResetInstalledBackgrounds>>(
6135    &self,
6136    reset_installed_backgrounds: C,
6137  ) -> RTDResult<Ok> {
6138    async_caller!(Ok);
6139    async_caller(&self.api, reset_installed_backgrounds.as_ref()).await
6140  }
6141
6142  pub async fn reset_network_statistics<C: AsRef<ResetNetworkStatistics>>(
6143    &self,
6144    reset_network_statistics: C,
6145  ) -> RTDResult<Ok> {
6146    async_caller!(Ok);
6147    async_caller(&self.api, reset_network_statistics.as_ref()).await
6148  }
6149
6150  pub async fn reset_password<C: AsRef<ResetPassword>>(
6151    &self,
6152    reset_password: C,
6153  ) -> RTDResult<ResetPasswordResult> {
6154    async_caller!(ResetPasswordResult);
6155    async_caller(&self.api, reset_password.as_ref()).await
6156  }
6157
6158  pub async fn reuse_star_subscription<C: AsRef<ReuseStarSubscription>>(
6159    &self,
6160    reuse_star_subscription: C,
6161  ) -> RTDResult<Ok> {
6162    async_caller!(Ok);
6163    async_caller(&self.api, reuse_star_subscription.as_ref()).await
6164  }
6165
6166  pub async fn revoke_chat_invite_link<C: AsRef<RevokeChatInviteLink>>(
6167    &self,
6168    revoke_chat_invite_link: C,
6169  ) -> RTDResult<ChatInviteLinks> {
6170    async_caller!(ChatInviteLinks);
6171    async_caller(&self.api, revoke_chat_invite_link.as_ref()).await
6172  }
6173
6174  pub async fn revoke_group_call_invite_link<C: AsRef<RevokeGroupCallInviteLink>>(
6175    &self,
6176    revoke_group_call_invite_link: C,
6177  ) -> RTDResult<Ok> {
6178    async_caller!(Ok);
6179    async_caller(&self.api, revoke_group_call_invite_link.as_ref()).await
6180  }
6181
6182  pub async fn save_application_log_event<C: AsRef<SaveApplicationLogEvent>>(
6183    &self,
6184    save_application_log_event: C,
6185  ) -> RTDResult<Ok> {
6186    async_caller!(Ok);
6187    async_caller(&self.api, save_application_log_event.as_ref()).await
6188  }
6189
6190  pub async fn save_prepared_inline_message<C: AsRef<SavePreparedInlineMessage>>(
6191    &self,
6192    save_prepared_inline_message: C,
6193  ) -> RTDResult<PreparedInlineMessageId> {
6194    async_caller!(PreparedInlineMessageId);
6195    async_caller(&self.api, save_prepared_inline_message.as_ref()).await
6196  }
6197
6198  pub async fn save_prepared_keyboard_button<C: AsRef<SavePreparedKeyboardButton>>(
6199    &self,
6200    save_prepared_keyboard_button: C,
6201  ) -> RTDResult<Text> {
6202    async_caller!(Text);
6203    async_caller(&self.api, save_prepared_keyboard_button.as_ref()).await
6204  }
6205
6206  pub async fn search_affiliate_programs<C: AsRef<SearchAffiliatePrograms>>(
6207    &self,
6208    search_affiliate_programs: C,
6209  ) -> RTDResult<FoundAffiliatePrograms> {
6210    async_caller!(FoundAffiliatePrograms);
6211    async_caller(&self.api, search_affiliate_programs.as_ref()).await
6212  }
6213
6214  pub async fn search_background<C: AsRef<SearchBackground>>(
6215    &self,
6216    search_background: C,
6217  ) -> RTDResult<Background> {
6218    async_caller!(Background);
6219    async_caller(&self.api, search_background.as_ref()).await
6220  }
6221
6222  pub async fn search_call_messages<C: AsRef<SearchCallMessages>>(
6223    &self,
6224    search_call_messages: C,
6225  ) -> RTDResult<FoundMessages> {
6226    async_caller!(FoundMessages);
6227    async_caller(&self.api, search_call_messages.as_ref()).await
6228  }
6229
6230  pub async fn search_chat_affiliate_program<C: AsRef<SearchChatAffiliateProgram>>(
6231    &self,
6232    search_chat_affiliate_program: C,
6233  ) -> RTDResult<Chat> {
6234    async_caller!(Chat);
6235    async_caller(&self.api, search_chat_affiliate_program.as_ref()).await
6236  }
6237
6238  pub async fn search_chat_members<C: AsRef<SearchChatMembers>>(
6239    &self,
6240    search_chat_members: C,
6241  ) -> RTDResult<ChatMembers> {
6242    async_caller!(ChatMembers);
6243    async_caller(&self.api, search_chat_members.as_ref()).await
6244  }
6245
6246  pub async fn search_chat_messages<C: AsRef<SearchChatMessages>>(
6247    &self,
6248    search_chat_messages: C,
6249  ) -> RTDResult<FoundChatMessages> {
6250    async_caller!(FoundChatMessages);
6251    async_caller(&self.api, search_chat_messages.as_ref()).await
6252  }
6253
6254  pub async fn search_chat_recent_location_messages<C: AsRef<SearchChatRecentLocationMessages>>(
6255    &self,
6256    search_chat_recent_location_messages: C,
6257  ) -> RTDResult<Messages> {
6258    async_caller!(Messages);
6259    async_caller(&self.api, search_chat_recent_location_messages.as_ref()).await
6260  }
6261
6262  pub async fn search_chats<C: AsRef<SearchChats>>(&self, search_chats: C) -> RTDResult<Chats> {
6263    async_caller!(Chats);
6264    async_caller(&self.api, search_chats.as_ref()).await
6265  }
6266
6267  pub async fn search_chats_on_server<C: AsRef<SearchChatsOnServer>>(
6268    &self,
6269    search_chats_on_server: C,
6270  ) -> RTDResult<Chats> {
6271    async_caller!(Chats);
6272    async_caller(&self.api, search_chats_on_server.as_ref()).await
6273  }
6274
6275  pub async fn search_contacts<C: AsRef<SearchContacts>>(
6276    &self,
6277    search_contacts: C,
6278  ) -> RTDResult<Users> {
6279    async_caller!(Users);
6280    async_caller(&self.api, search_contacts.as_ref()).await
6281  }
6282
6283  pub async fn search_emojis<C: AsRef<SearchEmojis>>(
6284    &self,
6285    search_emojis: C,
6286  ) -> RTDResult<EmojiKeywords> {
6287    async_caller!(EmojiKeywords);
6288    async_caller(&self.api, search_emojis.as_ref()).await
6289  }
6290
6291  pub async fn search_file_downloads<C: AsRef<SearchFileDownloads>>(
6292    &self,
6293    search_file_downloads: C,
6294  ) -> RTDResult<FoundFileDownloads> {
6295    async_caller!(FoundFileDownloads);
6296    async_caller(&self.api, search_file_downloads.as_ref()).await
6297  }
6298
6299  pub async fn search_gifts_for_resale<C: AsRef<SearchGiftsForResale>>(
6300    &self,
6301    search_gifts_for_resale: C,
6302  ) -> RTDResult<GiftsForResale> {
6303    async_caller!(GiftsForResale);
6304    async_caller(&self.api, search_gifts_for_resale.as_ref()).await
6305  }
6306
6307  pub async fn search_hashtags<C: AsRef<SearchHashtags>>(
6308    &self,
6309    search_hashtags: C,
6310  ) -> RTDResult<Hashtags> {
6311    async_caller!(Hashtags);
6312    async_caller(&self.api, search_hashtags.as_ref()).await
6313  }
6314
6315  pub async fn search_installed_sticker_sets<C: AsRef<SearchInstalledStickerSets>>(
6316    &self,
6317    search_installed_sticker_sets: C,
6318  ) -> RTDResult<StickerSets> {
6319    async_caller!(StickerSets);
6320    async_caller(&self.api, search_installed_sticker_sets.as_ref()).await
6321  }
6322
6323  pub async fn search_messages<C: AsRef<SearchMessages>>(
6324    &self,
6325    search_messages: C,
6326  ) -> RTDResult<FoundMessages> {
6327    async_caller!(FoundMessages);
6328    async_caller(&self.api, search_messages.as_ref()).await
6329  }
6330
6331  pub async fn search_outgoing_document_messages<C: AsRef<SearchOutgoingDocumentMessages>>(
6332    &self,
6333    search_outgoing_document_messages: C,
6334  ) -> RTDResult<FoundMessages> {
6335    async_caller!(FoundMessages);
6336    async_caller(&self.api, search_outgoing_document_messages.as_ref()).await
6337  }
6338
6339  pub async fn search_public_chat<C: AsRef<SearchPublicChat>>(
6340    &self,
6341    search_public_chat: C,
6342  ) -> RTDResult<Chat> {
6343    async_caller!(Chat);
6344    async_caller(&self.api, search_public_chat.as_ref()).await
6345  }
6346
6347  pub async fn search_public_chats<C: AsRef<SearchPublicChats>>(
6348    &self,
6349    search_public_chats: C,
6350  ) -> RTDResult<Chats> {
6351    async_caller!(Chats);
6352    async_caller(&self.api, search_public_chats.as_ref()).await
6353  }
6354
6355  pub async fn search_public_messages_by_tag<C: AsRef<SearchPublicMessagesByTag>>(
6356    &self,
6357    search_public_messages_by_tag: C,
6358  ) -> RTDResult<FoundMessages> {
6359    async_caller!(FoundMessages);
6360    async_caller(&self.api, search_public_messages_by_tag.as_ref()).await
6361  }
6362
6363  pub async fn search_public_posts<C: AsRef<SearchPublicPosts>>(
6364    &self,
6365    search_public_posts: C,
6366  ) -> RTDResult<FoundPublicPosts> {
6367    async_caller!(FoundPublicPosts);
6368    async_caller(&self.api, search_public_posts.as_ref()).await
6369  }
6370
6371  pub async fn search_public_stories_by_location<C: AsRef<SearchPublicStoriesByLocation>>(
6372    &self,
6373    search_public_stories_by_location: C,
6374  ) -> RTDResult<FoundStories> {
6375    async_caller!(FoundStories);
6376    async_caller(&self.api, search_public_stories_by_location.as_ref()).await
6377  }
6378
6379  pub async fn search_public_stories_by_tag<C: AsRef<SearchPublicStoriesByTag>>(
6380    &self,
6381    search_public_stories_by_tag: C,
6382  ) -> RTDResult<FoundStories> {
6383    async_caller!(FoundStories);
6384    async_caller(&self.api, search_public_stories_by_tag.as_ref()).await
6385  }
6386
6387  pub async fn search_public_stories_by_venue<C: AsRef<SearchPublicStoriesByVenue>>(
6388    &self,
6389    search_public_stories_by_venue: C,
6390  ) -> RTDResult<FoundStories> {
6391    async_caller!(FoundStories);
6392    async_caller(&self.api, search_public_stories_by_venue.as_ref()).await
6393  }
6394
6395  pub async fn search_quote<C: AsRef<SearchQuote>>(
6396    &self,
6397    search_quote: C,
6398  ) -> RTDResult<FoundPosition> {
6399    async_caller!(FoundPosition);
6400    async_caller(&self.api, search_quote.as_ref()).await
6401  }
6402
6403  pub async fn search_recently_found_chats<C: AsRef<SearchRecentlyFoundChats>>(
6404    &self,
6405    search_recently_found_chats: C,
6406  ) -> RTDResult<Chats> {
6407    async_caller!(Chats);
6408    async_caller(&self.api, search_recently_found_chats.as_ref()).await
6409  }
6410
6411  pub async fn search_saved_messages<C: AsRef<SearchSavedMessages>>(
6412    &self,
6413    search_saved_messages: C,
6414  ) -> RTDResult<FoundChatMessages> {
6415    async_caller!(FoundChatMessages);
6416    async_caller(&self.api, search_saved_messages.as_ref()).await
6417  }
6418
6419  pub async fn search_secret_messages<C: AsRef<SearchSecretMessages>>(
6420    &self,
6421    search_secret_messages: C,
6422  ) -> RTDResult<FoundMessages> {
6423    async_caller!(FoundMessages);
6424    async_caller(&self.api, search_secret_messages.as_ref()).await
6425  }
6426
6427  pub async fn search_sticker_set<C: AsRef<SearchStickerSet>>(
6428    &self,
6429    search_sticker_set: C,
6430  ) -> RTDResult<StickerSet> {
6431    async_caller!(StickerSet);
6432    async_caller(&self.api, search_sticker_set.as_ref()).await
6433  }
6434
6435  pub async fn search_sticker_sets<C: AsRef<SearchStickerSets>>(
6436    &self,
6437    search_sticker_sets: C,
6438  ) -> RTDResult<StickerSets> {
6439    async_caller!(StickerSets);
6440    async_caller(&self.api, search_sticker_sets.as_ref()).await
6441  }
6442
6443  pub async fn search_stickers<C: AsRef<SearchStickers>>(
6444    &self,
6445    search_stickers: C,
6446  ) -> RTDResult<Stickers> {
6447    async_caller!(Stickers);
6448    async_caller(&self.api, search_stickers.as_ref()).await
6449  }
6450
6451  pub async fn search_strings_by_prefix<C: AsRef<SearchStringsByPrefix>>(
6452    &self,
6453    search_strings_by_prefix: C,
6454  ) -> RTDResult<FoundPositions> {
6455    async_caller!(FoundPositions);
6456    async_caller(&self.api, search_strings_by_prefix.as_ref()).await
6457  }
6458
6459  pub async fn search_text_composition_style<C: AsRef<SearchTextCompositionStyle>>(
6460    &self,
6461    search_text_composition_style: C,
6462  ) -> RTDResult<TextCompositionStyle> {
6463    async_caller!(TextCompositionStyle);
6464    async_caller(&self.api, search_text_composition_style.as_ref()).await
6465  }
6466
6467  pub async fn search_user_by_phone_number<C: AsRef<SearchUserByPhoneNumber>>(
6468    &self,
6469    search_user_by_phone_number: C,
6470  ) -> RTDResult<User> {
6471    async_caller!(User);
6472    async_caller(&self.api, search_user_by_phone_number.as_ref()).await
6473  }
6474
6475  pub async fn search_user_by_token<C: AsRef<SearchUserByToken>>(
6476    &self,
6477    search_user_by_token: C,
6478  ) -> RTDResult<User> {
6479    async_caller!(User);
6480    async_caller(&self.api, search_user_by_token.as_ref()).await
6481  }
6482
6483  pub async fn search_web_app<C: AsRef<SearchWebApp>>(
6484    &self,
6485    search_web_app: C,
6486  ) -> RTDResult<FoundWebApp> {
6487    async_caller!(FoundWebApp);
6488    async_caller(&self.api, search_web_app.as_ref()).await
6489  }
6490
6491  pub async fn sell_gift<C: AsRef<SellGift>>(&self, sell_gift: C) -> RTDResult<Ok> {
6492    async_caller!(Ok);
6493    async_caller(&self.api, sell_gift.as_ref()).await
6494  }
6495
6496  pub async fn send_authentication_firebase_sms<C: AsRef<SendAuthenticationFirebaseSms>>(
6497    &self,
6498    send_authentication_firebase_sms: C,
6499  ) -> RTDResult<Ok> {
6500    async_caller!(Ok);
6501    async_caller(&self.api, send_authentication_firebase_sms.as_ref()).await
6502  }
6503
6504  pub async fn send_bot_start_message<C: AsRef<SendBotStartMessage>>(
6505    &self,
6506    send_bot_start_message: C,
6507  ) -> RTDResult<Message> {
6508    async_caller!(Message);
6509    async_caller(&self.api, send_bot_start_message.as_ref()).await
6510  }
6511
6512  pub async fn send_business_message<C: AsRef<SendBusinessMessage>>(
6513    &self,
6514    send_business_message: C,
6515  ) -> RTDResult<BusinessMessage> {
6516    async_caller!(BusinessMessage);
6517    async_caller(&self.api, send_business_message.as_ref()).await
6518  }
6519
6520  pub async fn send_business_message_album<C: AsRef<SendBusinessMessageAlbum>>(
6521    &self,
6522    send_business_message_album: C,
6523  ) -> RTDResult<BusinessMessages> {
6524    async_caller!(BusinessMessages);
6525    async_caller(&self.api, send_business_message_album.as_ref()).await
6526  }
6527
6528  pub async fn send_call_debug_information<C: AsRef<SendCallDebugInformation>>(
6529    &self,
6530    send_call_debug_information: C,
6531  ) -> RTDResult<Ok> {
6532    async_caller!(Ok);
6533    async_caller(&self.api, send_call_debug_information.as_ref()).await
6534  }
6535
6536  pub async fn send_call_log<C: AsRef<SendCallLog>>(&self, send_call_log: C) -> RTDResult<Ok> {
6537    async_caller!(Ok);
6538    async_caller(&self.api, send_call_log.as_ref()).await
6539  }
6540
6541  pub async fn send_call_rating<C: AsRef<SendCallRating>>(
6542    &self,
6543    send_call_rating: C,
6544  ) -> RTDResult<Ok> {
6545    async_caller!(Ok);
6546    async_caller(&self.api, send_call_rating.as_ref()).await
6547  }
6548
6549  pub async fn send_call_signaling_data<C: AsRef<SendCallSignalingData>>(
6550    &self,
6551    send_call_signaling_data: C,
6552  ) -> RTDResult<Ok> {
6553    async_caller!(Ok);
6554    async_caller(&self.api, send_call_signaling_data.as_ref()).await
6555  }
6556
6557  pub async fn send_chat_action<C: AsRef<SendChatAction>>(
6558    &self,
6559    send_chat_action: C,
6560  ) -> RTDResult<Ok> {
6561    async_caller!(Ok);
6562    async_caller(&self.api, send_chat_action.as_ref()).await
6563  }
6564
6565  pub async fn send_custom_request<C: AsRef<SendCustomRequest>>(
6566    &self,
6567    send_custom_request: C,
6568  ) -> RTDResult<CustomRequestResult> {
6569    async_caller!(CustomRequestResult);
6570    async_caller(&self.api, send_custom_request.as_ref()).await
6571  }
6572
6573  pub async fn send_email_address_verification_code<C: AsRef<SendEmailAddressVerificationCode>>(
6574    &self,
6575    send_email_address_verification_code: C,
6576  ) -> RTDResult<EmailAddressAuthenticationCodeInfo> {
6577    async_caller!(EmailAddressAuthenticationCodeInfo);
6578    async_caller(&self.api, send_email_address_verification_code.as_ref()).await
6579  }
6580
6581  pub async fn send_ephemeral_message<C: AsRef<SendEphemeralMessage>>(
6582    &self,
6583    send_ephemeral_message: C,
6584  ) -> RTDResult<Message> {
6585    async_caller!(Message);
6586    async_caller(&self.api, send_ephemeral_message.as_ref()).await
6587  }
6588
6589  pub async fn send_gift<C: AsRef<SendGift>>(&self, send_gift: C) -> RTDResult<Ok> {
6590    async_caller!(Ok);
6591    async_caller(&self.api, send_gift.as_ref()).await
6592  }
6593
6594  pub async fn send_gift_purchase_offer<C: AsRef<SendGiftPurchaseOffer>>(
6595    &self,
6596    send_gift_purchase_offer: C,
6597  ) -> RTDResult<Ok> {
6598    async_caller!(Ok);
6599    async_caller(&self.api, send_gift_purchase_offer.as_ref()).await
6600  }
6601
6602  pub async fn send_group_call_message<C: AsRef<SendGroupCallMessage>>(
6603    &self,
6604    send_group_call_message: C,
6605  ) -> RTDResult<Ok> {
6606    async_caller!(Ok);
6607    async_caller(&self.api, send_group_call_message.as_ref()).await
6608  }
6609
6610  pub async fn send_inline_query_result_message<C: AsRef<SendInlineQueryResultMessage>>(
6611    &self,
6612    send_inline_query_result_message: C,
6613  ) -> RTDResult<Message> {
6614    async_caller!(Message);
6615    async_caller(&self.api, send_inline_query_result_message.as_ref()).await
6616  }
6617
6618  pub async fn send_message<C: AsRef<SendMessage>>(&self, send_message: C) -> RTDResult<Message> {
6619    async_caller!(Message);
6620    async_caller(&self.api, send_message.as_ref()).await
6621  }
6622
6623  pub async fn send_message_album<C: AsRef<SendMessageAlbum>>(
6624    &self,
6625    send_message_album: C,
6626  ) -> RTDResult<Messages> {
6627    async_caller!(Messages);
6628    async_caller(&self.api, send_message_album.as_ref()).await
6629  }
6630
6631  pub async fn send_message_view_metrics<C: AsRef<SendMessageViewMetrics>>(
6632    &self,
6633    send_message_view_metrics: C,
6634  ) -> RTDResult<Ok> {
6635    async_caller!(Ok);
6636    async_caller(&self.api, send_message_view_metrics.as_ref()).await
6637  }
6638
6639  pub async fn send_passport_authorization_form<C: AsRef<SendPassportAuthorizationForm>>(
6640    &self,
6641    send_passport_authorization_form: C,
6642  ) -> RTDResult<Ok> {
6643    async_caller!(Ok);
6644    async_caller(&self.api, send_passport_authorization_form.as_ref()).await
6645  }
6646
6647  pub async fn send_payment_form<C: AsRef<SendPaymentForm>>(
6648    &self,
6649    send_payment_form: C,
6650  ) -> RTDResult<PaymentResult> {
6651    async_caller!(PaymentResult);
6652    async_caller(&self.api, send_payment_form.as_ref()).await
6653  }
6654
6655  pub async fn send_phone_number_code<C: AsRef<SendPhoneNumberCode>>(
6656    &self,
6657    send_phone_number_code: C,
6658  ) -> RTDResult<AuthenticationCodeInfo> {
6659    async_caller!(AuthenticationCodeInfo);
6660    async_caller(&self.api, send_phone_number_code.as_ref()).await
6661  }
6662
6663  pub async fn send_phone_number_firebase_sms<C: AsRef<SendPhoneNumberFirebaseSms>>(
6664    &self,
6665    send_phone_number_firebase_sms: C,
6666  ) -> RTDResult<Ok> {
6667    async_caller!(Ok);
6668    async_caller(&self.api, send_phone_number_firebase_sms.as_ref()).await
6669  }
6670
6671  pub async fn send_quick_reply_shortcut_messages<C: AsRef<SendQuickReplyShortcutMessages>>(
6672    &self,
6673    send_quick_reply_shortcut_messages: C,
6674  ) -> RTDResult<Messages> {
6675    async_caller!(Messages);
6676    async_caller(&self.api, send_quick_reply_shortcut_messages.as_ref()).await
6677  }
6678
6679  pub async fn send_resold_gift<C: AsRef<SendResoldGift>>(
6680    &self,
6681    send_resold_gift: C,
6682  ) -> RTDResult<GiftResaleResult> {
6683    async_caller!(GiftResaleResult);
6684    async_caller(&self.api, send_resold_gift.as_ref()).await
6685  }
6686
6687  pub async fn send_rich_message_draft<C: AsRef<SendRichMessageDraft>>(
6688    &self,
6689    send_rich_message_draft: C,
6690  ) -> RTDResult<Ok> {
6691    async_caller!(Ok);
6692    async_caller(&self.api, send_rich_message_draft.as_ref()).await
6693  }
6694
6695  pub async fn send_text_message_draft<C: AsRef<SendTextMessageDraft>>(
6696    &self,
6697    send_text_message_draft: C,
6698  ) -> RTDResult<Ok> {
6699    async_caller!(Ok);
6700    async_caller(&self.api, send_text_message_draft.as_ref()).await
6701  }
6702
6703  pub async fn send_ton_center_api_request<C: AsRef<SendTonCenterApiRequest>>(
6704    &self,
6705    send_ton_center_api_request: C,
6706  ) -> RTDResult<Text> {
6707    async_caller!(Text);
6708    async_caller(&self.api, send_ton_center_api_request.as_ref()).await
6709  }
6710
6711  pub async fn send_ton_connect_session_connect_result<
6712    C: AsRef<SendTonConnectSessionConnectResult>,
6713  >(
6714    &self,
6715    send_ton_connect_session_connect_result: C,
6716  ) -> RTDResult<Ok> {
6717    async_caller!(Ok);
6718    async_caller(&self.api, send_ton_connect_session_connect_result.as_ref()).await
6719  }
6720
6721  pub async fn send_ton_wallet_transfer<C: AsRef<SendTonWalletTransfer>>(
6722    &self,
6723    send_ton_wallet_transfer: C,
6724  ) -> RTDResult<TonWalletTransferResult> {
6725    async_caller!(TonWalletTransferResult);
6726    async_caller(&self.api, send_ton_wallet_transfer.as_ref()).await
6727  }
6728
6729  pub async fn send_web_app_custom_request<C: AsRef<SendWebAppCustomRequest>>(
6730    &self,
6731    send_web_app_custom_request: C,
6732  ) -> RTDResult<CustomRequestResult> {
6733    async_caller!(CustomRequestResult);
6734    async_caller(&self.api, send_web_app_custom_request.as_ref()).await
6735  }
6736
6737  pub async fn send_web_app_data<C: AsRef<SendWebAppData>>(
6738    &self,
6739    send_web_app_data: C,
6740  ) -> RTDResult<Ok> {
6741    async_caller!(Ok);
6742    async_caller(&self.api, send_web_app_data.as_ref()).await
6743  }
6744
6745  pub async fn set_accent_color<C: AsRef<SetAccentColor>>(
6746    &self,
6747    set_accent_color: C,
6748  ) -> RTDResult<Ok> {
6749    async_caller!(Ok);
6750    async_caller(&self.api, set_accent_color.as_ref()).await
6751  }
6752
6753  pub async fn set_account_ttl<C: AsRef<SetAccountTtl>>(
6754    &self,
6755    set_account_ttl: C,
6756  ) -> RTDResult<Ok> {
6757    async_caller!(Ok);
6758    async_caller(&self.api, set_account_ttl.as_ref()).await
6759  }
6760
6761  pub async fn set_alarm<C: AsRef<SetAlarm>>(&self, set_alarm: C) -> RTDResult<Ok> {
6762    async_caller!(Ok);
6763    async_caller(&self.api, set_alarm.as_ref()).await
6764  }
6765
6766  pub async fn set_application_verification_token<C: AsRef<SetApplicationVerificationToken>>(
6767    &self,
6768    set_application_verification_token: C,
6769  ) -> RTDResult<Ok> {
6770    async_caller!(Ok);
6771    async_caller(&self.api, set_application_verification_token.as_ref()).await
6772  }
6773
6774  pub async fn set_archive_chat_list_settings<C: AsRef<SetArchiveChatListSettings>>(
6775    &self,
6776    set_archive_chat_list_settings: C,
6777  ) -> RTDResult<Ok> {
6778    async_caller!(Ok);
6779    async_caller(&self.api, set_archive_chat_list_settings.as_ref()).await
6780  }
6781
6782  pub async fn set_authentication_email_address<C: AsRef<SetAuthenticationEmailAddress>>(
6783    &self,
6784    set_authentication_email_address: C,
6785  ) -> RTDResult<Ok> {
6786    async_caller!(Ok);
6787    async_caller(&self.api, set_authentication_email_address.as_ref()).await
6788  }
6789
6790  pub async fn set_authentication_phone_number<C: AsRef<SetAuthenticationPhoneNumber>>(
6791    &self,
6792    set_authentication_phone_number: C,
6793  ) -> RTDResult<Ok> {
6794    async_caller!(Ok);
6795    async_caller(&self.api, set_authentication_phone_number.as_ref()).await
6796  }
6797
6798  pub async fn set_authentication_premium_purchase_transaction<
6799    C: AsRef<SetAuthenticationPremiumPurchaseTransaction>,
6800  >(
6801    &self,
6802    set_authentication_premium_purchase_transaction: C,
6803  ) -> RTDResult<Ok> {
6804    async_caller!(Ok);
6805    async_caller(
6806      &self.api,
6807      set_authentication_premium_purchase_transaction.as_ref(),
6808    )
6809    .await
6810  }
6811
6812  pub async fn set_auto_download_settings<C: AsRef<SetAutoDownloadSettings>>(
6813    &self,
6814    set_auto_download_settings: C,
6815  ) -> RTDResult<Ok> {
6816    async_caller!(Ok);
6817    async_caller(&self.api, set_auto_download_settings.as_ref()).await
6818  }
6819
6820  pub async fn set_autosave_settings<C: AsRef<SetAutosaveSettings>>(
6821    &self,
6822    set_autosave_settings: C,
6823  ) -> RTDResult<Ok> {
6824    async_caller!(Ok);
6825    async_caller(&self.api, set_autosave_settings.as_ref()).await
6826  }
6827
6828  pub async fn set_bio<C: AsRef<SetBio>>(&self, set_bio: C) -> RTDResult<Ok> {
6829    async_caller!(Ok);
6830    async_caller(&self.api, set_bio.as_ref()).await
6831  }
6832
6833  pub async fn set_birthdate<C: AsRef<SetBirthdate>>(&self, set_birthdate: C) -> RTDResult<Ok> {
6834    async_caller!(Ok);
6835    async_caller(&self.api, set_birthdate.as_ref()).await
6836  }
6837
6838  pub async fn set_bot_info_description<C: AsRef<SetBotInfoDescription>>(
6839    &self,
6840    set_bot_info_description: C,
6841  ) -> RTDResult<Ok> {
6842    async_caller!(Ok);
6843    async_caller(&self.api, set_bot_info_description.as_ref()).await
6844  }
6845
6846  pub async fn set_bot_info_short_description<C: AsRef<SetBotInfoShortDescription>>(
6847    &self,
6848    set_bot_info_short_description: C,
6849  ) -> RTDResult<Ok> {
6850    async_caller!(Ok);
6851    async_caller(&self.api, set_bot_info_short_description.as_ref()).await
6852  }
6853
6854  pub async fn set_bot_name<C: AsRef<SetBotName>>(&self, set_bot_name: C) -> RTDResult<Ok> {
6855    async_caller!(Ok);
6856    async_caller(&self.api, set_bot_name.as_ref()).await
6857  }
6858
6859  pub async fn set_bot_profile_photo<C: AsRef<SetBotProfilePhoto>>(
6860    &self,
6861    set_bot_profile_photo: C,
6862  ) -> RTDResult<Ok> {
6863    async_caller!(Ok);
6864    async_caller(&self.api, set_bot_profile_photo.as_ref()).await
6865  }
6866
6867  pub async fn set_bot_updates_status<C: AsRef<SetBotUpdatesStatus>>(
6868    &self,
6869    set_bot_updates_status: C,
6870  ) -> RTDResult<Ok> {
6871    async_caller!(Ok);
6872    async_caller(&self.api, set_bot_updates_status.as_ref()).await
6873  }
6874
6875  pub async fn set_business_account_bio<C: AsRef<SetBusinessAccountBio>>(
6876    &self,
6877    set_business_account_bio: C,
6878  ) -> RTDResult<Ok> {
6879    async_caller!(Ok);
6880    async_caller(&self.api, set_business_account_bio.as_ref()).await
6881  }
6882
6883  pub async fn set_business_account_gift_settings<C: AsRef<SetBusinessAccountGiftSettings>>(
6884    &self,
6885    set_business_account_gift_settings: C,
6886  ) -> RTDResult<Ok> {
6887    async_caller!(Ok);
6888    async_caller(&self.api, set_business_account_gift_settings.as_ref()).await
6889  }
6890
6891  pub async fn set_business_account_name<C: AsRef<SetBusinessAccountName>>(
6892    &self,
6893    set_business_account_name: C,
6894  ) -> RTDResult<Ok> {
6895    async_caller!(Ok);
6896    async_caller(&self.api, set_business_account_name.as_ref()).await
6897  }
6898
6899  pub async fn set_business_account_profile_photo<C: AsRef<SetBusinessAccountProfilePhoto>>(
6900    &self,
6901    set_business_account_profile_photo: C,
6902  ) -> RTDResult<Ok> {
6903    async_caller!(Ok);
6904    async_caller(&self.api, set_business_account_profile_photo.as_ref()).await
6905  }
6906
6907  pub async fn set_business_account_username<C: AsRef<SetBusinessAccountUsername>>(
6908    &self,
6909    set_business_account_username: C,
6910  ) -> RTDResult<Ok> {
6911    async_caller!(Ok);
6912    async_caller(&self.api, set_business_account_username.as_ref()).await
6913  }
6914
6915  pub async fn set_business_away_message_settings<C: AsRef<SetBusinessAwayMessageSettings>>(
6916    &self,
6917    set_business_away_message_settings: C,
6918  ) -> RTDResult<Ok> {
6919    async_caller!(Ok);
6920    async_caller(&self.api, set_business_away_message_settings.as_ref()).await
6921  }
6922
6923  pub async fn set_business_connected_bot<C: AsRef<SetBusinessConnectedBot>>(
6924    &self,
6925    set_business_connected_bot: C,
6926  ) -> RTDResult<Ok> {
6927    async_caller!(Ok);
6928    async_caller(&self.api, set_business_connected_bot.as_ref()).await
6929  }
6930
6931  pub async fn set_business_greeting_message_settings<
6932    C: AsRef<SetBusinessGreetingMessageSettings>,
6933  >(
6934    &self,
6935    set_business_greeting_message_settings: C,
6936  ) -> RTDResult<Ok> {
6937    async_caller!(Ok);
6938    async_caller(&self.api, set_business_greeting_message_settings.as_ref()).await
6939  }
6940
6941  pub async fn set_business_location<C: AsRef<SetBusinessLocation>>(
6942    &self,
6943    set_business_location: C,
6944  ) -> RTDResult<Ok> {
6945    async_caller!(Ok);
6946    async_caller(&self.api, set_business_location.as_ref()).await
6947  }
6948
6949  pub async fn set_business_message_is_pinned<C: AsRef<SetBusinessMessageIsPinned>>(
6950    &self,
6951    set_business_message_is_pinned: C,
6952  ) -> RTDResult<Ok> {
6953    async_caller!(Ok);
6954    async_caller(&self.api, set_business_message_is_pinned.as_ref()).await
6955  }
6956
6957  pub async fn set_business_opening_hours<C: AsRef<SetBusinessOpeningHours>>(
6958    &self,
6959    set_business_opening_hours: C,
6960  ) -> RTDResult<Ok> {
6961    async_caller!(Ok);
6962    async_caller(&self.api, set_business_opening_hours.as_ref()).await
6963  }
6964
6965  pub async fn set_business_start_page<C: AsRef<SetBusinessStartPage>>(
6966    &self,
6967    set_business_start_page: C,
6968  ) -> RTDResult<Ok> {
6969    async_caller!(Ok);
6970    async_caller(&self.api, set_business_start_page.as_ref()).await
6971  }
6972
6973  pub async fn set_chat_accent_color<C: AsRef<SetChatAccentColor>>(
6974    &self,
6975    set_chat_accent_color: C,
6976  ) -> RTDResult<Ok> {
6977    async_caller!(Ok);
6978    async_caller(&self.api, set_chat_accent_color.as_ref()).await
6979  }
6980
6981  pub async fn set_chat_active_stories_list<C: AsRef<SetChatActiveStoriesList>>(
6982    &self,
6983    set_chat_active_stories_list: C,
6984  ) -> RTDResult<Ok> {
6985    async_caller!(Ok);
6986    async_caller(&self.api, set_chat_active_stories_list.as_ref()).await
6987  }
6988
6989  pub async fn set_chat_affiliate_program<C: AsRef<SetChatAffiliateProgram>>(
6990    &self,
6991    set_chat_affiliate_program: C,
6992  ) -> RTDResult<Ok> {
6993    async_caller!(Ok);
6994    async_caller(&self.api, set_chat_affiliate_program.as_ref()).await
6995  }
6996
6997  pub async fn set_chat_available_reactions<C: AsRef<SetChatAvailableReactions>>(
6998    &self,
6999    set_chat_available_reactions: C,
7000  ) -> RTDResult<Ok> {
7001    async_caller!(Ok);
7002    async_caller(&self.api, set_chat_available_reactions.as_ref()).await
7003  }
7004
7005  pub async fn set_chat_background<C: AsRef<SetChatBackground>>(
7006    &self,
7007    set_chat_background: C,
7008  ) -> RTDResult<Ok> {
7009    async_caller!(Ok);
7010    async_caller(&self.api, set_chat_background.as_ref()).await
7011  }
7012
7013  pub async fn set_chat_client_data<C: AsRef<SetChatClientData>>(
7014    &self,
7015    set_chat_client_data: C,
7016  ) -> RTDResult<Ok> {
7017    async_caller!(Ok);
7018    async_caller(&self.api, set_chat_client_data.as_ref()).await
7019  }
7020
7021  pub async fn set_chat_description<C: AsRef<SetChatDescription>>(
7022    &self,
7023    set_chat_description: C,
7024  ) -> RTDResult<Ok> {
7025    async_caller!(Ok);
7026    async_caller(&self.api, set_chat_description.as_ref()).await
7027  }
7028
7029  pub async fn set_chat_direct_messages_group<C: AsRef<SetChatDirectMessagesGroup>>(
7030    &self,
7031    set_chat_direct_messages_group: C,
7032  ) -> RTDResult<Ok> {
7033    async_caller!(Ok);
7034    async_caller(&self.api, set_chat_direct_messages_group.as_ref()).await
7035  }
7036
7037  pub async fn set_chat_discussion_group<C: AsRef<SetChatDiscussionGroup>>(
7038    &self,
7039    set_chat_discussion_group: C,
7040  ) -> RTDResult<Ok> {
7041    async_caller!(Ok);
7042    async_caller(&self.api, set_chat_discussion_group.as_ref()).await
7043  }
7044
7045  pub async fn set_chat_draft_message<C: AsRef<SetChatDraftMessage>>(
7046    &self,
7047    set_chat_draft_message: C,
7048  ) -> RTDResult<Ok> {
7049    async_caller!(Ok);
7050    async_caller(&self.api, set_chat_draft_message.as_ref()).await
7051  }
7052
7053  pub async fn set_chat_emoji_status<C: AsRef<SetChatEmojiStatus>>(
7054    &self,
7055    set_chat_emoji_status: C,
7056  ) -> RTDResult<Ok> {
7057    async_caller!(Ok);
7058    async_caller(&self.api, set_chat_emoji_status.as_ref()).await
7059  }
7060
7061  pub async fn set_chat_location<C: AsRef<SetChatLocation>>(
7062    &self,
7063    set_chat_location: C,
7064  ) -> RTDResult<Ok> {
7065    async_caller!(Ok);
7066    async_caller(&self.api, set_chat_location.as_ref()).await
7067  }
7068
7069  pub async fn set_chat_member_status<C: AsRef<SetChatMemberStatus>>(
7070    &self,
7071    set_chat_member_status: C,
7072  ) -> RTDResult<Ok> {
7073    async_caller!(Ok);
7074    async_caller(&self.api, set_chat_member_status.as_ref()).await
7075  }
7076
7077  pub async fn set_chat_member_tag<C: AsRef<SetChatMemberTag>>(
7078    &self,
7079    set_chat_member_tag: C,
7080  ) -> RTDResult<Ok> {
7081    async_caller!(Ok);
7082    async_caller(&self.api, set_chat_member_tag.as_ref()).await
7083  }
7084
7085  pub async fn set_chat_message_auto_delete_time<C: AsRef<SetChatMessageAutoDeleteTime>>(
7086    &self,
7087    set_chat_message_auto_delete_time: C,
7088  ) -> RTDResult<Ok> {
7089    async_caller!(Ok);
7090    async_caller(&self.api, set_chat_message_auto_delete_time.as_ref()).await
7091  }
7092
7093  pub async fn set_chat_message_sender<C: AsRef<SetChatMessageSender>>(
7094    &self,
7095    set_chat_message_sender: C,
7096  ) -> RTDResult<Ok> {
7097    async_caller!(Ok);
7098    async_caller(&self.api, set_chat_message_sender.as_ref()).await
7099  }
7100
7101  pub async fn set_chat_notification_settings<C: AsRef<SetChatNotificationSettings>>(
7102    &self,
7103    set_chat_notification_settings: C,
7104  ) -> RTDResult<Ok> {
7105    async_caller!(Ok);
7106    async_caller(&self.api, set_chat_notification_settings.as_ref()).await
7107  }
7108
7109  pub async fn set_chat_paid_message_star_count<C: AsRef<SetChatPaidMessageStarCount>>(
7110    &self,
7111    set_chat_paid_message_star_count: C,
7112  ) -> RTDResult<Ok> {
7113    async_caller!(Ok);
7114    async_caller(&self.api, set_chat_paid_message_star_count.as_ref()).await
7115  }
7116
7117  pub async fn set_chat_permissions<C: AsRef<SetChatPermissions>>(
7118    &self,
7119    set_chat_permissions: C,
7120  ) -> RTDResult<Ok> {
7121    async_caller!(Ok);
7122    async_caller(&self.api, set_chat_permissions.as_ref()).await
7123  }
7124
7125  pub async fn set_chat_photo<C: AsRef<SetChatPhoto>>(&self, set_chat_photo: C) -> RTDResult<Ok> {
7126    async_caller!(Ok);
7127    async_caller(&self.api, set_chat_photo.as_ref()).await
7128  }
7129
7130  pub async fn set_chat_pinned_stories<C: AsRef<SetChatPinnedStories>>(
7131    &self,
7132    set_chat_pinned_stories: C,
7133  ) -> RTDResult<Ok> {
7134    async_caller!(Ok);
7135    async_caller(&self.api, set_chat_pinned_stories.as_ref()).await
7136  }
7137
7138  pub async fn set_chat_profile_accent_color<C: AsRef<SetChatProfileAccentColor>>(
7139    &self,
7140    set_chat_profile_accent_color: C,
7141  ) -> RTDResult<Ok> {
7142    async_caller!(Ok);
7143    async_caller(&self.api, set_chat_profile_accent_color.as_ref()).await
7144  }
7145
7146  pub async fn set_chat_slow_mode_delay<C: AsRef<SetChatSlowModeDelay>>(
7147    &self,
7148    set_chat_slow_mode_delay: C,
7149  ) -> RTDResult<Ok> {
7150    async_caller!(Ok);
7151    async_caller(&self.api, set_chat_slow_mode_delay.as_ref()).await
7152  }
7153
7154  pub async fn set_chat_theme<C: AsRef<SetChatTheme>>(&self, set_chat_theme: C) -> RTDResult<Ok> {
7155    async_caller!(Ok);
7156    async_caller(&self.api, set_chat_theme.as_ref()).await
7157  }
7158
7159  pub async fn set_chat_title<C: AsRef<SetChatTitle>>(&self, set_chat_title: C) -> RTDResult<Ok> {
7160    async_caller!(Ok);
7161    async_caller(&self.api, set_chat_title.as_ref()).await
7162  }
7163
7164  pub async fn set_close_friends<C: AsRef<SetCloseFriends>>(
7165    &self,
7166    set_close_friends: C,
7167  ) -> RTDResult<Ok> {
7168    async_caller!(Ok);
7169    async_caller(&self.api, set_close_friends.as_ref()).await
7170  }
7171
7172  pub async fn set_commands<C: AsRef<SetCommands>>(&self, set_commands: C) -> RTDResult<Ok> {
7173    async_caller!(Ok);
7174    async_caller(&self.api, set_commands.as_ref()).await
7175  }
7176
7177  pub async fn set_community_name<C: AsRef<SetCommunityName>>(
7178    &self,
7179    set_community_name: C,
7180  ) -> RTDResult<Ok> {
7181    async_caller!(Ok);
7182    async_caller(&self.api, set_community_name.as_ref()).await
7183  }
7184
7185  pub async fn set_community_permissions<C: AsRef<SetCommunityPermissions>>(
7186    &self,
7187    set_community_permissions: C,
7188  ) -> RTDResult<Ok> {
7189    async_caller!(Ok);
7190    async_caller(&self.api, set_community_permissions.as_ref()).await
7191  }
7192
7193  pub async fn set_community_photo<C: AsRef<SetCommunityPhoto>>(
7194    &self,
7195    set_community_photo: C,
7196  ) -> RTDResult<Ok> {
7197    async_caller!(Ok);
7198    async_caller(&self.api, set_community_photo.as_ref()).await
7199  }
7200
7201  pub async fn set_custom_emoji_sticker_set_thumbnail<
7202    C: AsRef<SetCustomEmojiStickerSetThumbnail>,
7203  >(
7204    &self,
7205    set_custom_emoji_sticker_set_thumbnail: C,
7206  ) -> RTDResult<Ok> {
7207    async_caller!(Ok);
7208    async_caller(&self.api, set_custom_emoji_sticker_set_thumbnail.as_ref()).await
7209  }
7210
7211  pub async fn set_custom_language_pack<C: AsRef<SetCustomLanguagePack>>(
7212    &self,
7213    set_custom_language_pack: C,
7214  ) -> RTDResult<Ok> {
7215    async_caller!(Ok);
7216    async_caller(&self.api, set_custom_language_pack.as_ref()).await
7217  }
7218
7219  pub async fn set_custom_language_pack_string<C: AsRef<SetCustomLanguagePackString>>(
7220    &self,
7221    set_custom_language_pack_string: C,
7222  ) -> RTDResult<Ok> {
7223    async_caller!(Ok);
7224    async_caller(&self.api, set_custom_language_pack_string.as_ref()).await
7225  }
7226
7227  pub async fn set_database_encryption_key<C: AsRef<SetDatabaseEncryptionKey>>(
7228    &self,
7229    set_database_encryption_key: C,
7230  ) -> RTDResult<Ok> {
7231    async_caller!(Ok);
7232    async_caller(&self.api, set_database_encryption_key.as_ref()).await
7233  }
7234
7235  pub async fn set_default_background<C: AsRef<SetDefaultBackground>>(
7236    &self,
7237    set_default_background: C,
7238  ) -> RTDResult<Background> {
7239    async_caller!(Background);
7240    async_caller(&self.api, set_default_background.as_ref()).await
7241  }
7242
7243  pub async fn set_default_channel_administrator_rights<
7244    C: AsRef<SetDefaultChannelAdministratorRights>,
7245  >(
7246    &self,
7247    set_default_channel_administrator_rights: C,
7248  ) -> RTDResult<Ok> {
7249    async_caller!(Ok);
7250    async_caller(&self.api, set_default_channel_administrator_rights.as_ref()).await
7251  }
7252
7253  pub async fn set_default_group_administrator_rights<
7254    C: AsRef<SetDefaultGroupAdministratorRights>,
7255  >(
7256    &self,
7257    set_default_group_administrator_rights: C,
7258  ) -> RTDResult<Ok> {
7259    async_caller!(Ok);
7260    async_caller(&self.api, set_default_group_administrator_rights.as_ref()).await
7261  }
7262
7263  pub async fn set_default_message_auto_delete_time<C: AsRef<SetDefaultMessageAutoDeleteTime>>(
7264    &self,
7265    set_default_message_auto_delete_time: C,
7266  ) -> RTDResult<Ok> {
7267    async_caller!(Ok);
7268    async_caller(&self.api, set_default_message_auto_delete_time.as_ref()).await
7269  }
7270
7271  pub async fn set_default_reaction_type<C: AsRef<SetDefaultReactionType>>(
7272    &self,
7273    set_default_reaction_type: C,
7274  ) -> RTDResult<Ok> {
7275    async_caller!(Ok);
7276    async_caller(&self.api, set_default_reaction_type.as_ref()).await
7277  }
7278
7279  pub async fn set_direct_messages_chat_topic_is_marked_as_unread<
7280    C: AsRef<SetDirectMessagesChatTopicIsMarkedAsUnread>,
7281  >(
7282    &self,
7283    set_direct_messages_chat_topic_is_marked_as_unread: C,
7284  ) -> RTDResult<Ok> {
7285    async_caller!(Ok);
7286    async_caller(
7287      &self.api,
7288      set_direct_messages_chat_topic_is_marked_as_unread.as_ref(),
7289    )
7290    .await
7291  }
7292
7293  pub async fn set_emoji_status<C: AsRef<SetEmojiStatus>>(
7294    &self,
7295    set_emoji_status: C,
7296  ) -> RTDResult<Ok> {
7297    async_caller!(Ok);
7298    async_caller(&self.api, set_emoji_status.as_ref()).await
7299  }
7300
7301  pub async fn set_file_generation_progress<C: AsRef<SetFileGenerationProgress>>(
7302    &self,
7303    set_file_generation_progress: C,
7304  ) -> RTDResult<Ok> {
7305    async_caller!(Ok);
7306    async_caller(&self.api, set_file_generation_progress.as_ref()).await
7307  }
7308
7309  pub async fn set_forum_topic_notification_settings<
7310    C: AsRef<SetForumTopicNotificationSettings>,
7311  >(
7312    &self,
7313    set_forum_topic_notification_settings: C,
7314  ) -> RTDResult<Ok> {
7315    async_caller!(Ok);
7316    async_caller(&self.api, set_forum_topic_notification_settings.as_ref()).await
7317  }
7318
7319  pub async fn set_game_score<C: AsRef<SetGameScore>>(
7320    &self,
7321    set_game_score: C,
7322  ) -> RTDResult<Message> {
7323    async_caller!(Message);
7324    async_caller(&self.api, set_game_score.as_ref()).await
7325  }
7326
7327  pub async fn set_gift_collection_name<C: AsRef<SetGiftCollectionName>>(
7328    &self,
7329    set_gift_collection_name: C,
7330  ) -> RTDResult<GiftCollection> {
7331    async_caller!(GiftCollection);
7332    async_caller(&self.api, set_gift_collection_name.as_ref()).await
7333  }
7334
7335  pub async fn set_gift_resale_price<C: AsRef<SetGiftResalePrice>>(
7336    &self,
7337    set_gift_resale_price: C,
7338  ) -> RTDResult<Ok> {
7339    async_caller!(Ok);
7340    async_caller(&self.api, set_gift_resale_price.as_ref()).await
7341  }
7342
7343  pub async fn set_gift_settings<C: AsRef<SetGiftSettings>>(
7344    &self,
7345    set_gift_settings: C,
7346  ) -> RTDResult<Ok> {
7347    async_caller!(Ok);
7348    async_caller(&self.api, set_gift_settings.as_ref()).await
7349  }
7350
7351  pub async fn set_group_call_paid_message_star_count<
7352    C: AsRef<SetGroupCallPaidMessageStarCount>,
7353  >(
7354    &self,
7355    set_group_call_paid_message_star_count: C,
7356  ) -> RTDResult<Ok> {
7357    async_caller!(Ok);
7358    async_caller(&self.api, set_group_call_paid_message_star_count.as_ref()).await
7359  }
7360
7361  pub async fn set_group_call_participant_is_speaking<
7362    C: AsRef<SetGroupCallParticipantIsSpeaking>,
7363  >(
7364    &self,
7365    set_group_call_participant_is_speaking: C,
7366  ) -> RTDResult<MessageSender> {
7367    async_caller!(MessageSender);
7368    async_caller(&self.api, set_group_call_participant_is_speaking.as_ref()).await
7369  }
7370
7371  pub async fn set_group_call_participant_volume_level<
7372    C: AsRef<SetGroupCallParticipantVolumeLevel>,
7373  >(
7374    &self,
7375    set_group_call_participant_volume_level: C,
7376  ) -> RTDResult<Ok> {
7377    async_caller!(Ok);
7378    async_caller(&self.api, set_group_call_participant_volume_level.as_ref()).await
7379  }
7380
7381  pub async fn set_inactive_session_ttl<C: AsRef<SetInactiveSessionTtl>>(
7382    &self,
7383    set_inactive_session_ttl: C,
7384  ) -> RTDResult<Ok> {
7385    async_caller!(Ok);
7386    async_caller(&self.api, set_inactive_session_ttl.as_ref()).await
7387  }
7388
7389  pub async fn set_inline_game_score<C: AsRef<SetInlineGameScore>>(
7390    &self,
7391    set_inline_game_score: C,
7392  ) -> RTDResult<Ok> {
7393    async_caller!(Ok);
7394    async_caller(&self.api, set_inline_game_score.as_ref()).await
7395  }
7396
7397  pub async fn set_live_story_message_sender<C: AsRef<SetLiveStoryMessageSender>>(
7398    &self,
7399    set_live_story_message_sender: C,
7400  ) -> RTDResult<Ok> {
7401    async_caller!(Ok);
7402    async_caller(&self.api, set_live_story_message_sender.as_ref()).await
7403  }
7404
7405  pub async fn set_log_stream<C: AsRef<SetLogStream>>(&self, set_log_stream: C) -> RTDResult<Ok> {
7406    async_caller!(Ok);
7407    async_caller(&self.api, set_log_stream.as_ref()).await
7408  }
7409
7410  pub async fn set_log_tag_verbosity_level<C: AsRef<SetLogTagVerbosityLevel>>(
7411    &self,
7412    set_log_tag_verbosity_level: C,
7413  ) -> RTDResult<Ok> {
7414    async_caller!(Ok);
7415    async_caller(&self.api, set_log_tag_verbosity_level.as_ref()).await
7416  }
7417
7418  pub async fn set_log_verbosity_level<C: AsRef<SetLogVerbosityLevel>>(
7419    &self,
7420    set_log_verbosity_level: C,
7421  ) -> RTDResult<Ok> {
7422    async_caller!(Ok);
7423    async_caller(&self.api, set_log_verbosity_level.as_ref()).await
7424  }
7425
7426  pub async fn set_login_email_address<C: AsRef<SetLoginEmailAddress>>(
7427    &self,
7428    set_login_email_address: C,
7429  ) -> RTDResult<EmailAddressAuthenticationCodeInfo> {
7430    async_caller!(EmailAddressAuthenticationCodeInfo);
7431    async_caller(&self.api, set_login_email_address.as_ref()).await
7432  }
7433
7434  pub async fn set_main_profile_tab<C: AsRef<SetMainProfileTab>>(
7435    &self,
7436    set_main_profile_tab: C,
7437  ) -> RTDResult<Ok> {
7438    async_caller!(Ok);
7439    async_caller(&self.api, set_main_profile_tab.as_ref()).await
7440  }
7441
7442  pub async fn set_managed_bot_access_settings<C: AsRef<SetManagedBotAccessSettings>>(
7443    &self,
7444    set_managed_bot_access_settings: C,
7445  ) -> RTDResult<Ok> {
7446    async_caller!(Ok);
7447    async_caller(&self.api, set_managed_bot_access_settings.as_ref()).await
7448  }
7449
7450  pub async fn set_menu_button<C: AsRef<SetMenuButton>>(
7451    &self,
7452    set_menu_button: C,
7453  ) -> RTDResult<Ok> {
7454    async_caller!(Ok);
7455    async_caller(&self.api, set_menu_button.as_ref()).await
7456  }
7457
7458  pub async fn set_message_fact_check<C: AsRef<SetMessageFactCheck>>(
7459    &self,
7460    set_message_fact_check: C,
7461  ) -> RTDResult<Ok> {
7462    async_caller!(Ok);
7463    async_caller(&self.api, set_message_fact_check.as_ref()).await
7464  }
7465
7466  pub async fn set_message_reactions<C: AsRef<SetMessageReactions>>(
7467    &self,
7468    set_message_reactions: C,
7469  ) -> RTDResult<Ok> {
7470    async_caller!(Ok);
7471    async_caller(&self.api, set_message_reactions.as_ref()).await
7472  }
7473
7474  pub async fn set_message_sender_block_list<C: AsRef<SetMessageSenderBlockList>>(
7475    &self,
7476    set_message_sender_block_list: C,
7477  ) -> RTDResult<Ok> {
7478    async_caller!(Ok);
7479    async_caller(&self.api, set_message_sender_block_list.as_ref()).await
7480  }
7481
7482  pub async fn set_message_sender_bot_verification<C: AsRef<SetMessageSenderBotVerification>>(
7483    &self,
7484    set_message_sender_bot_verification: C,
7485  ) -> RTDResult<Ok> {
7486    async_caller!(Ok);
7487    async_caller(&self.api, set_message_sender_bot_verification.as_ref()).await
7488  }
7489
7490  pub async fn set_name<C: AsRef<SetName>>(&self, set_name: C) -> RTDResult<Ok> {
7491    async_caller!(Ok);
7492    async_caller(&self.api, set_name.as_ref()).await
7493  }
7494
7495  pub async fn set_network_type<C: AsRef<SetNetworkType>>(
7496    &self,
7497    set_network_type: C,
7498  ) -> RTDResult<Ok> {
7499    async_caller!(Ok);
7500    async_caller(&self.api, set_network_type.as_ref()).await
7501  }
7502
7503  pub async fn set_new_chat_privacy_settings<C: AsRef<SetNewChatPrivacySettings>>(
7504    &self,
7505    set_new_chat_privacy_settings: C,
7506  ) -> RTDResult<Ok> {
7507    async_caller!(Ok);
7508    async_caller(&self.api, set_new_chat_privacy_settings.as_ref()).await
7509  }
7510
7511  pub async fn set_option<C: AsRef<SetOption>>(&self, set_option: C) -> RTDResult<Ok> {
7512    async_caller!(Ok);
7513    async_caller(&self.api, set_option.as_ref()).await
7514  }
7515
7516  pub async fn set_paid_message_reaction_type<C: AsRef<SetPaidMessageReactionType>>(
7517    &self,
7518    set_paid_message_reaction_type: C,
7519  ) -> RTDResult<Ok> {
7520    async_caller!(Ok);
7521    async_caller(&self.api, set_paid_message_reaction_type.as_ref()).await
7522  }
7523
7524  pub async fn set_passport_element<C: AsRef<SetPassportElement>>(
7525    &self,
7526    set_passport_element: C,
7527  ) -> RTDResult<PassportElement> {
7528    async_caller!(PassportElement);
7529    async_caller(&self.api, set_passport_element.as_ref()).await
7530  }
7531
7532  pub async fn set_passport_element_errors<C: AsRef<SetPassportElementErrors>>(
7533    &self,
7534    set_passport_element_errors: C,
7535  ) -> RTDResult<Ok> {
7536    async_caller!(Ok);
7537    async_caller(&self.api, set_passport_element_errors.as_ref()).await
7538  }
7539
7540  pub async fn set_password<C: AsRef<SetPassword>>(
7541    &self,
7542    set_password: C,
7543  ) -> RTDResult<PasswordState> {
7544    async_caller!(PasswordState);
7545    async_caller(&self.api, set_password.as_ref()).await
7546  }
7547
7548  pub async fn set_personal_chat<C: AsRef<SetPersonalChat>>(
7549    &self,
7550    set_personal_chat: C,
7551  ) -> RTDResult<Ok> {
7552    async_caller!(Ok);
7553    async_caller(&self.api, set_personal_chat.as_ref()).await
7554  }
7555
7556  pub async fn set_pinned_chats<C: AsRef<SetPinnedChats>>(
7557    &self,
7558    set_pinned_chats: C,
7559  ) -> RTDResult<Ok> {
7560    async_caller!(Ok);
7561    async_caller(&self.api, set_pinned_chats.as_ref()).await
7562  }
7563
7564  pub async fn set_pinned_forum_topics<C: AsRef<SetPinnedForumTopics>>(
7565    &self,
7566    set_pinned_forum_topics: C,
7567  ) -> RTDResult<Ok> {
7568    async_caller!(Ok);
7569    async_caller(&self.api, set_pinned_forum_topics.as_ref()).await
7570  }
7571
7572  pub async fn set_pinned_gifts<C: AsRef<SetPinnedGifts>>(
7573    &self,
7574    set_pinned_gifts: C,
7575  ) -> RTDResult<Ok> {
7576    async_caller!(Ok);
7577    async_caller(&self.api, set_pinned_gifts.as_ref()).await
7578  }
7579
7580  pub async fn set_pinned_saved_messages_topics<C: AsRef<SetPinnedSavedMessagesTopics>>(
7581    &self,
7582    set_pinned_saved_messages_topics: C,
7583  ) -> RTDResult<Ok> {
7584    async_caller!(Ok);
7585    async_caller(&self.api, set_pinned_saved_messages_topics.as_ref()).await
7586  }
7587
7588  pub async fn set_poll_answer<C: AsRef<SetPollAnswer>>(
7589    &self,
7590    set_poll_answer: C,
7591  ) -> RTDResult<Ok> {
7592    async_caller!(Ok);
7593    async_caller(&self.api, set_poll_answer.as_ref()).await
7594  }
7595
7596  pub async fn set_profile_accent_color<C: AsRef<SetProfileAccentColor>>(
7597    &self,
7598    set_profile_accent_color: C,
7599  ) -> RTDResult<Ok> {
7600    async_caller!(Ok);
7601    async_caller(&self.api, set_profile_accent_color.as_ref()).await
7602  }
7603
7604  pub async fn set_profile_audio_position<C: AsRef<SetProfileAudioPosition>>(
7605    &self,
7606    set_profile_audio_position: C,
7607  ) -> RTDResult<Ok> {
7608    async_caller!(Ok);
7609    async_caller(&self.api, set_profile_audio_position.as_ref()).await
7610  }
7611
7612  pub async fn set_profile_photo<C: AsRef<SetProfilePhoto>>(
7613    &self,
7614    set_profile_photo: C,
7615  ) -> RTDResult<Ok> {
7616    async_caller!(Ok);
7617    async_caller(&self.api, set_profile_photo.as_ref()).await
7618  }
7619
7620  pub async fn set_profile_share_theme<C: AsRef<SetProfileShareTheme>>(
7621    &self,
7622    set_profile_share_theme: C,
7623  ) -> RTDResult<Ok> {
7624    async_caller!(Ok);
7625    async_caller(&self.api, set_profile_share_theme.as_ref()).await
7626  }
7627
7628  pub async fn set_quick_reply_shortcut_name<C: AsRef<SetQuickReplyShortcutName>>(
7629    &self,
7630    set_quick_reply_shortcut_name: C,
7631  ) -> RTDResult<Ok> {
7632    async_caller!(Ok);
7633    async_caller(&self.api, set_quick_reply_shortcut_name.as_ref()).await
7634  }
7635
7636  pub async fn set_reaction_notification_settings<C: AsRef<SetReactionNotificationSettings>>(
7637    &self,
7638    set_reaction_notification_settings: C,
7639  ) -> RTDResult<Ok> {
7640    async_caller!(Ok);
7641    async_caller(&self.api, set_reaction_notification_settings.as_ref()).await
7642  }
7643
7644  pub async fn set_read_date_privacy_settings<C: AsRef<SetReadDatePrivacySettings>>(
7645    &self,
7646    set_read_date_privacy_settings: C,
7647  ) -> RTDResult<Ok> {
7648    async_caller!(Ok);
7649    async_caller(&self.api, set_read_date_privacy_settings.as_ref()).await
7650  }
7651
7652  pub async fn set_recovery_email_address<C: AsRef<SetRecoveryEmailAddress>>(
7653    &self,
7654    set_recovery_email_address: C,
7655  ) -> RTDResult<PasswordState> {
7656    async_caller!(PasswordState);
7657    async_caller(&self.api, set_recovery_email_address.as_ref()).await
7658  }
7659
7660  pub async fn set_saved_messages_tag_label<C: AsRef<SetSavedMessagesTagLabel>>(
7661    &self,
7662    set_saved_messages_tag_label: C,
7663  ) -> RTDResult<Ok> {
7664    async_caller!(Ok);
7665    async_caller(&self.api, set_saved_messages_tag_label.as_ref()).await
7666  }
7667
7668  pub async fn set_scope_notification_settings<C: AsRef<SetScopeNotificationSettings>>(
7669    &self,
7670    set_scope_notification_settings: C,
7671  ) -> RTDResult<Ok> {
7672    async_caller!(Ok);
7673    async_caller(&self.api, set_scope_notification_settings.as_ref()).await
7674  }
7675
7676  pub async fn set_sticker_emojis<C: AsRef<SetStickerEmojis>>(
7677    &self,
7678    set_sticker_emojis: C,
7679  ) -> RTDResult<Ok> {
7680    async_caller!(Ok);
7681    async_caller(&self.api, set_sticker_emojis.as_ref()).await
7682  }
7683
7684  pub async fn set_sticker_keywords<C: AsRef<SetStickerKeywords>>(
7685    &self,
7686    set_sticker_keywords: C,
7687  ) -> RTDResult<Ok> {
7688    async_caller!(Ok);
7689    async_caller(&self.api, set_sticker_keywords.as_ref()).await
7690  }
7691
7692  pub async fn set_sticker_mask_position<C: AsRef<SetStickerMaskPosition>>(
7693    &self,
7694    set_sticker_mask_position: C,
7695  ) -> RTDResult<Ok> {
7696    async_caller!(Ok);
7697    async_caller(&self.api, set_sticker_mask_position.as_ref()).await
7698  }
7699
7700  pub async fn set_sticker_position_in_set<C: AsRef<SetStickerPositionInSet>>(
7701    &self,
7702    set_sticker_position_in_set: C,
7703  ) -> RTDResult<Ok> {
7704    async_caller!(Ok);
7705    async_caller(&self.api, set_sticker_position_in_set.as_ref()).await
7706  }
7707
7708  pub async fn set_sticker_set_thumbnail<C: AsRef<SetStickerSetThumbnail>>(
7709    &self,
7710    set_sticker_set_thumbnail: C,
7711  ) -> RTDResult<Ok> {
7712    async_caller!(Ok);
7713    async_caller(&self.api, set_sticker_set_thumbnail.as_ref()).await
7714  }
7715
7716  pub async fn set_sticker_set_title<C: AsRef<SetStickerSetTitle>>(
7717    &self,
7718    set_sticker_set_title: C,
7719  ) -> RTDResult<Ok> {
7720    async_caller!(Ok);
7721    async_caller(&self.api, set_sticker_set_title.as_ref()).await
7722  }
7723
7724  pub async fn set_story_album_name<C: AsRef<SetStoryAlbumName>>(
7725    &self,
7726    set_story_album_name: C,
7727  ) -> RTDResult<StoryAlbum> {
7728    async_caller!(StoryAlbum);
7729    async_caller(&self.api, set_story_album_name.as_ref()).await
7730  }
7731
7732  pub async fn set_story_privacy_settings<C: AsRef<SetStoryPrivacySettings>>(
7733    &self,
7734    set_story_privacy_settings: C,
7735  ) -> RTDResult<Ok> {
7736    async_caller!(Ok);
7737    async_caller(&self.api, set_story_privacy_settings.as_ref()).await
7738  }
7739
7740  pub async fn set_story_reaction<C: AsRef<SetStoryReaction>>(
7741    &self,
7742    set_story_reaction: C,
7743  ) -> RTDResult<Ok> {
7744    async_caller!(Ok);
7745    async_caller(&self.api, set_story_reaction.as_ref()).await
7746  }
7747
7748  pub async fn set_supergroup_custom_emoji_sticker_set<
7749    C: AsRef<SetSupergroupCustomEmojiStickerSet>,
7750  >(
7751    &self,
7752    set_supergroup_custom_emoji_sticker_set: C,
7753  ) -> RTDResult<Ok> {
7754    async_caller!(Ok);
7755    async_caller(&self.api, set_supergroup_custom_emoji_sticker_set.as_ref()).await
7756  }
7757
7758  pub async fn set_supergroup_main_profile_tab<C: AsRef<SetSupergroupMainProfileTab>>(
7759    &self,
7760    set_supergroup_main_profile_tab: C,
7761  ) -> RTDResult<Ok> {
7762    async_caller!(Ok);
7763    async_caller(&self.api, set_supergroup_main_profile_tab.as_ref()).await
7764  }
7765
7766  pub async fn set_supergroup_sticker_set<C: AsRef<SetSupergroupStickerSet>>(
7767    &self,
7768    set_supergroup_sticker_set: C,
7769  ) -> RTDResult<Ok> {
7770    async_caller!(Ok);
7771    async_caller(&self.api, set_supergroup_sticker_set.as_ref()).await
7772  }
7773
7774  pub async fn set_supergroup_unrestrict_boost_count<
7775    C: AsRef<SetSupergroupUnrestrictBoostCount>,
7776  >(
7777    &self,
7778    set_supergroup_unrestrict_boost_count: C,
7779  ) -> RTDResult<Ok> {
7780    async_caller!(Ok);
7781    async_caller(&self.api, set_supergroup_unrestrict_boost_count.as_ref()).await
7782  }
7783
7784  pub async fn set_supergroup_username<C: AsRef<SetSupergroupUsername>>(
7785    &self,
7786    set_supergroup_username: C,
7787  ) -> RTDResult<Ok> {
7788    async_caller!(Ok);
7789    async_caller(&self.api, set_supergroup_username.as_ref()).await
7790  }
7791
7792  pub async fn set_tdlib_parameters<C: AsRef<SetTdlibParameters>>(
7793    &self,
7794    set_tdlib_parameters: C,
7795  ) -> RTDResult<Ok> {
7796    async_caller!(Ok);
7797    async_caller(&self.api, set_tdlib_parameters.as_ref()).await
7798  }
7799
7800  pub async fn set_ton_connect_session_wallet_client_id<
7801    C: AsRef<SetTonConnectSessionWalletClientId>,
7802  >(
7803    &self,
7804    set_ton_connect_session_wallet_client_id: C,
7805  ) -> RTDResult<TonConnectChallenge> {
7806    async_caller!(TonConnectChallenge);
7807    async_caller(&self.api, set_ton_connect_session_wallet_client_id.as_ref()).await
7808  }
7809
7810  pub async fn set_ton_wallet_card_stickers<C: AsRef<SetTonWalletCardStickers>>(
7811    &self,
7812    set_ton_wallet_card_stickers: C,
7813  ) -> RTDResult<TonWalletCard> {
7814    async_caller!(TonWalletCard);
7815    async_caller(&self.api, set_ton_wallet_card_stickers.as_ref()).await
7816  }
7817
7818  pub async fn set_upgraded_gift_colors<C: AsRef<SetUpgradedGiftColors>>(
7819    &self,
7820    set_upgraded_gift_colors: C,
7821  ) -> RTDResult<Ok> {
7822    async_caller!(Ok);
7823    async_caller(&self.api, set_upgraded_gift_colors.as_ref()).await
7824  }
7825
7826  pub async fn set_user_emoji_status<C: AsRef<SetUserEmojiStatus>>(
7827    &self,
7828    set_user_emoji_status: C,
7829  ) -> RTDResult<Ok> {
7830    async_caller!(Ok);
7831    async_caller(&self.api, set_user_emoji_status.as_ref()).await
7832  }
7833
7834  pub async fn set_user_note<C: AsRef<SetUserNote>>(&self, set_user_note: C) -> RTDResult<Ok> {
7835    async_caller!(Ok);
7836    async_caller(&self.api, set_user_note.as_ref()).await
7837  }
7838
7839  pub async fn set_user_personal_profile_photo<C: AsRef<SetUserPersonalProfilePhoto>>(
7840    &self,
7841    set_user_personal_profile_photo: C,
7842  ) -> RTDResult<Ok> {
7843    async_caller!(Ok);
7844    async_caller(&self.api, set_user_personal_profile_photo.as_ref()).await
7845  }
7846
7847  pub async fn set_user_privacy_setting_rules<C: AsRef<SetUserPrivacySettingRules>>(
7848    &self,
7849    set_user_privacy_setting_rules: C,
7850  ) -> RTDResult<Ok> {
7851    async_caller!(Ok);
7852    async_caller(&self.api, set_user_privacy_setting_rules.as_ref()).await
7853  }
7854
7855  pub async fn set_user_support_info<C: AsRef<SetUserSupportInfo>>(
7856    &self,
7857    set_user_support_info: C,
7858  ) -> RTDResult<UserSupportInfo> {
7859    async_caller!(UserSupportInfo);
7860    async_caller(&self.api, set_user_support_info.as_ref()).await
7861  }
7862
7863  pub async fn set_username<C: AsRef<SetUsername>>(&self, set_username: C) -> RTDResult<Ok> {
7864    async_caller!(Ok);
7865    async_caller(&self.api, set_username.as_ref()).await
7866  }
7867
7868  pub async fn set_video_chat_default_participant<C: AsRef<SetVideoChatDefaultParticipant>>(
7869    &self,
7870    set_video_chat_default_participant: C,
7871  ) -> RTDResult<Ok> {
7872    async_caller!(Ok);
7873    async_caller(&self.api, set_video_chat_default_participant.as_ref()).await
7874  }
7875
7876  pub async fn set_video_chat_title<C: AsRef<SetVideoChatTitle>>(
7877    &self,
7878    set_video_chat_title: C,
7879  ) -> RTDResult<Ok> {
7880    async_caller!(Ok);
7881    async_caller(&self.api, set_video_chat_title.as_ref()).await
7882  }
7883
7884  pub async fn share_chat_with_bot<C: AsRef<ShareChatWithBot>>(
7885    &self,
7886    share_chat_with_bot: C,
7887  ) -> RTDResult<Ok> {
7888    async_caller!(Ok);
7889    async_caller(&self.api, share_chat_with_bot.as_ref()).await
7890  }
7891
7892  pub async fn share_phone_number<C: AsRef<SharePhoneNumber>>(
7893    &self,
7894    share_phone_number: C,
7895  ) -> RTDResult<Ok> {
7896    async_caller!(Ok);
7897    async_caller(&self.api, share_phone_number.as_ref()).await
7898  }
7899
7900  pub async fn share_users_with_bot<C: AsRef<ShareUsersWithBot>>(
7901    &self,
7902    share_users_with_bot: C,
7903  ) -> RTDResult<Ok> {
7904    async_caller!(Ok);
7905    async_caller(&self.api, share_users_with_bot.as_ref()).await
7906  }
7907
7908  pub async fn start_group_call_recording<C: AsRef<StartGroupCallRecording>>(
7909    &self,
7910    start_group_call_recording: C,
7911  ) -> RTDResult<Ok> {
7912    async_caller!(Ok);
7913    async_caller(&self.api, start_group_call_recording.as_ref()).await
7914  }
7915
7916  pub async fn start_group_call_screen_sharing<C: AsRef<StartGroupCallScreenSharing>>(
7917    &self,
7918    start_group_call_screen_sharing: C,
7919  ) -> RTDResult<Text> {
7920    async_caller!(Text);
7921    async_caller(&self.api, start_group_call_screen_sharing.as_ref()).await
7922  }
7923
7924  pub async fn start_live_story<C: AsRef<StartLiveStory>>(
7925    &self,
7926    start_live_story: C,
7927  ) -> RTDResult<StartLiveStoryResult> {
7928    async_caller!(StartLiveStoryResult);
7929    async_caller(&self.api, start_live_story.as_ref()).await
7930  }
7931
7932  pub async fn start_scheduled_video_chat<C: AsRef<StartScheduledVideoChat>>(
7933    &self,
7934    start_scheduled_video_chat: C,
7935  ) -> RTDResult<Ok> {
7936    async_caller!(Ok);
7937    async_caller(&self.api, start_scheduled_video_chat.as_ref()).await
7938  }
7939
7940  pub async fn stop_business_poll<C: AsRef<StopBusinessPoll>>(
7941    &self,
7942    stop_business_poll: C,
7943  ) -> RTDResult<BusinessMessage> {
7944    async_caller!(BusinessMessage);
7945    async_caller(&self.api, stop_business_poll.as_ref()).await
7946  }
7947
7948  pub async fn stop_pending_message<C: AsRef<StopPendingMessage>>(
7949    &self,
7950    stop_pending_message: C,
7951  ) -> RTDResult<Ok> {
7952    async_caller!(Ok);
7953    async_caller(&self.api, stop_pending_message.as_ref()).await
7954  }
7955
7956  pub async fn stop_poll<C: AsRef<StopPoll>>(&self, stop_poll: C) -> RTDResult<Ok> {
7957    async_caller!(Ok);
7958    async_caller(&self.api, stop_poll.as_ref()).await
7959  }
7960
7961  pub async fn suggest_user_birthdate<C: AsRef<SuggestUserBirthdate>>(
7962    &self,
7963    suggest_user_birthdate: C,
7964  ) -> RTDResult<Ok> {
7965    async_caller!(Ok);
7966    async_caller(&self.api, suggest_user_birthdate.as_ref()).await
7967  }
7968
7969  pub async fn suggest_user_profile_photo<C: AsRef<SuggestUserProfilePhoto>>(
7970    &self,
7971    suggest_user_profile_photo: C,
7972  ) -> RTDResult<Ok> {
7973    async_caller!(Ok);
7974    async_caller(&self.api, suggest_user_profile_photo.as_ref()).await
7975  }
7976
7977  pub async fn summarize_message<C: AsRef<SummarizeMessage>>(
7978    &self,
7979    summarize_message: C,
7980  ) -> RTDResult<FormattedText> {
7981    async_caller!(FormattedText);
7982    async_caller(&self.api, summarize_message.as_ref()).await
7983  }
7984
7985  pub async fn synchronize_language_pack<C: AsRef<SynchronizeLanguagePack>>(
7986    &self,
7987    synchronize_language_pack: C,
7988  ) -> RTDResult<Ok> {
7989    async_caller!(Ok);
7990    async_caller(&self.api, synchronize_language_pack.as_ref()).await
7991  }
7992
7993  pub async fn terminate_all_other_sessions<C: AsRef<TerminateAllOtherSessions>>(
7994    &self,
7995    terminate_all_other_sessions: C,
7996  ) -> RTDResult<Ok> {
7997    async_caller!(Ok);
7998    async_caller(&self.api, terminate_all_other_sessions.as_ref()).await
7999  }
8000
8001  pub async fn terminate_session<C: AsRef<TerminateSession>>(
8002    &self,
8003    terminate_session: C,
8004  ) -> RTDResult<Ok> {
8005    async_caller!(Ok);
8006    async_caller(&self.api, terminate_session.as_ref()).await
8007  }
8008
8009  pub async fn test_call_bytes<C: AsRef<TestCallBytes>>(
8010    &self,
8011    test_call_bytes: C,
8012  ) -> RTDResult<TestBytes> {
8013    async_caller!(TestBytes);
8014    async_caller(&self.api, test_call_bytes.as_ref()).await
8015  }
8016
8017  pub async fn test_call_empty<C: AsRef<TestCallEmpty>>(
8018    &self,
8019    test_call_empty: C,
8020  ) -> RTDResult<Ok> {
8021    async_caller!(Ok);
8022    async_caller(&self.api, test_call_empty.as_ref()).await
8023  }
8024
8025  pub async fn test_call_string<C: AsRef<TestCallString>>(
8026    &self,
8027    test_call_string: C,
8028  ) -> RTDResult<TestString> {
8029    async_caller!(TestString);
8030    async_caller(&self.api, test_call_string.as_ref()).await
8031  }
8032
8033  pub async fn test_call_vector_int<C: AsRef<TestCallVectorInt>>(
8034    &self,
8035    test_call_vector_int: C,
8036  ) -> RTDResult<TestVectorInt> {
8037    async_caller!(TestVectorInt);
8038    async_caller(&self.api, test_call_vector_int.as_ref()).await
8039  }
8040
8041  pub async fn test_call_vector_int_object<C: AsRef<TestCallVectorIntObject>>(
8042    &self,
8043    test_call_vector_int_object: C,
8044  ) -> RTDResult<TestVectorIntObject> {
8045    async_caller!(TestVectorIntObject);
8046    async_caller(&self.api, test_call_vector_int_object.as_ref()).await
8047  }
8048
8049  pub async fn test_call_vector_string<C: AsRef<TestCallVectorString>>(
8050    &self,
8051    test_call_vector_string: C,
8052  ) -> RTDResult<TestVectorString> {
8053    async_caller!(TestVectorString);
8054    async_caller(&self.api, test_call_vector_string.as_ref()).await
8055  }
8056
8057  pub async fn test_call_vector_string_object<C: AsRef<TestCallVectorStringObject>>(
8058    &self,
8059    test_call_vector_string_object: C,
8060  ) -> RTDResult<TestVectorStringObject> {
8061    async_caller!(TestVectorStringObject);
8062    async_caller(&self.api, test_call_vector_string_object.as_ref()).await
8063  }
8064
8065  pub async fn test_get_difference<C: AsRef<TestGetDifference>>(
8066    &self,
8067    test_get_difference: C,
8068  ) -> RTDResult<Ok> {
8069    async_caller!(Ok);
8070    async_caller(&self.api, test_get_difference.as_ref()).await
8071  }
8072
8073  pub async fn test_network<C: AsRef<TestNetwork>>(&self, test_network: C) -> RTDResult<Ok> {
8074    async_caller!(Ok);
8075    async_caller(&self.api, test_network.as_ref()).await
8076  }
8077
8078  pub async fn test_proxy<C: AsRef<TestProxy>>(&self, test_proxy: C) -> RTDResult<Ok> {
8079    async_caller!(Ok);
8080    async_caller(&self.api, test_proxy.as_ref()).await
8081  }
8082
8083  pub async fn test_return_error<C: AsRef<TestReturnError>>(
8084    &self,
8085    test_return_error: C,
8086  ) -> RTDResult<Error> {
8087    async_caller!(Error);
8088    async_caller(&self.api, test_return_error.as_ref()).await
8089  }
8090
8091  pub async fn test_square_int<C: AsRef<TestSquareInt>>(
8092    &self,
8093    test_square_int: C,
8094  ) -> RTDResult<TestInt> {
8095    async_caller!(TestInt);
8096    async_caller(&self.api, test_square_int.as_ref()).await
8097  }
8098
8099  pub async fn test_use_update<C: AsRef<TestUseUpdate>>(
8100    &self,
8101    test_use_update: C,
8102  ) -> RTDResult<Update> {
8103    async_caller!(Update);
8104    async_caller(&self.api, test_use_update.as_ref()).await
8105  }
8106
8107  pub async fn toggle_all_downloads_are_paused<C: AsRef<ToggleAllDownloadsArePaused>>(
8108    &self,
8109    toggle_all_downloads_are_paused: C,
8110  ) -> RTDResult<Ok> {
8111    async_caller!(Ok);
8112    async_caller(&self.api, toggle_all_downloads_are_paused.as_ref()).await
8113  }
8114
8115  pub async fn toggle_bot_can_manage_emoji_status<C: AsRef<ToggleBotCanManageEmojiStatus>>(
8116    &self,
8117    toggle_bot_can_manage_emoji_status: C,
8118  ) -> RTDResult<Ok> {
8119    async_caller!(Ok);
8120    async_caller(&self.api, toggle_bot_can_manage_emoji_status.as_ref()).await
8121  }
8122
8123  pub async fn toggle_bot_is_added_to_attachment_menu<
8124    C: AsRef<ToggleBotIsAddedToAttachmentMenu>,
8125  >(
8126    &self,
8127    toggle_bot_is_added_to_attachment_menu: C,
8128  ) -> RTDResult<Ok> {
8129    async_caller!(Ok);
8130    async_caller(&self.api, toggle_bot_is_added_to_attachment_menu.as_ref()).await
8131  }
8132
8133  pub async fn toggle_bot_username_is_active<C: AsRef<ToggleBotUsernameIsActive>>(
8134    &self,
8135    toggle_bot_username_is_active: C,
8136  ) -> RTDResult<Ok> {
8137    async_caller!(Ok);
8138    async_caller(&self.api, toggle_bot_username_is_active.as_ref()).await
8139  }
8140
8141  pub async fn toggle_business_connected_bot_chat_is_paused<
8142    C: AsRef<ToggleBusinessConnectedBotChatIsPaused>,
8143  >(
8144    &self,
8145    toggle_business_connected_bot_chat_is_paused: C,
8146  ) -> RTDResult<Ok> {
8147    async_caller!(Ok);
8148    async_caller(
8149      &self.api,
8150      toggle_business_connected_bot_chat_is_paused.as_ref(),
8151    )
8152    .await
8153  }
8154
8155  pub async fn toggle_chat_default_disable_notification<
8156    C: AsRef<ToggleChatDefaultDisableNotification>,
8157  >(
8158    &self,
8159    toggle_chat_default_disable_notification: C,
8160  ) -> RTDResult<Ok> {
8161    async_caller!(Ok);
8162    async_caller(&self.api, toggle_chat_default_disable_notification.as_ref()).await
8163  }
8164
8165  pub async fn toggle_chat_folder_tags<C: AsRef<ToggleChatFolderTags>>(
8166    &self,
8167    toggle_chat_folder_tags: C,
8168  ) -> RTDResult<Ok> {
8169    async_caller!(Ok);
8170    async_caller(&self.api, toggle_chat_folder_tags.as_ref()).await
8171  }
8172
8173  pub async fn toggle_chat_gift_notifications<C: AsRef<ToggleChatGiftNotifications>>(
8174    &self,
8175    toggle_chat_gift_notifications: C,
8176  ) -> RTDResult<Ok> {
8177    async_caller!(Ok);
8178    async_caller(&self.api, toggle_chat_gift_notifications.as_ref()).await
8179  }
8180
8181  pub async fn toggle_chat_has_protected_content<C: AsRef<ToggleChatHasProtectedContent>>(
8182    &self,
8183    toggle_chat_has_protected_content: C,
8184  ) -> RTDResult<Ok> {
8185    async_caller!(Ok);
8186    async_caller(&self.api, toggle_chat_has_protected_content.as_ref()).await
8187  }
8188
8189  pub async fn toggle_chat_is_marked_as_unread<C: AsRef<ToggleChatIsMarkedAsUnread>>(
8190    &self,
8191    toggle_chat_is_marked_as_unread: C,
8192  ) -> RTDResult<Ok> {
8193    async_caller!(Ok);
8194    async_caller(&self.api, toggle_chat_is_marked_as_unread.as_ref()).await
8195  }
8196
8197  pub async fn toggle_chat_is_pinned<C: AsRef<ToggleChatIsPinned>>(
8198    &self,
8199    toggle_chat_is_pinned: C,
8200  ) -> RTDResult<Ok> {
8201    async_caller!(Ok);
8202    async_caller(&self.api, toggle_chat_is_pinned.as_ref()).await
8203  }
8204
8205  pub async fn toggle_chat_is_translatable<C: AsRef<ToggleChatIsTranslatable>>(
8206    &self,
8207    toggle_chat_is_translatable: C,
8208  ) -> RTDResult<Ok> {
8209    async_caller!(Ok);
8210    async_caller(&self.api, toggle_chat_is_translatable.as_ref()).await
8211  }
8212
8213  pub async fn toggle_chat_view_as_topics<C: AsRef<ToggleChatViewAsTopics>>(
8214    &self,
8215    toggle_chat_view_as_topics: C,
8216  ) -> RTDResult<Ok> {
8217    async_caller!(Ok);
8218    async_caller(&self.api, toggle_chat_view_as_topics.as_ref()).await
8219  }
8220
8221  pub async fn toggle_direct_messages_chat_topic_can_send_unpaid_messages<
8222    C: AsRef<ToggleDirectMessagesChatTopicCanSendUnpaidMessages>,
8223  >(
8224    &self,
8225    toggle_direct_messages_chat_topic_can_send_unpaid_messages: C,
8226  ) -> RTDResult<Ok> {
8227    async_caller!(Ok);
8228    async_caller(
8229      &self.api,
8230      toggle_direct_messages_chat_topic_can_send_unpaid_messages.as_ref(),
8231    )
8232    .await
8233  }
8234
8235  pub async fn toggle_download_is_paused<C: AsRef<ToggleDownloadIsPaused>>(
8236    &self,
8237    toggle_download_is_paused: C,
8238  ) -> RTDResult<Ok> {
8239    async_caller!(Ok);
8240    async_caller(&self.api, toggle_download_is_paused.as_ref()).await
8241  }
8242
8243  pub async fn toggle_forum_topic_is_closed<C: AsRef<ToggleForumTopicIsClosed>>(
8244    &self,
8245    toggle_forum_topic_is_closed: C,
8246  ) -> RTDResult<Ok> {
8247    async_caller!(Ok);
8248    async_caller(&self.api, toggle_forum_topic_is_closed.as_ref()).await
8249  }
8250
8251  pub async fn toggle_forum_topic_is_pinned<C: AsRef<ToggleForumTopicIsPinned>>(
8252    &self,
8253    toggle_forum_topic_is_pinned: C,
8254  ) -> RTDResult<Ok> {
8255    async_caller!(Ok);
8256    async_caller(&self.api, toggle_forum_topic_is_pinned.as_ref()).await
8257  }
8258
8259  pub async fn toggle_general_forum_topic_is_hidden<C: AsRef<ToggleGeneralForumTopicIsHidden>>(
8260    &self,
8261    toggle_general_forum_topic_is_hidden: C,
8262  ) -> RTDResult<Ok> {
8263    async_caller!(Ok);
8264    async_caller(&self.api, toggle_general_forum_topic_is_hidden.as_ref()).await
8265  }
8266
8267  pub async fn toggle_gift_is_saved<C: AsRef<ToggleGiftIsSaved>>(
8268    &self,
8269    toggle_gift_is_saved: C,
8270  ) -> RTDResult<Ok> {
8271    async_caller!(Ok);
8272    async_caller(&self.api, toggle_gift_is_saved.as_ref()).await
8273  }
8274
8275  pub async fn toggle_group_call_are_messages_allowed<
8276    C: AsRef<ToggleGroupCallAreMessagesAllowed>,
8277  >(
8278    &self,
8279    toggle_group_call_are_messages_allowed: C,
8280  ) -> RTDResult<Ok> {
8281    async_caller!(Ok);
8282    async_caller(&self.api, toggle_group_call_are_messages_allowed.as_ref()).await
8283  }
8284
8285  pub async fn toggle_group_call_is_my_video_enabled<C: AsRef<ToggleGroupCallIsMyVideoEnabled>>(
8286    &self,
8287    toggle_group_call_is_my_video_enabled: C,
8288  ) -> RTDResult<Ok> {
8289    async_caller!(Ok);
8290    async_caller(&self.api, toggle_group_call_is_my_video_enabled.as_ref()).await
8291  }
8292
8293  pub async fn toggle_group_call_is_my_video_paused<C: AsRef<ToggleGroupCallIsMyVideoPaused>>(
8294    &self,
8295    toggle_group_call_is_my_video_paused: C,
8296  ) -> RTDResult<Ok> {
8297    async_caller!(Ok);
8298    async_caller(&self.api, toggle_group_call_is_my_video_paused.as_ref()).await
8299  }
8300
8301  pub async fn toggle_group_call_participant_is_hand_raised<
8302    C: AsRef<ToggleGroupCallParticipantIsHandRaised>,
8303  >(
8304    &self,
8305    toggle_group_call_participant_is_hand_raised: C,
8306  ) -> RTDResult<Ok> {
8307    async_caller!(Ok);
8308    async_caller(
8309      &self.api,
8310      toggle_group_call_participant_is_hand_raised.as_ref(),
8311    )
8312    .await
8313  }
8314
8315  pub async fn toggle_group_call_participant_is_muted<
8316    C: AsRef<ToggleGroupCallParticipantIsMuted>,
8317  >(
8318    &self,
8319    toggle_group_call_participant_is_muted: C,
8320  ) -> RTDResult<Ok> {
8321    async_caller!(Ok);
8322    async_caller(&self.api, toggle_group_call_participant_is_muted.as_ref()).await
8323  }
8324
8325  pub async fn toggle_group_call_screen_sharing_is_paused<
8326    C: AsRef<ToggleGroupCallScreenSharingIsPaused>,
8327  >(
8328    &self,
8329    toggle_group_call_screen_sharing_is_paused: C,
8330  ) -> RTDResult<Ok> {
8331    async_caller!(Ok);
8332    async_caller(
8333      &self.api,
8334      toggle_group_call_screen_sharing_is_paused.as_ref(),
8335    )
8336    .await
8337  }
8338
8339  pub async fn toggle_has_sponsored_messages_enabled<
8340    C: AsRef<ToggleHasSponsoredMessagesEnabled>,
8341  >(
8342    &self,
8343    toggle_has_sponsored_messages_enabled: C,
8344  ) -> RTDResult<Ok> {
8345    async_caller!(Ok);
8346    async_caller(&self.api, toggle_has_sponsored_messages_enabled.as_ref()).await
8347  }
8348
8349  pub async fn toggle_saved_messages_topic_is_pinned<C: AsRef<ToggleSavedMessagesTopicIsPinned>>(
8350    &self,
8351    toggle_saved_messages_topic_is_pinned: C,
8352  ) -> RTDResult<Ok> {
8353    async_caller!(Ok);
8354    async_caller(&self.api, toggle_saved_messages_topic_is_pinned.as_ref()).await
8355  }
8356
8357  pub async fn toggle_session_can_accept_calls<C: AsRef<ToggleSessionCanAcceptCalls>>(
8358    &self,
8359    toggle_session_can_accept_calls: C,
8360  ) -> RTDResult<Ok> {
8361    async_caller!(Ok);
8362    async_caller(&self.api, toggle_session_can_accept_calls.as_ref()).await
8363  }
8364
8365  pub async fn toggle_session_can_accept_secret_chats<
8366    C: AsRef<ToggleSessionCanAcceptSecretChats>,
8367  >(
8368    &self,
8369    toggle_session_can_accept_secret_chats: C,
8370  ) -> RTDResult<Ok> {
8371    async_caller!(Ok);
8372    async_caller(&self.api, toggle_session_can_accept_secret_chats.as_ref()).await
8373  }
8374
8375  pub async fn toggle_story_is_posted_to_chat_page<C: AsRef<ToggleStoryIsPostedToChatPage>>(
8376    &self,
8377    toggle_story_is_posted_to_chat_page: C,
8378  ) -> RTDResult<Ok> {
8379    async_caller!(Ok);
8380    async_caller(&self.api, toggle_story_is_posted_to_chat_page.as_ref()).await
8381  }
8382
8383  pub async fn toggle_supergroup_can_have_sponsored_messages<
8384    C: AsRef<ToggleSupergroupCanHaveSponsoredMessages>,
8385  >(
8386    &self,
8387    toggle_supergroup_can_have_sponsored_messages: C,
8388  ) -> RTDResult<Ok> {
8389    async_caller!(Ok);
8390    async_caller(
8391      &self.api,
8392      toggle_supergroup_can_have_sponsored_messages.as_ref(),
8393    )
8394    .await
8395  }
8396
8397  pub async fn toggle_supergroup_has_aggressive_anti_spam_enabled<
8398    C: AsRef<ToggleSupergroupHasAggressiveAntiSpamEnabled>,
8399  >(
8400    &self,
8401    toggle_supergroup_has_aggressive_anti_spam_enabled: C,
8402  ) -> RTDResult<Ok> {
8403    async_caller!(Ok);
8404    async_caller(
8405      &self.api,
8406      toggle_supergroup_has_aggressive_anti_spam_enabled.as_ref(),
8407    )
8408    .await
8409  }
8410
8411  pub async fn toggle_supergroup_has_automatic_translation<
8412    C: AsRef<ToggleSupergroupHasAutomaticTranslation>,
8413  >(
8414    &self,
8415    toggle_supergroup_has_automatic_translation: C,
8416  ) -> RTDResult<Ok> {
8417    async_caller!(Ok);
8418    async_caller(
8419      &self.api,
8420      toggle_supergroup_has_automatic_translation.as_ref(),
8421    )
8422    .await
8423  }
8424
8425  pub async fn toggle_supergroup_has_hidden_members<C: AsRef<ToggleSupergroupHasHiddenMembers>>(
8426    &self,
8427    toggle_supergroup_has_hidden_members: C,
8428  ) -> RTDResult<Ok> {
8429    async_caller!(Ok);
8430    async_caller(&self.api, toggle_supergroup_has_hidden_members.as_ref()).await
8431  }
8432
8433  pub async fn toggle_supergroup_is_all_history_available<
8434    C: AsRef<ToggleSupergroupIsAllHistoryAvailable>,
8435  >(
8436    &self,
8437    toggle_supergroup_is_all_history_available: C,
8438  ) -> RTDResult<Ok> {
8439    async_caller!(Ok);
8440    async_caller(
8441      &self.api,
8442      toggle_supergroup_is_all_history_available.as_ref(),
8443    )
8444    .await
8445  }
8446
8447  pub async fn toggle_supergroup_is_broadcast_group<C: AsRef<ToggleSupergroupIsBroadcastGroup>>(
8448    &self,
8449    toggle_supergroup_is_broadcast_group: C,
8450  ) -> RTDResult<Ok> {
8451    async_caller!(Ok);
8452    async_caller(&self.api, toggle_supergroup_is_broadcast_group.as_ref()).await
8453  }
8454
8455  pub async fn toggle_supergroup_is_forum<C: AsRef<ToggleSupergroupIsForum>>(
8456    &self,
8457    toggle_supergroup_is_forum: C,
8458  ) -> RTDResult<Ok> {
8459    async_caller!(Ok);
8460    async_caller(&self.api, toggle_supergroup_is_forum.as_ref()).await
8461  }
8462
8463  pub async fn toggle_supergroup_join_by_request<C: AsRef<ToggleSupergroupJoinByRequest>>(
8464    &self,
8465    toggle_supergroup_join_by_request: C,
8466  ) -> RTDResult<Ok> {
8467    async_caller!(Ok);
8468    async_caller(&self.api, toggle_supergroup_join_by_request.as_ref()).await
8469  }
8470
8471  pub async fn toggle_supergroup_join_to_send_messages<
8472    C: AsRef<ToggleSupergroupJoinToSendMessages>,
8473  >(
8474    &self,
8475    toggle_supergroup_join_to_send_messages: C,
8476  ) -> RTDResult<Ok> {
8477    async_caller!(Ok);
8478    async_caller(&self.api, toggle_supergroup_join_to_send_messages.as_ref()).await
8479  }
8480
8481  pub async fn toggle_supergroup_sign_messages<C: AsRef<ToggleSupergroupSignMessages>>(
8482    &self,
8483    toggle_supergroup_sign_messages: C,
8484  ) -> RTDResult<Ok> {
8485    async_caller!(Ok);
8486    async_caller(&self.api, toggle_supergroup_sign_messages.as_ref()).await
8487  }
8488
8489  pub async fn toggle_supergroup_username_is_active<C: AsRef<ToggleSupergroupUsernameIsActive>>(
8490    &self,
8491    toggle_supergroup_username_is_active: C,
8492  ) -> RTDResult<Ok> {
8493    async_caller!(Ok);
8494    async_caller(&self.api, toggle_supergroup_username_is_active.as_ref()).await
8495  }
8496
8497  pub async fn toggle_username_is_active<C: AsRef<ToggleUsernameIsActive>>(
8498    &self,
8499    toggle_username_is_active: C,
8500  ) -> RTDResult<Ok> {
8501    async_caller!(Ok);
8502    async_caller(&self.api, toggle_username_is_active.as_ref()).await
8503  }
8504
8505  pub async fn toggle_video_chat_enabled_start_notification<
8506    C: AsRef<ToggleVideoChatEnabledStartNotification>,
8507  >(
8508    &self,
8509    toggle_video_chat_enabled_start_notification: C,
8510  ) -> RTDResult<Ok> {
8511    async_caller!(Ok);
8512    async_caller(
8513      &self.api,
8514      toggle_video_chat_enabled_start_notification.as_ref(),
8515    )
8516    .await
8517  }
8518
8519  pub async fn toggle_video_chat_mute_new_participants<
8520    C: AsRef<ToggleVideoChatMuteNewParticipants>,
8521  >(
8522    &self,
8523    toggle_video_chat_mute_new_participants: C,
8524  ) -> RTDResult<Ok> {
8525    async_caller!(Ok);
8526    async_caller(&self.api, toggle_video_chat_mute_new_participants.as_ref()).await
8527  }
8528
8529  pub async fn transfer_business_account_stars<C: AsRef<TransferBusinessAccountStars>>(
8530    &self,
8531    transfer_business_account_stars: C,
8532  ) -> RTDResult<Ok> {
8533    async_caller!(Ok);
8534    async_caller(&self.api, transfer_business_account_stars.as_ref()).await
8535  }
8536
8537  pub async fn transfer_chat_ownership<C: AsRef<TransferChatOwnership>>(
8538    &self,
8539    transfer_chat_ownership: C,
8540  ) -> RTDResult<Ok> {
8541    async_caller!(Ok);
8542    async_caller(&self.api, transfer_chat_ownership.as_ref()).await
8543  }
8544
8545  pub async fn transfer_gift<C: AsRef<TransferGift>>(&self, transfer_gift: C) -> RTDResult<Ok> {
8546    async_caller!(Ok);
8547    async_caller(&self.api, transfer_gift.as_ref()).await
8548  }
8549
8550  pub async fn translate_message_rich_message<C: AsRef<TranslateMessageRichMessage>>(
8551    &self,
8552    translate_message_rich_message: C,
8553  ) -> RTDResult<RichMessage> {
8554    async_caller!(RichMessage);
8555    async_caller(&self.api, translate_message_rich_message.as_ref()).await
8556  }
8557
8558  pub async fn translate_message_text<C: AsRef<TranslateMessageText>>(
8559    &self,
8560    translate_message_text: C,
8561  ) -> RTDResult<FormattedText> {
8562    async_caller!(FormattedText);
8563    async_caller(&self.api, translate_message_text.as_ref()).await
8564  }
8565
8566  pub async fn translate_rich_message<C: AsRef<TranslateRichMessage>>(
8567    &self,
8568    translate_rich_message: C,
8569  ) -> RTDResult<RichMessage> {
8570    async_caller!(RichMessage);
8571    async_caller(&self.api, translate_rich_message.as_ref()).await
8572  }
8573
8574  pub async fn translate_text<C: AsRef<TranslateText>>(
8575    &self,
8576    translate_text: C,
8577  ) -> RTDResult<FormattedText> {
8578    async_caller!(FormattedText);
8579    async_caller(&self.api, translate_text.as_ref()).await
8580  }
8581
8582  pub async fn unpin_all_chat_messages<C: AsRef<UnpinAllChatMessages>>(
8583    &self,
8584    unpin_all_chat_messages: C,
8585  ) -> RTDResult<Ok> {
8586    async_caller!(Ok);
8587    async_caller(&self.api, unpin_all_chat_messages.as_ref()).await
8588  }
8589
8590  pub async fn unpin_all_direct_messages_chat_topic_messages<
8591    C: AsRef<UnpinAllDirectMessagesChatTopicMessages>,
8592  >(
8593    &self,
8594    unpin_all_direct_messages_chat_topic_messages: C,
8595  ) -> RTDResult<Ok> {
8596    async_caller!(Ok);
8597    async_caller(
8598      &self.api,
8599      unpin_all_direct_messages_chat_topic_messages.as_ref(),
8600    )
8601    .await
8602  }
8603
8604  pub async fn unpin_all_forum_topic_messages<C: AsRef<UnpinAllForumTopicMessages>>(
8605    &self,
8606    unpin_all_forum_topic_messages: C,
8607  ) -> RTDResult<Ok> {
8608    async_caller!(Ok);
8609    async_caller(&self.api, unpin_all_forum_topic_messages.as_ref()).await
8610  }
8611
8612  pub async fn unpin_chat_message<C: AsRef<UnpinChatMessage>>(
8613    &self,
8614    unpin_chat_message: C,
8615  ) -> RTDResult<Ok> {
8616    async_caller!(Ok);
8617    async_caller(&self.api, unpin_chat_message.as_ref()).await
8618  }
8619
8620  pub async fn upgrade_basic_group_chat_to_supergroup_chat<
8621    C: AsRef<UpgradeBasicGroupChatToSupergroupChat>,
8622  >(
8623    &self,
8624    upgrade_basic_group_chat_to_supergroup_chat: C,
8625  ) -> RTDResult<Chat> {
8626    async_caller!(Chat);
8627    async_caller(
8628      &self.api,
8629      upgrade_basic_group_chat_to_supergroup_chat.as_ref(),
8630    )
8631    .await
8632  }
8633
8634  pub async fn upgrade_gift<C: AsRef<UpgradeGift>>(
8635    &self,
8636    upgrade_gift: C,
8637  ) -> RTDResult<UpgradeGiftResult> {
8638    async_caller!(UpgradeGiftResult);
8639    async_caller(&self.api, upgrade_gift.as_ref()).await
8640  }
8641
8642  pub async fn upload_sticker_file<C: AsRef<UploadStickerFile>>(
8643    &self,
8644    upload_sticker_file: C,
8645  ) -> RTDResult<File> {
8646    async_caller!(File);
8647    async_caller(&self.api, upload_sticker_file.as_ref()).await
8648  }
8649
8650  pub async fn validate_order_info<C: AsRef<ValidateOrderInfo>>(
8651    &self,
8652    validate_order_info: C,
8653  ) -> RTDResult<ValidatedOrderInfo> {
8654    async_caller!(ValidatedOrderInfo);
8655    async_caller(&self.api, validate_order_info.as_ref()).await
8656  }
8657
8658  pub async fn view_messages<C: AsRef<ViewMessages>>(&self, view_messages: C) -> RTDResult<Ok> {
8659    async_caller!(Ok);
8660    async_caller(&self.api, view_messages.as_ref()).await
8661  }
8662
8663  pub async fn view_premium_feature<C: AsRef<ViewPremiumFeature>>(
8664    &self,
8665    view_premium_feature: C,
8666  ) -> RTDResult<Ok> {
8667    async_caller!(Ok);
8668    async_caller(&self.api, view_premium_feature.as_ref()).await
8669  }
8670
8671  pub async fn view_sponsored_chat<C: AsRef<ViewSponsoredChat>>(
8672    &self,
8673    view_sponsored_chat: C,
8674  ) -> RTDResult<Ok> {
8675    async_caller!(Ok);
8676    async_caller(&self.api, view_sponsored_chat.as_ref()).await
8677  }
8678
8679  pub async fn view_trending_sticker_sets<C: AsRef<ViewTrendingStickerSets>>(
8680    &self,
8681    view_trending_sticker_sets: C,
8682  ) -> RTDResult<Ok> {
8683    async_caller!(Ok);
8684    async_caller(&self.api, view_trending_sticker_sets.as_ref()).await
8685  }
8686
8687  pub async fn view_video_message_advertisement<C: AsRef<ViewVideoMessageAdvertisement>>(
8688    &self,
8689    view_video_message_advertisement: C,
8690  ) -> RTDResult<Ok> {
8691    async_caller!(Ok);
8692    async_caller(&self.api, view_video_message_advertisement.as_ref()).await
8693  }
8694
8695  pub async fn withdraw_upgraded_gift<C: AsRef<WithdrawUpgradedGift>>(
8696    &self,
8697    withdraw_upgraded_gift: C,
8698  ) -> RTDResult<Ok> {
8699    async_caller!(Ok);
8700    async_caller(&self.api, withdraw_upgraded_gift.as_ref()).await
8701  }
8702
8703  pub async fn write_generated_file_part<C: AsRef<WriteGeneratedFilePart>>(
8704    &self,
8705    write_generated_file_part: C,
8706  ) -> RTDResult<Ok> {
8707    async_caller!(Ok);
8708    async_caller(&self.api, write_generated_file_part.as_ref()).await
8709  }
8710}