telegram_client/api/
aasync.rs

1use futures::StreamExt;
2use rtdlib::errors::{RTDError, RTDResult};
3use rtdlib::types::*;
4
5use crate::api::Api;
6use crate::observer;
7
8macro_rules! async_caller {
9  ($td_type:ident) => {
10    async fn async_caller<Fnc: RFunction>(api: &Api, fnc: Fnc) -> RTDResult<$td_type> {
11      let extra = fnc.extra()
12        .ok_or(RTDError::Custom("invalid tdjson response type, not have `extra` field".to_string()))?;
13      let mut rec = observer::subscribe(&extra);
14      api.send(&fnc)?;
15      let val = rec.next().await;
16      observer::unsubscribe(&extra);
17      if let Some(TdType::Error(v)) = val {
18        return Err(RTDError::custom(format!("[{}] {}", v.code(), v.message())));
19      }
20      match val {
21        Some(TdType::$td_type(v)) => { Ok(v) }
22        _ => { Err(RTDError::custom("invalid tdjson response type, unexpected `extra` field".to_string())) }
23      }
24    }
25  }
26}
27
28#[derive(Clone)]
29pub struct AsyncApi {
30  api: Api,
31}
32
33impl AsyncApi {
34  pub fn new(api: Api) -> Self {
35    Self { api}
36  }
37
38  #[doc(hidden)]
39  pub fn api(&self) -> &Api {
40    &self.api
41  }
42
43
44  pub async fn accept_call<C: AsRef<AcceptCall>>(&self, accept_call: C) -> RTDResult<Ok> {
45    async_caller!(Ok);
46    async_caller(&self.api, accept_call.as_ref()).await
47  }
48
49  pub async fn accept_terms_of_service<C: AsRef<AcceptTermsOfService>>(&self, accept_terms_of_service: C) -> RTDResult<Ok> {
50    async_caller!(Ok);
51    async_caller(&self.api, accept_terms_of_service.as_ref()).await
52  }
53
54  pub async fn add_chat_member<C: AsRef<AddChatMember>>(&self, add_chat_member: C) -> RTDResult<Ok> {
55    async_caller!(Ok);
56    async_caller(&self.api, add_chat_member.as_ref()).await
57  }
58
59  pub async fn add_chat_members<C: AsRef<AddChatMembers>>(&self, add_chat_members: C) -> RTDResult<Ok> {
60    async_caller!(Ok);
61    async_caller(&self.api, add_chat_members.as_ref()).await
62  }
63
64  pub async fn add_chat_to_list<C: AsRef<AddChatToList>>(&self, add_chat_to_list: C) -> RTDResult<Ok> {
65    async_caller!(Ok);
66    async_caller(&self.api, add_chat_to_list.as_ref()).await
67  }
68
69  pub async fn add_contact<C: AsRef<AddContact>>(&self, add_contact: C) -> RTDResult<Ok> {
70    async_caller!(Ok);
71    async_caller(&self.api, add_contact.as_ref()).await
72  }
73
74  pub async fn add_custom_server_language_pack<C: AsRef<AddCustomServerLanguagePack>>(&self, add_custom_server_language_pack: C) -> RTDResult<Ok> {
75    async_caller!(Ok);
76    async_caller(&self.api, add_custom_server_language_pack.as_ref()).await
77  }
78
79  pub async fn add_favorite_sticker<C: AsRef<AddFavoriteSticker>>(&self, add_favorite_sticker: C) -> RTDResult<Ok> {
80    async_caller!(Ok);
81    async_caller(&self.api, add_favorite_sticker.as_ref()).await
82  }
83
84  pub async fn add_local_message<C: AsRef<AddLocalMessage>>(&self, add_local_message: C) -> RTDResult<Message> {
85    async_caller!(Message);
86    async_caller(&self.api, add_local_message.as_ref()).await
87  }
88
89  pub async fn add_log_message<C: AsRef<AddLogMessage>>(&self, add_log_message: C) -> RTDResult<Ok> {
90    async_caller!(Ok);
91    async_caller(&self.api, add_log_message.as_ref()).await
92  }
93
94  pub async fn add_network_statistics<C: AsRef<AddNetworkStatistics>>(&self, add_network_statistics: C) -> RTDResult<Ok> {
95    async_caller!(Ok);
96    async_caller(&self.api, add_network_statistics.as_ref()).await
97  }
98
99  pub async fn add_proxy<C: AsRef<AddProxy>>(&self, add_proxy: C) -> RTDResult<Proxy> {
100    async_caller!(Proxy);
101    async_caller(&self.api, add_proxy.as_ref()).await
102  }
103
104  pub async fn add_recent_sticker<C: AsRef<AddRecentSticker>>(&self, add_recent_sticker: C) -> RTDResult<Stickers> {
105    async_caller!(Stickers);
106    async_caller(&self.api, add_recent_sticker.as_ref()).await
107  }
108
109  pub async fn add_recently_found_chat<C: AsRef<AddRecentlyFoundChat>>(&self, add_recently_found_chat: C) -> RTDResult<Ok> {
110    async_caller!(Ok);
111    async_caller(&self.api, add_recently_found_chat.as_ref()).await
112  }
113
114  pub async fn add_saved_animation<C: AsRef<AddSavedAnimation>>(&self, add_saved_animation: C) -> RTDResult<Ok> {
115    async_caller!(Ok);
116    async_caller(&self.api, add_saved_animation.as_ref()).await
117  }
118
119  pub async fn add_sticker_to_set<C: AsRef<AddStickerToSet>>(&self, add_sticker_to_set: C) -> RTDResult<StickerSet> {
120    async_caller!(StickerSet);
121    async_caller(&self.api, add_sticker_to_set.as_ref()).await
122  }
123
124  pub async fn answer_callback_query<C: AsRef<AnswerCallbackQuery>>(&self, answer_callback_query: C) -> RTDResult<Ok> {
125    async_caller!(Ok);
126    async_caller(&self.api, answer_callback_query.as_ref()).await
127  }
128
129  pub async fn answer_custom_query<C: AsRef<AnswerCustomQuery>>(&self, answer_custom_query: C) -> RTDResult<Ok> {
130    async_caller!(Ok);
131    async_caller(&self.api, answer_custom_query.as_ref()).await
132  }
133
134  pub async fn answer_inline_query<C: AsRef<AnswerInlineQuery>>(&self, answer_inline_query: C) -> RTDResult<Ok> {
135    async_caller!(Ok);
136    async_caller(&self.api, answer_inline_query.as_ref()).await
137  }
138
139  pub async fn answer_pre_checkout_query<C: AsRef<AnswerPreCheckoutQuery>>(&self, answer_pre_checkout_query: C) -> RTDResult<Ok> {
140    async_caller!(Ok);
141    async_caller(&self.api, answer_pre_checkout_query.as_ref()).await
142  }
143
144  pub async fn answer_shipping_query<C: AsRef<AnswerShippingQuery>>(&self, answer_shipping_query: C) -> RTDResult<Ok> {
145    async_caller!(Ok);
146    async_caller(&self.api, answer_shipping_query.as_ref()).await
147  }
148
149  pub async fn ban_chat_member<C: AsRef<BanChatMember>>(&self, ban_chat_member: C) -> RTDResult<Ok> {
150    async_caller!(Ok);
151    async_caller(&self.api, ban_chat_member.as_ref()).await
152  }
153
154  pub async fn block_message_sender_from_replies<C: AsRef<BlockMessageSenderFromReplies>>(&self, block_message_sender_from_replies: C) -> RTDResult<Ok> {
155    async_caller!(Ok);
156    async_caller(&self.api, block_message_sender_from_replies.as_ref()).await
157  }
158
159  pub async fn can_transfer_ownership<C: AsRef<CanTransferOwnership>>(&self, can_transfer_ownership: C) -> RTDResult<CanTransferOwnershipResult> {
160    async_caller!(CanTransferOwnershipResult);
161    async_caller(&self.api, can_transfer_ownership.as_ref()).await
162  }
163
164  pub async fn cancel_download_file<C: AsRef<CancelDownloadFile>>(&self, cancel_download_file: C) -> RTDResult<Ok> {
165    async_caller!(Ok);
166    async_caller(&self.api, cancel_download_file.as_ref()).await
167  }
168
169  pub async fn cancel_password_reset<C: AsRef<CancelPasswordReset>>(&self, cancel_password_reset: C) -> RTDResult<Ok> {
170    async_caller!(Ok);
171    async_caller(&self.api, cancel_password_reset.as_ref()).await
172  }
173
174  pub async fn cancel_upload_file<C: AsRef<CancelUploadFile>>(&self, cancel_upload_file: C) -> RTDResult<Ok> {
175    async_caller!(Ok);
176    async_caller(&self.api, cancel_upload_file.as_ref()).await
177  }
178
179  pub async fn change_imported_contacts<C: AsRef<ChangeImportedContacts>>(&self, change_imported_contacts: C) -> RTDResult<ImportedContacts> {
180    async_caller!(ImportedContacts);
181    async_caller(&self.api, change_imported_contacts.as_ref()).await
182  }
183
184  pub async fn change_phone_number<C: AsRef<ChangePhoneNumber>>(&self, change_phone_number: C) -> RTDResult<AuthenticationCodeInfo> {
185    async_caller!(AuthenticationCodeInfo);
186    async_caller(&self.api, change_phone_number.as_ref()).await
187  }
188
189  pub async fn change_sticker_set<C: AsRef<ChangeStickerSet>>(&self, change_sticker_set: C) -> RTDResult<Ok> {
190    async_caller!(Ok);
191    async_caller(&self.api, change_sticker_set.as_ref()).await
192  }
193
194  pub async fn check_authentication_bot_token<C: AsRef<CheckAuthenticationBotToken>>(&self, check_authentication_bot_token: C) -> RTDResult<Ok> {
195    async_caller!(Ok);
196    async_caller(&self.api, check_authentication_bot_token.as_ref()).await
197  }
198
199  pub async fn check_authentication_code<C: AsRef<CheckAuthenticationCode>>(&self, check_authentication_code: C) -> RTDResult<Ok> {
200    async_caller!(Ok);
201    async_caller(&self.api, check_authentication_code.as_ref()).await
202  }
203
204  pub async fn check_authentication_password<C: AsRef<CheckAuthenticationPassword>>(&self, check_authentication_password: C) -> RTDResult<Ok> {
205    async_caller!(Ok);
206    async_caller(&self.api, check_authentication_password.as_ref()).await
207  }
208
209  pub async fn check_authentication_password_recovery_code<C: AsRef<CheckAuthenticationPasswordRecoveryCode>>(&self, check_authentication_password_recovery_code: C) -> RTDResult<Ok> {
210    async_caller!(Ok);
211    async_caller(&self.api, check_authentication_password_recovery_code.as_ref()).await
212  }
213
214  pub async fn check_change_phone_number_code<C: AsRef<CheckChangePhoneNumberCode>>(&self, check_change_phone_number_code: C) -> RTDResult<Ok> {
215    async_caller!(Ok);
216    async_caller(&self.api, check_change_phone_number_code.as_ref()).await
217  }
218
219  pub async fn check_chat_invite_link<C: AsRef<CheckChatInviteLink>>(&self, check_chat_invite_link: C) -> RTDResult<ChatInviteLinkInfo> {
220    async_caller!(ChatInviteLinkInfo);
221    async_caller(&self.api, check_chat_invite_link.as_ref()).await
222  }
223
224  pub async fn check_chat_username<C: AsRef<CheckChatUsername>>(&self, check_chat_username: C) -> RTDResult<CheckChatUsernameResult> {
225    async_caller!(CheckChatUsernameResult);
226    async_caller(&self.api, check_chat_username.as_ref()).await
227  }
228
229  pub async fn check_created_public_chats_limit<C: AsRef<CheckCreatedPublicChatsLimit>>(&self, check_created_public_chats_limit: C) -> RTDResult<Ok> {
230    async_caller!(Ok);
231    async_caller(&self.api, check_created_public_chats_limit.as_ref()).await
232  }
233
234  pub async fn check_database_encryption_key<C: AsRef<CheckDatabaseEncryptionKey>>(&self, check_database_encryption_key: C) -> RTDResult<Ok> {
235    async_caller!(Ok);
236    async_caller(&self.api, check_database_encryption_key.as_ref()).await
237  }
238
239  pub async fn check_email_address_verification_code<C: AsRef<CheckEmailAddressVerificationCode>>(&self, check_email_address_verification_code: C) -> RTDResult<Ok> {
240    async_caller!(Ok);
241    async_caller(&self.api, check_email_address_verification_code.as_ref()).await
242  }
243
244  pub async fn check_password_recovery_code<C: AsRef<CheckPasswordRecoveryCode>>(&self, check_password_recovery_code: C) -> RTDResult<Ok> {
245    async_caller!(Ok);
246    async_caller(&self.api, check_password_recovery_code.as_ref()).await
247  }
248
249  pub async fn check_phone_number_confirmation_code<C: AsRef<CheckPhoneNumberConfirmationCode>>(&self, check_phone_number_confirmation_code: C) -> RTDResult<Ok> {
250    async_caller!(Ok);
251    async_caller(&self.api, check_phone_number_confirmation_code.as_ref()).await
252  }
253
254  pub async fn check_phone_number_verification_code<C: AsRef<CheckPhoneNumberVerificationCode>>(&self, check_phone_number_verification_code: C) -> RTDResult<Ok> {
255    async_caller!(Ok);
256    async_caller(&self.api, check_phone_number_verification_code.as_ref()).await
257  }
258
259  pub async fn check_recovery_email_address_code<C: AsRef<CheckRecoveryEmailAddressCode>>(&self, check_recovery_email_address_code: C) -> RTDResult<PasswordState> {
260    async_caller!(PasswordState);
261    async_caller(&self.api, check_recovery_email_address_code.as_ref()).await
262  }
263
264  pub async fn check_sticker_set_name<C: AsRef<CheckStickerSetName>>(&self, check_sticker_set_name: C) -> RTDResult<CheckStickerSetNameResult> {
265    async_caller!(CheckStickerSetNameResult);
266    async_caller(&self.api, check_sticker_set_name.as_ref()).await
267  }
268
269  pub async fn clean_file_name<C: AsRef<CleanFileName>>(&self, clean_file_name: C) -> RTDResult<Text> {
270    async_caller!(Text);
271    async_caller(&self.api, clean_file_name.as_ref()).await
272  }
273
274  pub async fn clear_all_draft_messages<C: AsRef<ClearAllDraftMessages>>(&self, clear_all_draft_messages: C) -> RTDResult<Ok> {
275    async_caller!(Ok);
276    async_caller(&self.api, clear_all_draft_messages.as_ref()).await
277  }
278
279  pub async fn clear_imported_contacts<C: AsRef<ClearImportedContacts>>(&self, clear_imported_contacts: C) -> RTDResult<Ok> {
280    async_caller!(Ok);
281    async_caller(&self.api, clear_imported_contacts.as_ref()).await
282  }
283
284  pub async fn clear_recent_stickers<C: AsRef<ClearRecentStickers>>(&self, clear_recent_stickers: C) -> RTDResult<Ok> {
285    async_caller!(Ok);
286    async_caller(&self.api, clear_recent_stickers.as_ref()).await
287  }
288
289  pub async fn clear_recently_found_chats<C: AsRef<ClearRecentlyFoundChats>>(&self, clear_recently_found_chats: C) -> RTDResult<Ok> {
290    async_caller!(Ok);
291    async_caller(&self.api, clear_recently_found_chats.as_ref()).await
292  }
293
294  pub async fn click_animated_emoji_message<C: AsRef<ClickAnimatedEmojiMessage>>(&self, click_animated_emoji_message: C) -> RTDResult<Sticker> {
295    async_caller!(Sticker);
296    async_caller(&self.api, click_animated_emoji_message.as_ref()).await
297  }
298
299  pub async fn close<C: AsRef<Close>>(&self, close: C) -> RTDResult<Ok> {
300    async_caller!(Ok);
301    async_caller(&self.api, close.as_ref()).await
302  }
303
304  pub async fn close_chat<C: AsRef<CloseChat>>(&self, close_chat: C) -> RTDResult<Ok> {
305    async_caller!(Ok);
306    async_caller(&self.api, close_chat.as_ref()).await
307  }
308
309  pub async fn close_secret_chat<C: AsRef<CloseSecretChat>>(&self, close_secret_chat: C) -> RTDResult<Ok> {
310    async_caller!(Ok);
311    async_caller(&self.api, close_secret_chat.as_ref()).await
312  }
313
314  pub async fn confirm_qr_code_authentication<C: AsRef<ConfirmQrCodeAuthentication>>(&self, confirm_qr_code_authentication: C) -> RTDResult<Session> {
315    async_caller!(Session);
316    async_caller(&self.api, confirm_qr_code_authentication.as_ref()).await
317  }
318
319  pub async fn create_basic_group_chat<C: AsRef<CreateBasicGroupChat>>(&self, create_basic_group_chat: C) -> RTDResult<Chat> {
320    async_caller!(Chat);
321    async_caller(&self.api, create_basic_group_chat.as_ref()).await
322  }
323
324  pub async fn create_call<C: AsRef<CreateCall>>(&self, create_call: C) -> RTDResult<CallId> {
325    async_caller!(CallId);
326    async_caller(&self.api, create_call.as_ref()).await
327  }
328
329  pub async fn create_chat_filter<C: AsRef<CreateChatFilter>>(&self, create_chat_filter: C) -> RTDResult<ChatFilterInfo> {
330    async_caller!(ChatFilterInfo);
331    async_caller(&self.api, create_chat_filter.as_ref()).await
332  }
333
334  pub async fn create_chat_invite_link<C: AsRef<CreateChatInviteLink>>(&self, create_chat_invite_link: C) -> RTDResult<ChatInviteLink> {
335    async_caller!(ChatInviteLink);
336    async_caller(&self.api, create_chat_invite_link.as_ref()).await
337  }
338
339  pub async fn create_new_basic_group_chat<C: AsRef<CreateNewBasicGroupChat>>(&self, create_new_basic_group_chat: C) -> RTDResult<Chat> {
340    async_caller!(Chat);
341    async_caller(&self.api, create_new_basic_group_chat.as_ref()).await
342  }
343
344  pub async fn create_new_secret_chat<C: AsRef<CreateNewSecretChat>>(&self, create_new_secret_chat: C) -> RTDResult<Chat> {
345    async_caller!(Chat);
346    async_caller(&self.api, create_new_secret_chat.as_ref()).await
347  }
348
349  pub async fn create_new_sticker_set<C: AsRef<CreateNewStickerSet>>(&self, create_new_sticker_set: C) -> RTDResult<StickerSet> {
350    async_caller!(StickerSet);
351    async_caller(&self.api, create_new_sticker_set.as_ref()).await
352  }
353
354  pub async fn create_new_supergroup_chat<C: AsRef<CreateNewSupergroupChat>>(&self, create_new_supergroup_chat: C) -> RTDResult<Chat> {
355    async_caller!(Chat);
356    async_caller(&self.api, create_new_supergroup_chat.as_ref()).await
357  }
358
359  pub async fn create_private_chat<C: AsRef<CreatePrivateChat>>(&self, create_private_chat: C) -> RTDResult<Chat> {
360    async_caller!(Chat);
361    async_caller(&self.api, create_private_chat.as_ref()).await
362  }
363
364  pub async fn create_secret_chat<C: AsRef<CreateSecretChat>>(&self, create_secret_chat: C) -> RTDResult<Chat> {
365    async_caller!(Chat);
366    async_caller(&self.api, create_secret_chat.as_ref()).await
367  }
368
369  pub async fn create_supergroup_chat<C: AsRef<CreateSupergroupChat>>(&self, create_supergroup_chat: C) -> RTDResult<Chat> {
370    async_caller!(Chat);
371    async_caller(&self.api, create_supergroup_chat.as_ref()).await
372  }
373
374  pub async fn create_temporary_password<C: AsRef<CreateTemporaryPassword>>(&self, create_temporary_password: C) -> RTDResult<TemporaryPasswordState> {
375    async_caller!(TemporaryPasswordState);
376    async_caller(&self.api, create_temporary_password.as_ref()).await
377  }
378
379  pub async fn create_video_chat<C: AsRef<CreateVideoChat>>(&self, create_video_chat: C) -> RTDResult<GroupCallId> {
380    async_caller!(GroupCallId);
381    async_caller(&self.api, create_video_chat.as_ref()).await
382  }
383
384  pub async fn delete_account<C: AsRef<DeleteAccount>>(&self, delete_account: C) -> RTDResult<Ok> {
385    async_caller!(Ok);
386    async_caller(&self.api, delete_account.as_ref()).await
387  }
388
389  pub async fn delete_all_call_messages<C: AsRef<DeleteAllCallMessages>>(&self, delete_all_call_messages: C) -> RTDResult<Ok> {
390    async_caller!(Ok);
391    async_caller(&self.api, delete_all_call_messages.as_ref()).await
392  }
393
394  pub async fn delete_all_revoked_chat_invite_links<C: AsRef<DeleteAllRevokedChatInviteLinks>>(&self, delete_all_revoked_chat_invite_links: C) -> RTDResult<Ok> {
395    async_caller!(Ok);
396    async_caller(&self.api, delete_all_revoked_chat_invite_links.as_ref()).await
397  }
398
399  pub async fn delete_chat<C: AsRef<DeleteChat>>(&self, delete_chat: C) -> RTDResult<Ok> {
400    async_caller!(Ok);
401    async_caller(&self.api, delete_chat.as_ref()).await
402  }
403
404  pub async fn delete_chat_filter<C: AsRef<DeleteChatFilter>>(&self, delete_chat_filter: C) -> RTDResult<Ok> {
405    async_caller!(Ok);
406    async_caller(&self.api, delete_chat_filter.as_ref()).await
407  }
408
409  pub async fn delete_chat_history<C: AsRef<DeleteChatHistory>>(&self, delete_chat_history: C) -> RTDResult<Ok> {
410    async_caller!(Ok);
411    async_caller(&self.api, delete_chat_history.as_ref()).await
412  }
413
414  pub async fn delete_chat_messages_by_date<C: AsRef<DeleteChatMessagesByDate>>(&self, delete_chat_messages_by_date: C) -> RTDResult<Ok> {
415    async_caller!(Ok);
416    async_caller(&self.api, delete_chat_messages_by_date.as_ref()).await
417  }
418
419  pub async fn delete_chat_messages_by_sender<C: AsRef<DeleteChatMessagesBySender>>(&self, delete_chat_messages_by_sender: C) -> RTDResult<Ok> {
420    async_caller!(Ok);
421    async_caller(&self.api, delete_chat_messages_by_sender.as_ref()).await
422  }
423
424  pub async fn delete_chat_reply_markup<C: AsRef<DeleteChatReplyMarkup>>(&self, delete_chat_reply_markup: C) -> RTDResult<Ok> {
425    async_caller!(Ok);
426    async_caller(&self.api, delete_chat_reply_markup.as_ref()).await
427  }
428
429  pub async fn delete_commands<C: AsRef<DeleteCommands>>(&self, delete_commands: C) -> RTDResult<Ok> {
430    async_caller!(Ok);
431    async_caller(&self.api, delete_commands.as_ref()).await
432  }
433
434  pub async fn delete_file<C: AsRef<DeleteFile>>(&self, delete_file: C) -> RTDResult<Ok> {
435    async_caller!(Ok);
436    async_caller(&self.api, delete_file.as_ref()).await
437  }
438
439  pub async fn delete_language_pack<C: AsRef<DeleteLanguagePack>>(&self, delete_language_pack: C) -> RTDResult<Ok> {
440    async_caller!(Ok);
441    async_caller(&self.api, delete_language_pack.as_ref()).await
442  }
443
444  pub async fn delete_messages<C: AsRef<DeleteMessages>>(&self, delete_messages: C) -> RTDResult<Ok> {
445    async_caller!(Ok);
446    async_caller(&self.api, delete_messages.as_ref()).await
447  }
448
449  pub async fn delete_passport_element<C: AsRef<DeletePassportElement>>(&self, delete_passport_element: C) -> RTDResult<Ok> {
450    async_caller!(Ok);
451    async_caller(&self.api, delete_passport_element.as_ref()).await
452  }
453
454  pub async fn delete_profile_photo<C: AsRef<DeleteProfilePhoto>>(&self, delete_profile_photo: C) -> RTDResult<Ok> {
455    async_caller!(Ok);
456    async_caller(&self.api, delete_profile_photo.as_ref()).await
457  }
458
459  pub async fn delete_revoked_chat_invite_link<C: AsRef<DeleteRevokedChatInviteLink>>(&self, delete_revoked_chat_invite_link: C) -> RTDResult<Ok> {
460    async_caller!(Ok);
461    async_caller(&self.api, delete_revoked_chat_invite_link.as_ref()).await
462  }
463
464  pub async fn delete_saved_credentials<C: AsRef<DeleteSavedCredentials>>(&self, delete_saved_credentials: C) -> RTDResult<Ok> {
465    async_caller!(Ok);
466    async_caller(&self.api, delete_saved_credentials.as_ref()).await
467  }
468
469  pub async fn delete_saved_order_info<C: AsRef<DeleteSavedOrderInfo>>(&self, delete_saved_order_info: C) -> RTDResult<Ok> {
470    async_caller!(Ok);
471    async_caller(&self.api, delete_saved_order_info.as_ref()).await
472  }
473
474  pub async fn destroy<C: AsRef<Destroy>>(&self, destroy: C) -> RTDResult<Ok> {
475    async_caller!(Ok);
476    async_caller(&self.api, destroy.as_ref()).await
477  }
478
479  pub async fn disable_proxy<C: AsRef<DisableProxy>>(&self, disable_proxy: C) -> RTDResult<Ok> {
480    async_caller!(Ok);
481    async_caller(&self.api, disable_proxy.as_ref()).await
482  }
483
484  pub async fn discard_call<C: AsRef<DiscardCall>>(&self, discard_call: C) -> RTDResult<Ok> {
485    async_caller!(Ok);
486    async_caller(&self.api, discard_call.as_ref()).await
487  }
488
489  pub async fn disconnect_all_websites<C: AsRef<DisconnectAllWebsites>>(&self, disconnect_all_websites: C) -> RTDResult<Ok> {
490    async_caller!(Ok);
491    async_caller(&self.api, disconnect_all_websites.as_ref()).await
492  }
493
494  pub async fn disconnect_website<C: AsRef<DisconnectWebsite>>(&self, disconnect_website: C) -> RTDResult<Ok> {
495    async_caller!(Ok);
496    async_caller(&self.api, disconnect_website.as_ref()).await
497  }
498
499  pub async fn download_file<C: AsRef<DownloadFile>>(&self, download_file: C) -> RTDResult<File> {
500    async_caller!(File);
501    async_caller(&self.api, download_file.as_ref()).await
502  }
503
504  pub async fn edit_chat_filter<C: AsRef<EditChatFilter>>(&self, edit_chat_filter: C) -> RTDResult<ChatFilterInfo> {
505    async_caller!(ChatFilterInfo);
506    async_caller(&self.api, edit_chat_filter.as_ref()).await
507  }
508
509  pub async fn edit_chat_invite_link<C: AsRef<EditChatInviteLink>>(&self, edit_chat_invite_link: C) -> RTDResult<ChatInviteLink> {
510    async_caller!(ChatInviteLink);
511    async_caller(&self.api, edit_chat_invite_link.as_ref()).await
512  }
513
514  pub async fn edit_custom_language_pack_info<C: AsRef<EditCustomLanguagePackInfo>>(&self, edit_custom_language_pack_info: C) -> RTDResult<Ok> {
515    async_caller!(Ok);
516    async_caller(&self.api, edit_custom_language_pack_info.as_ref()).await
517  }
518
519  pub async fn edit_inline_message_caption<C: AsRef<EditInlineMessageCaption>>(&self, edit_inline_message_caption: C) -> RTDResult<Ok> {
520    async_caller!(Ok);
521    async_caller(&self.api, edit_inline_message_caption.as_ref()).await
522  }
523
524  pub async fn edit_inline_message_live_location<C: AsRef<EditInlineMessageLiveLocation>>(&self, edit_inline_message_live_location: C) -> RTDResult<Ok> {
525    async_caller!(Ok);
526    async_caller(&self.api, edit_inline_message_live_location.as_ref()).await
527  }
528
529  pub async fn edit_inline_message_media<C: AsRef<EditInlineMessageMedia>>(&self, edit_inline_message_media: C) -> RTDResult<Ok> {
530    async_caller!(Ok);
531    async_caller(&self.api, edit_inline_message_media.as_ref()).await
532  }
533
534  pub async fn edit_inline_message_reply_markup<C: AsRef<EditInlineMessageReplyMarkup>>(&self, edit_inline_message_reply_markup: C) -> RTDResult<Ok> {
535    async_caller!(Ok);
536    async_caller(&self.api, edit_inline_message_reply_markup.as_ref()).await
537  }
538
539  pub async fn edit_inline_message_text<C: AsRef<EditInlineMessageText>>(&self, edit_inline_message_text: C) -> RTDResult<Ok> {
540    async_caller!(Ok);
541    async_caller(&self.api, edit_inline_message_text.as_ref()).await
542  }
543
544  pub async fn edit_message_caption<C: AsRef<EditMessageCaption>>(&self, edit_message_caption: C) -> RTDResult<Message> {
545    async_caller!(Message);
546    async_caller(&self.api, edit_message_caption.as_ref()).await
547  }
548
549  pub async fn edit_message_live_location<C: AsRef<EditMessageLiveLocation>>(&self, edit_message_live_location: C) -> RTDResult<Message> {
550    async_caller!(Message);
551    async_caller(&self.api, edit_message_live_location.as_ref()).await
552  }
553
554  pub async fn edit_message_media<C: AsRef<EditMessageMedia>>(&self, edit_message_media: C) -> RTDResult<Message> {
555    async_caller!(Message);
556    async_caller(&self.api, edit_message_media.as_ref()).await
557  }
558
559  pub async fn edit_message_reply_markup<C: AsRef<EditMessageReplyMarkup>>(&self, edit_message_reply_markup: C) -> RTDResult<Message> {
560    async_caller!(Message);
561    async_caller(&self.api, edit_message_reply_markup.as_ref()).await
562  }
563
564  pub async fn edit_message_scheduling_state<C: AsRef<EditMessageSchedulingState>>(&self, edit_message_scheduling_state: C) -> RTDResult<Ok> {
565    async_caller!(Ok);
566    async_caller(&self.api, edit_message_scheduling_state.as_ref()).await
567  }
568
569  pub async fn edit_message_text<C: AsRef<EditMessageText>>(&self, edit_message_text: C) -> RTDResult<Message> {
570    async_caller!(Message);
571    async_caller(&self.api, edit_message_text.as_ref()).await
572  }
573
574  pub async fn edit_proxy<C: AsRef<EditProxy>>(&self, edit_proxy: C) -> RTDResult<Proxy> {
575    async_caller!(Proxy);
576    async_caller(&self.api, edit_proxy.as_ref()).await
577  }
578
579  pub async fn enable_proxy<C: AsRef<EnableProxy>>(&self, enable_proxy: C) -> RTDResult<Ok> {
580    async_caller!(Ok);
581    async_caller(&self.api, enable_proxy.as_ref()).await
582  }
583
584  pub async fn end_group_call<C: AsRef<EndGroupCall>>(&self, end_group_call: C) -> RTDResult<Ok> {
585    async_caller!(Ok);
586    async_caller(&self.api, end_group_call.as_ref()).await
587  }
588
589  pub async fn end_group_call_recording<C: AsRef<EndGroupCallRecording>>(&self, end_group_call_recording: C) -> RTDResult<Ok> {
590    async_caller!(Ok);
591    async_caller(&self.api, end_group_call_recording.as_ref()).await
592  }
593
594  pub async fn end_group_call_screen_sharing<C: AsRef<EndGroupCallScreenSharing>>(&self, end_group_call_screen_sharing: C) -> RTDResult<Ok> {
595    async_caller!(Ok);
596    async_caller(&self.api, end_group_call_screen_sharing.as_ref()).await
597  }
598
599  pub async fn finish_file_generation<C: AsRef<FinishFileGeneration>>(&self, finish_file_generation: C) -> RTDResult<Ok> {
600    async_caller!(Ok);
601    async_caller(&self.api, finish_file_generation.as_ref()).await
602  }
603
604  pub async fn forward_messages<C: AsRef<ForwardMessages>>(&self, forward_messages: C) -> RTDResult<Messages> {
605    async_caller!(Messages);
606    async_caller(&self.api, forward_messages.as_ref()).await
607  }
608
609  pub async fn get_account_ttl<C: AsRef<GetAccountTtl>>(&self, get_account_ttl: C) -> RTDResult<AccountTtl> {
610    async_caller!(AccountTtl);
611    async_caller(&self.api, get_account_ttl.as_ref()).await
612  }
613
614  pub async fn get_active_live_location_messages<C: AsRef<GetActiveLiveLocationMessages>>(&self, get_active_live_location_messages: C) -> RTDResult<Messages> {
615    async_caller!(Messages);
616    async_caller(&self.api, get_active_live_location_messages.as_ref()).await
617  }
618
619  pub async fn get_active_sessions<C: AsRef<GetActiveSessions>>(&self, get_active_sessions: C) -> RTDResult<Sessions> {
620    async_caller!(Sessions);
621    async_caller(&self.api, get_active_sessions.as_ref()).await
622  }
623
624  pub async fn get_all_passport_elements<C: AsRef<GetAllPassportElements>>(&self, get_all_passport_elements: C) -> RTDResult<PassportElements> {
625    async_caller!(PassportElements);
626    async_caller(&self.api, get_all_passport_elements.as_ref()).await
627  }
628
629  pub async fn get_animated_emoji<C: AsRef<GetAnimatedEmoji>>(&self, get_animated_emoji: C) -> RTDResult<AnimatedEmoji> {
630    async_caller!(AnimatedEmoji);
631    async_caller(&self.api, get_animated_emoji.as_ref()).await
632  }
633
634  pub async fn get_application_config<C: AsRef<GetApplicationConfig>>(&self, get_application_config: C) -> RTDResult<JsonValue> {
635    async_caller!(JsonValue);
636    async_caller(&self.api, get_application_config.as_ref()).await
637  }
638
639  pub async fn get_application_download_link<C: AsRef<GetApplicationDownloadLink>>(&self, get_application_download_link: C) -> RTDResult<HttpUrl> {
640    async_caller!(HttpUrl);
641    async_caller(&self.api, get_application_download_link.as_ref()).await
642  }
643
644  pub async fn get_archived_sticker_sets<C: AsRef<GetArchivedStickerSets>>(&self, get_archived_sticker_sets: C) -> RTDResult<StickerSets> {
645    async_caller!(StickerSets);
646    async_caller(&self.api, get_archived_sticker_sets.as_ref()).await
647  }
648
649  pub async fn get_attached_sticker_sets<C: AsRef<GetAttachedStickerSets>>(&self, get_attached_sticker_sets: C) -> RTDResult<StickerSets> {
650    async_caller!(StickerSets);
651    async_caller(&self.api, get_attached_sticker_sets.as_ref()).await
652  }
653
654  pub async fn get_authorization_state<C: AsRef<GetAuthorizationState>>(&self, get_authorization_state: C) -> RTDResult<AuthorizationState> {
655    async_caller!(AuthorizationState);
656    async_caller(&self.api, get_authorization_state.as_ref()).await
657  }
658
659  pub async fn get_auto_download_settings_presets<C: AsRef<GetAutoDownloadSettingsPresets>>(&self, get_auto_download_settings_presets: C) -> RTDResult<AutoDownloadSettingsPresets> {
660    async_caller!(AutoDownloadSettingsPresets);
661    async_caller(&self.api, get_auto_download_settings_presets.as_ref()).await
662  }
663
664  pub async fn get_background_url<C: AsRef<GetBackgroundUrl>>(&self, get_background_url: C) -> RTDResult<HttpUrl> {
665    async_caller!(HttpUrl);
666    async_caller(&self.api, get_background_url.as_ref()).await
667  }
668
669  pub async fn get_backgrounds<C: AsRef<GetBackgrounds>>(&self, get_backgrounds: C) -> RTDResult<Backgrounds> {
670    async_caller!(Backgrounds);
671    async_caller(&self.api, get_backgrounds.as_ref()).await
672  }
673
674  pub async fn get_bank_card_info<C: AsRef<GetBankCardInfo>>(&self, get_bank_card_info: C) -> RTDResult<BankCardInfo> {
675    async_caller!(BankCardInfo);
676    async_caller(&self.api, get_bank_card_info.as_ref()).await
677  }
678
679  pub async fn get_basic_group<C: AsRef<GetBasicGroup>>(&self, get_basic_group: C) -> RTDResult<BasicGroup> {
680    async_caller!(BasicGroup);
681    async_caller(&self.api, get_basic_group.as_ref()).await
682  }
683
684  pub async fn get_basic_group_full_info<C: AsRef<GetBasicGroupFullInfo>>(&self, get_basic_group_full_info: C) -> RTDResult<BasicGroupFullInfo> {
685    async_caller!(BasicGroupFullInfo);
686    async_caller(&self.api, get_basic_group_full_info.as_ref()).await
687  }
688
689  pub async fn get_blocked_message_senders<C: AsRef<GetBlockedMessageSenders>>(&self, get_blocked_message_senders: C) -> RTDResult<MessageSenders> {
690    async_caller!(MessageSenders);
691    async_caller(&self.api, get_blocked_message_senders.as_ref()).await
692  }
693
694  pub async fn get_callback_query_answer<C: AsRef<GetCallbackQueryAnswer>>(&self, get_callback_query_answer: C) -> RTDResult<CallbackQueryAnswer> {
695    async_caller!(CallbackQueryAnswer);
696    async_caller(&self.api, get_callback_query_answer.as_ref()).await
697  }
698
699  pub async fn get_callback_query_message<C: AsRef<GetCallbackQueryMessage>>(&self, get_callback_query_message: C) -> RTDResult<Message> {
700    async_caller!(Message);
701    async_caller(&self.api, get_callback_query_message.as_ref()).await
702  }
703
704  pub async fn get_chat<C: AsRef<GetChat>>(&self, get_chat: C) -> RTDResult<Chat> {
705    async_caller!(Chat);
706    async_caller(&self.api, get_chat.as_ref()).await
707  }
708
709  pub async fn get_chat_administrators<C: AsRef<GetChatAdministrators>>(&self, get_chat_administrators: C) -> RTDResult<ChatAdministrators> {
710    async_caller!(ChatAdministrators);
711    async_caller(&self.api, get_chat_administrators.as_ref()).await
712  }
713
714  pub async fn get_chat_available_message_senders<C: AsRef<GetChatAvailableMessageSenders>>(&self, get_chat_available_message_senders: C) -> RTDResult<MessageSenders> {
715    async_caller!(MessageSenders);
716    async_caller(&self.api, get_chat_available_message_senders.as_ref()).await
717  }
718
719  pub async fn get_chat_event_log<C: AsRef<GetChatEventLog>>(&self, get_chat_event_log: C) -> RTDResult<ChatEvents> {
720    async_caller!(ChatEvents);
721    async_caller(&self.api, get_chat_event_log.as_ref()).await
722  }
723
724  pub async fn get_chat_filter<C: AsRef<GetChatFilter>>(&self, get_chat_filter: C) -> RTDResult<ChatFilter> {
725    async_caller!(ChatFilter);
726    async_caller(&self.api, get_chat_filter.as_ref()).await
727  }
728
729  pub async fn get_chat_filter_default_icon_name<C: AsRef<GetChatFilterDefaultIconName>>(&self, get_chat_filter_default_icon_name: C) -> RTDResult<Text> {
730    async_caller!(Text);
731    async_caller(&self.api, get_chat_filter_default_icon_name.as_ref()).await
732  }
733
734  pub async fn get_chat_history<C: AsRef<GetChatHistory>>(&self, get_chat_history: C) -> RTDResult<Messages> {
735    async_caller!(Messages);
736    async_caller(&self.api, get_chat_history.as_ref()).await
737  }
738
739  pub async fn get_chat_invite_link<C: AsRef<GetChatInviteLink>>(&self, get_chat_invite_link: C) -> RTDResult<ChatInviteLink> {
740    async_caller!(ChatInviteLink);
741    async_caller(&self.api, get_chat_invite_link.as_ref()).await
742  }
743
744  pub async fn get_chat_invite_link_counts<C: AsRef<GetChatInviteLinkCounts>>(&self, get_chat_invite_link_counts: C) -> RTDResult<ChatInviteLinkCounts> {
745    async_caller!(ChatInviteLinkCounts);
746    async_caller(&self.api, get_chat_invite_link_counts.as_ref()).await
747  }
748
749  pub async fn get_chat_invite_link_members<C: AsRef<GetChatInviteLinkMembers>>(&self, get_chat_invite_link_members: C) -> RTDResult<ChatInviteLinkMembers> {
750    async_caller!(ChatInviteLinkMembers);
751    async_caller(&self.api, get_chat_invite_link_members.as_ref()).await
752  }
753
754  pub async fn get_chat_invite_links<C: AsRef<GetChatInviteLinks>>(&self, get_chat_invite_links: C) -> RTDResult<ChatInviteLinks> {
755    async_caller!(ChatInviteLinks);
756    async_caller(&self.api, get_chat_invite_links.as_ref()).await
757  }
758
759  pub async fn get_chat_join_requests<C: AsRef<GetChatJoinRequests>>(&self, get_chat_join_requests: C) -> RTDResult<ChatJoinRequests> {
760    async_caller!(ChatJoinRequests);
761    async_caller(&self.api, get_chat_join_requests.as_ref()).await
762  }
763
764  pub async fn get_chat_lists_to_add_chat<C: AsRef<GetChatListsToAddChat>>(&self, get_chat_lists_to_add_chat: C) -> RTDResult<ChatLists> {
765    async_caller!(ChatLists);
766    async_caller(&self.api, get_chat_lists_to_add_chat.as_ref()).await
767  }
768
769  pub async fn get_chat_member<C: AsRef<GetChatMember>>(&self, get_chat_member: C) -> RTDResult<ChatMember> {
770    async_caller!(ChatMember);
771    async_caller(&self.api, get_chat_member.as_ref()).await
772  }
773
774  pub async fn get_chat_message_by_date<C: AsRef<GetChatMessageByDate>>(&self, get_chat_message_by_date: C) -> RTDResult<Message> {
775    async_caller!(Message);
776    async_caller(&self.api, get_chat_message_by_date.as_ref()).await
777  }
778
779  pub async fn get_chat_message_calendar<C: AsRef<GetChatMessageCalendar>>(&self, get_chat_message_calendar: C) -> RTDResult<MessageCalendar> {
780    async_caller!(MessageCalendar);
781    async_caller(&self.api, get_chat_message_calendar.as_ref()).await
782  }
783
784  pub async fn get_chat_message_count<C: AsRef<GetChatMessageCount>>(&self, get_chat_message_count: C) -> RTDResult<Count> {
785    async_caller!(Count);
786    async_caller(&self.api, get_chat_message_count.as_ref()).await
787  }
788
789  pub async fn get_chat_notification_settings_exceptions<C: AsRef<GetChatNotificationSettingsExceptions>>(&self, get_chat_notification_settings_exceptions: C) -> RTDResult<Chats> {
790    async_caller!(Chats);
791    async_caller(&self.api, get_chat_notification_settings_exceptions.as_ref()).await
792  }
793
794  pub async fn get_chat_pinned_message<C: AsRef<GetChatPinnedMessage>>(&self, get_chat_pinned_message: C) -> RTDResult<Message> {
795    async_caller!(Message);
796    async_caller(&self.api, get_chat_pinned_message.as_ref()).await
797  }
798
799  pub async fn get_chat_scheduled_messages<C: AsRef<GetChatScheduledMessages>>(&self, get_chat_scheduled_messages: C) -> RTDResult<Messages> {
800    async_caller!(Messages);
801    async_caller(&self.api, get_chat_scheduled_messages.as_ref()).await
802  }
803
804  pub async fn get_chat_sparse_message_positions<C: AsRef<GetChatSparseMessagePositions>>(&self, get_chat_sparse_message_positions: C) -> RTDResult<MessagePositions> {
805    async_caller!(MessagePositions);
806    async_caller(&self.api, get_chat_sparse_message_positions.as_ref()).await
807  }
808
809  pub async fn get_chat_sponsored_message<C: AsRef<GetChatSponsoredMessage>>(&self, get_chat_sponsored_message: C) -> RTDResult<SponsoredMessage> {
810    async_caller!(SponsoredMessage);
811    async_caller(&self.api, get_chat_sponsored_message.as_ref()).await
812  }
813
814  pub async fn get_chat_statistics<C: AsRef<GetChatStatistics>>(&self, get_chat_statistics: C) -> RTDResult<ChatStatistics> {
815    async_caller!(ChatStatistics);
816    async_caller(&self.api, get_chat_statistics.as_ref()).await
817  }
818
819  pub async fn get_chats<C: AsRef<GetChats>>(&self, get_chats: C) -> RTDResult<Chats> {
820    async_caller!(Chats);
821    async_caller(&self.api, get_chats.as_ref()).await
822  }
823
824  pub async fn get_commands<C: AsRef<GetCommands>>(&self, get_commands: C) -> RTDResult<BotCommands> {
825    async_caller!(BotCommands);
826    async_caller(&self.api, get_commands.as_ref()).await
827  }
828
829  pub async fn get_connected_websites<C: AsRef<GetConnectedWebsites>>(&self, get_connected_websites: C) -> RTDResult<ConnectedWebsites> {
830    async_caller!(ConnectedWebsites);
831    async_caller(&self.api, get_connected_websites.as_ref()).await
832  }
833
834  pub async fn get_contacts<C: AsRef<GetContacts>>(&self, get_contacts: C) -> RTDResult<Users> {
835    async_caller!(Users);
836    async_caller(&self.api, get_contacts.as_ref()).await
837  }
838
839  pub async fn get_countries<C: AsRef<GetCountries>>(&self, get_countries: C) -> RTDResult<Countries> {
840    async_caller!(Countries);
841    async_caller(&self.api, get_countries.as_ref()).await
842  }
843
844  pub async fn get_country_code<C: AsRef<GetCountryCode>>(&self, get_country_code: C) -> RTDResult<Text> {
845    async_caller!(Text);
846    async_caller(&self.api, get_country_code.as_ref()).await
847  }
848
849  pub async fn get_created_public_chats<C: AsRef<GetCreatedPublicChats>>(&self, get_created_public_chats: C) -> RTDResult<Chats> {
850    async_caller!(Chats);
851    async_caller(&self.api, get_created_public_chats.as_ref()).await
852  }
853
854  pub async fn get_current_state<C: AsRef<GetCurrentState>>(&self, get_current_state: C) -> RTDResult<Updates> {
855    async_caller!(Updates);
856    async_caller(&self.api, get_current_state.as_ref()).await
857  }
858
859  pub async fn get_database_statistics<C: AsRef<GetDatabaseStatistics>>(&self, get_database_statistics: C) -> RTDResult<DatabaseStatistics> {
860    async_caller!(DatabaseStatistics);
861    async_caller(&self.api, get_database_statistics.as_ref()).await
862  }
863
864  pub async fn get_deep_link_info<C: AsRef<GetDeepLinkInfo>>(&self, get_deep_link_info: C) -> RTDResult<DeepLinkInfo> {
865    async_caller!(DeepLinkInfo);
866    async_caller(&self.api, get_deep_link_info.as_ref()).await
867  }
868
869  pub async fn get_emoji_suggestions_url<C: AsRef<GetEmojiSuggestionsUrl>>(&self, get_emoji_suggestions_url: C) -> RTDResult<HttpUrl> {
870    async_caller!(HttpUrl);
871    async_caller(&self.api, get_emoji_suggestions_url.as_ref()).await
872  }
873
874  pub async fn get_external_link<C: AsRef<GetExternalLink>>(&self, get_external_link: C) -> RTDResult<HttpUrl> {
875    async_caller!(HttpUrl);
876    async_caller(&self.api, get_external_link.as_ref()).await
877  }
878
879  pub async fn get_external_link_info<C: AsRef<GetExternalLinkInfo>>(&self, get_external_link_info: C) -> RTDResult<LoginUrlInfo> {
880    async_caller!(LoginUrlInfo);
881    async_caller(&self.api, get_external_link_info.as_ref()).await
882  }
883
884  pub async fn get_favorite_stickers<C: AsRef<GetFavoriteStickers>>(&self, get_favorite_stickers: C) -> RTDResult<Stickers> {
885    async_caller!(Stickers);
886    async_caller(&self.api, get_favorite_stickers.as_ref()).await
887  }
888
889  pub async fn get_file<C: AsRef<GetFile>>(&self, get_file: C) -> RTDResult<File> {
890    async_caller!(File);
891    async_caller(&self.api, get_file.as_ref()).await
892  }
893
894  pub async fn get_file_downloaded_prefix_size<C: AsRef<GetFileDownloadedPrefixSize>>(&self, get_file_downloaded_prefix_size: C) -> RTDResult<Count> {
895    async_caller!(Count);
896    async_caller(&self.api, get_file_downloaded_prefix_size.as_ref()).await
897  }
898
899  pub async fn get_file_extension<C: AsRef<GetFileExtension>>(&self, get_file_extension: C) -> RTDResult<Text> {
900    async_caller!(Text);
901    async_caller(&self.api, get_file_extension.as_ref()).await
902  }
903
904  pub async fn get_file_mime_type<C: AsRef<GetFileMimeType>>(&self, get_file_mime_type: C) -> RTDResult<Text> {
905    async_caller!(Text);
906    async_caller(&self.api, get_file_mime_type.as_ref()).await
907  }
908
909  pub async fn get_game_high_scores<C: AsRef<GetGameHighScores>>(&self, get_game_high_scores: C) -> RTDResult<GameHighScores> {
910    async_caller!(GameHighScores);
911    async_caller(&self.api, get_game_high_scores.as_ref()).await
912  }
913
914  pub async fn get_group_call<C: AsRef<GetGroupCall>>(&self, get_group_call: C) -> RTDResult<GroupCall> {
915    async_caller!(GroupCall);
916    async_caller(&self.api, get_group_call.as_ref()).await
917  }
918
919  pub async fn get_group_call_invite_link<C: AsRef<GetGroupCallInviteLink>>(&self, get_group_call_invite_link: C) -> RTDResult<HttpUrl> {
920    async_caller!(HttpUrl);
921    async_caller(&self.api, get_group_call_invite_link.as_ref()).await
922  }
923
924  pub async fn get_group_call_stream_segment<C: AsRef<GetGroupCallStreamSegment>>(&self, get_group_call_stream_segment: C) -> RTDResult<FilePart> {
925    async_caller!(FilePart);
926    async_caller(&self.api, get_group_call_stream_segment.as_ref()).await
927  }
928
929  pub async fn get_groups_in_common<C: AsRef<GetGroupsInCommon>>(&self, get_groups_in_common: C) -> RTDResult<Chats> {
930    async_caller!(Chats);
931    async_caller(&self.api, get_groups_in_common.as_ref()).await
932  }
933
934  pub async fn get_imported_contact_count<C: AsRef<GetImportedContactCount>>(&self, get_imported_contact_count: C) -> RTDResult<Count> {
935    async_caller!(Count);
936    async_caller(&self.api, get_imported_contact_count.as_ref()).await
937  }
938
939  pub async fn get_inactive_supergroup_chats<C: AsRef<GetInactiveSupergroupChats>>(&self, get_inactive_supergroup_chats: C) -> RTDResult<Chats> {
940    async_caller!(Chats);
941    async_caller(&self.api, get_inactive_supergroup_chats.as_ref()).await
942  }
943
944  pub async fn get_inline_game_high_scores<C: AsRef<GetInlineGameHighScores>>(&self, get_inline_game_high_scores: C) -> RTDResult<GameHighScores> {
945    async_caller!(GameHighScores);
946    async_caller(&self.api, get_inline_game_high_scores.as_ref()).await
947  }
948
949  pub async fn get_inline_query_results<C: AsRef<GetInlineQueryResults>>(&self, get_inline_query_results: C) -> RTDResult<InlineQueryResults> {
950    async_caller!(InlineQueryResults);
951    async_caller(&self.api, get_inline_query_results.as_ref()).await
952  }
953
954  pub async fn get_installed_sticker_sets<C: AsRef<GetInstalledStickerSets>>(&self, get_installed_sticker_sets: C) -> RTDResult<StickerSets> {
955    async_caller!(StickerSets);
956    async_caller(&self.api, get_installed_sticker_sets.as_ref()).await
957  }
958
959  pub async fn get_internal_link_type<C: AsRef<GetInternalLinkType>>(&self, get_internal_link_type: C) -> RTDResult<InternalLinkType> {
960    async_caller!(InternalLinkType);
961    async_caller(&self.api, get_internal_link_type.as_ref()).await
962  }
963
964  pub async fn get_json_string<C: AsRef<GetJsonString>>(&self, get_json_string: C) -> RTDResult<Text> {
965    async_caller!(Text);
966    async_caller(&self.api, get_json_string.as_ref()).await
967  }
968
969  pub async fn get_json_value<C: AsRef<GetJsonValue>>(&self, get_json_value: C) -> RTDResult<JsonValue> {
970    async_caller!(JsonValue);
971    async_caller(&self.api, get_json_value.as_ref()).await
972  }
973
974  pub async fn get_language_pack_info<C: AsRef<GetLanguagePackInfo>>(&self, get_language_pack_info: C) -> RTDResult<LanguagePackInfo> {
975    async_caller!(LanguagePackInfo);
976    async_caller(&self.api, get_language_pack_info.as_ref()).await
977  }
978
979  pub async fn get_language_pack_string<C: AsRef<GetLanguagePackString>>(&self, get_language_pack_string: C) -> RTDResult<LanguagePackStringValue> {
980    async_caller!(LanguagePackStringValue);
981    async_caller(&self.api, get_language_pack_string.as_ref()).await
982  }
983
984  pub async fn get_language_pack_strings<C: AsRef<GetLanguagePackStrings>>(&self, get_language_pack_strings: C) -> RTDResult<LanguagePackStrings> {
985    async_caller!(LanguagePackStrings);
986    async_caller(&self.api, get_language_pack_strings.as_ref()).await
987  }
988
989  pub async fn get_localization_target_info<C: AsRef<GetLocalizationTargetInfo>>(&self, get_localization_target_info: C) -> RTDResult<LocalizationTargetInfo> {
990    async_caller!(LocalizationTargetInfo);
991    async_caller(&self.api, get_localization_target_info.as_ref()).await
992  }
993
994  pub async fn get_log_stream<C: AsRef<GetLogStream>>(&self, get_log_stream: C) -> RTDResult<LogStream> {
995    async_caller!(LogStream);
996    async_caller(&self.api, get_log_stream.as_ref()).await
997  }
998
999  pub async fn get_log_tag_verbosity_level<C: AsRef<GetLogTagVerbosityLevel>>(&self, get_log_tag_verbosity_level: C) -> RTDResult<LogVerbosityLevel> {
1000    async_caller!(LogVerbosityLevel);
1001    async_caller(&self.api, get_log_tag_verbosity_level.as_ref()).await
1002  }
1003
1004  pub async fn get_log_tags<C: AsRef<GetLogTags>>(&self, get_log_tags: C) -> RTDResult<LogTags> {
1005    async_caller!(LogTags);
1006    async_caller(&self.api, get_log_tags.as_ref()).await
1007  }
1008
1009  pub async fn get_log_verbosity_level<C: AsRef<GetLogVerbosityLevel>>(&self, get_log_verbosity_level: C) -> RTDResult<LogVerbosityLevel> {
1010    async_caller!(LogVerbosityLevel);
1011    async_caller(&self.api, get_log_verbosity_level.as_ref()).await
1012  }
1013
1014  pub async fn get_login_url<C: AsRef<GetLoginUrl>>(&self, get_login_url: C) -> RTDResult<HttpUrl> {
1015    async_caller!(HttpUrl);
1016    async_caller(&self.api, get_login_url.as_ref()).await
1017  }
1018
1019  pub async fn get_login_url_info<C: AsRef<GetLoginUrlInfo>>(&self, get_login_url_info: C) -> RTDResult<LoginUrlInfo> {
1020    async_caller!(LoginUrlInfo);
1021    async_caller(&self.api, get_login_url_info.as_ref()).await
1022  }
1023
1024  pub async fn get_map_thumbnail_file<C: AsRef<GetMapThumbnailFile>>(&self, get_map_thumbnail_file: C) -> RTDResult<File> {
1025    async_caller!(File);
1026    async_caller(&self.api, get_map_thumbnail_file.as_ref()).await
1027  }
1028
1029  pub async fn get_markdown_text<C: AsRef<GetMarkdownText>>(&self, get_markdown_text: C) -> RTDResult<FormattedText> {
1030    async_caller!(FormattedText);
1031    async_caller(&self.api, get_markdown_text.as_ref()).await
1032  }
1033
1034  pub async fn get_me<C: AsRef<GetMe>>(&self, get_me: C) -> RTDResult<User> {
1035    async_caller!(User);
1036    async_caller(&self.api, get_me.as_ref()).await
1037  }
1038
1039  pub async fn get_message<C: AsRef<GetMessage>>(&self, get_message: C) -> RTDResult<Message> {
1040    async_caller!(Message);
1041    async_caller(&self.api, get_message.as_ref()).await
1042  }
1043
1044  pub async fn get_message_embedding_code<C: AsRef<GetMessageEmbeddingCode>>(&self, get_message_embedding_code: C) -> RTDResult<Text> {
1045    async_caller!(Text);
1046    async_caller(&self.api, get_message_embedding_code.as_ref()).await
1047  }
1048
1049  pub async fn get_message_file_type<C: AsRef<GetMessageFileType>>(&self, get_message_file_type: C) -> RTDResult<MessageFileType> {
1050    async_caller!(MessageFileType);
1051    async_caller(&self.api, get_message_file_type.as_ref()).await
1052  }
1053
1054  pub async fn get_message_import_confirmation_text<C: AsRef<GetMessageImportConfirmationText>>(&self, get_message_import_confirmation_text: C) -> RTDResult<Text> {
1055    async_caller!(Text);
1056    async_caller(&self.api, get_message_import_confirmation_text.as_ref()).await
1057  }
1058
1059  pub async fn get_message_link<C: AsRef<GetMessageLink>>(&self, get_message_link: C) -> RTDResult<MessageLink> {
1060    async_caller!(MessageLink);
1061    async_caller(&self.api, get_message_link.as_ref()).await
1062  }
1063
1064  pub async fn get_message_link_info<C: AsRef<GetMessageLinkInfo>>(&self, get_message_link_info: C) -> RTDResult<MessageLinkInfo> {
1065    async_caller!(MessageLinkInfo);
1066    async_caller(&self.api, get_message_link_info.as_ref()).await
1067  }
1068
1069  pub async fn get_message_locally<C: AsRef<GetMessageLocally>>(&self, get_message_locally: C) -> RTDResult<Message> {
1070    async_caller!(Message);
1071    async_caller(&self.api, get_message_locally.as_ref()).await
1072  }
1073
1074  pub async fn get_message_public_forwards<C: AsRef<GetMessagePublicForwards>>(&self, get_message_public_forwards: C) -> RTDResult<FoundMessages> {
1075    async_caller!(FoundMessages);
1076    async_caller(&self.api, get_message_public_forwards.as_ref()).await
1077  }
1078
1079  pub async fn get_message_statistics<C: AsRef<GetMessageStatistics>>(&self, get_message_statistics: C) -> RTDResult<MessageStatistics> {
1080    async_caller!(MessageStatistics);
1081    async_caller(&self.api, get_message_statistics.as_ref()).await
1082  }
1083
1084  pub async fn get_message_thread<C: AsRef<GetMessageThread>>(&self, get_message_thread: C) -> RTDResult<MessageThreadInfo> {
1085    async_caller!(MessageThreadInfo);
1086    async_caller(&self.api, get_message_thread.as_ref()).await
1087  }
1088
1089  pub async fn get_message_thread_history<C: AsRef<GetMessageThreadHistory>>(&self, get_message_thread_history: C) -> RTDResult<Messages> {
1090    async_caller!(Messages);
1091    async_caller(&self.api, get_message_thread_history.as_ref()).await
1092  }
1093
1094  pub async fn get_message_viewers<C: AsRef<GetMessageViewers>>(&self, get_message_viewers: C) -> RTDResult<Users> {
1095    async_caller!(Users);
1096    async_caller(&self.api, get_message_viewers.as_ref()).await
1097  }
1098
1099  pub async fn get_messages<C: AsRef<GetMessages>>(&self, get_messages: C) -> RTDResult<Messages> {
1100    async_caller!(Messages);
1101    async_caller(&self.api, get_messages.as_ref()).await
1102  }
1103
1104  pub async fn get_network_statistics<C: AsRef<GetNetworkStatistics>>(&self, get_network_statistics: C) -> RTDResult<NetworkStatistics> {
1105    async_caller!(NetworkStatistics);
1106    async_caller(&self.api, get_network_statistics.as_ref()).await
1107  }
1108
1109  pub async fn get_option<C: AsRef<GetOption>>(&self, get_option: C) -> RTDResult<OptionValue> {
1110    async_caller!(OptionValue);
1111    async_caller(&self.api, get_option.as_ref()).await
1112  }
1113
1114  pub async fn get_passport_authorization_form<C: AsRef<GetPassportAuthorizationForm>>(&self, get_passport_authorization_form: C) -> RTDResult<PassportAuthorizationForm> {
1115    async_caller!(PassportAuthorizationForm);
1116    async_caller(&self.api, get_passport_authorization_form.as_ref()).await
1117  }
1118
1119  pub async fn get_passport_authorization_form_available_elements<C: AsRef<GetPassportAuthorizationFormAvailableElements>>(&self, get_passport_authorization_form_available_elements: C) -> RTDResult<PassportElementsWithErrors> {
1120    async_caller!(PassportElementsWithErrors);
1121    async_caller(&self.api, get_passport_authorization_form_available_elements.as_ref()).await
1122  }
1123
1124  pub async fn get_passport_element<C: AsRef<GetPassportElement>>(&self, get_passport_element: C) -> RTDResult<PassportElement> {
1125    async_caller!(PassportElement);
1126    async_caller(&self.api, get_passport_element.as_ref()).await
1127  }
1128
1129  pub async fn get_password_state<C: AsRef<GetPasswordState>>(&self, get_password_state: C) -> RTDResult<PasswordState> {
1130    async_caller!(PasswordState);
1131    async_caller(&self.api, get_password_state.as_ref()).await
1132  }
1133
1134  pub async fn get_payment_form<C: AsRef<GetPaymentForm>>(&self, get_payment_form: C) -> RTDResult<PaymentForm> {
1135    async_caller!(PaymentForm);
1136    async_caller(&self.api, get_payment_form.as_ref()).await
1137  }
1138
1139  pub async fn get_payment_receipt<C: AsRef<GetPaymentReceipt>>(&self, get_payment_receipt: C) -> RTDResult<PaymentReceipt> {
1140    async_caller!(PaymentReceipt);
1141    async_caller(&self.api, get_payment_receipt.as_ref()).await
1142  }
1143
1144  pub async fn get_phone_number_info<C: AsRef<GetPhoneNumberInfo>>(&self, get_phone_number_info: C) -> RTDResult<PhoneNumberInfo> {
1145    async_caller!(PhoneNumberInfo);
1146    async_caller(&self.api, get_phone_number_info.as_ref()).await
1147  }
1148
1149  pub async fn get_phone_number_info_sync<C: AsRef<GetPhoneNumberInfoSync>>(&self, get_phone_number_info_sync: C) -> RTDResult<PhoneNumberInfo> {
1150    async_caller!(PhoneNumberInfo);
1151    async_caller(&self.api, get_phone_number_info_sync.as_ref()).await
1152  }
1153
1154  pub async fn get_poll_voters<C: AsRef<GetPollVoters>>(&self, get_poll_voters: C) -> RTDResult<Users> {
1155    async_caller!(Users);
1156    async_caller(&self.api, get_poll_voters.as_ref()).await
1157  }
1158
1159  pub async fn get_preferred_country_language<C: AsRef<GetPreferredCountryLanguage>>(&self, get_preferred_country_language: C) -> RTDResult<Text> {
1160    async_caller!(Text);
1161    async_caller(&self.api, get_preferred_country_language.as_ref()).await
1162  }
1163
1164  pub async fn get_proxies<C: AsRef<GetProxies>>(&self, get_proxies: C) -> RTDResult<Proxies> {
1165    async_caller!(Proxies);
1166    async_caller(&self.api, get_proxies.as_ref()).await
1167  }
1168
1169  pub async fn get_proxy_link<C: AsRef<GetProxyLink>>(&self, get_proxy_link: C) -> RTDResult<HttpUrl> {
1170    async_caller!(HttpUrl);
1171    async_caller(&self.api, get_proxy_link.as_ref()).await
1172  }
1173
1174  pub async fn get_push_receiver_id<C: AsRef<GetPushReceiverId>>(&self, get_push_receiver_id: C) -> RTDResult<PushReceiverId> {
1175    async_caller!(PushReceiverId);
1176    async_caller(&self.api, get_push_receiver_id.as_ref()).await
1177  }
1178
1179  pub async fn get_recent_inline_bots<C: AsRef<GetRecentInlineBots>>(&self, get_recent_inline_bots: C) -> RTDResult<Users> {
1180    async_caller!(Users);
1181    async_caller(&self.api, get_recent_inline_bots.as_ref()).await
1182  }
1183
1184  pub async fn get_recent_stickers<C: AsRef<GetRecentStickers>>(&self, get_recent_stickers: C) -> RTDResult<Stickers> {
1185    async_caller!(Stickers);
1186    async_caller(&self.api, get_recent_stickers.as_ref()).await
1187  }
1188
1189  pub async fn get_recently_opened_chats<C: AsRef<GetRecentlyOpenedChats>>(&self, get_recently_opened_chats: C) -> RTDResult<Chats> {
1190    async_caller!(Chats);
1191    async_caller(&self.api, get_recently_opened_chats.as_ref()).await
1192  }
1193
1194  pub async fn get_recently_visited_t_me_urls<C: AsRef<GetRecentlyVisitedTMeUrls>>(&self, get_recently_visited_t_me_urls: C) -> RTDResult<TMeUrls> {
1195    async_caller!(TMeUrls);
1196    async_caller(&self.api, get_recently_visited_t_me_urls.as_ref()).await
1197  }
1198
1199  pub async fn get_recommended_chat_filters<C: AsRef<GetRecommendedChatFilters>>(&self, get_recommended_chat_filters: C) -> RTDResult<RecommendedChatFilters> {
1200    async_caller!(RecommendedChatFilters);
1201    async_caller(&self.api, get_recommended_chat_filters.as_ref()).await
1202  }
1203
1204  pub async fn get_recovery_email_address<C: AsRef<GetRecoveryEmailAddress>>(&self, get_recovery_email_address: C) -> RTDResult<RecoveryEmailAddress> {
1205    async_caller!(RecoveryEmailAddress);
1206    async_caller(&self.api, get_recovery_email_address.as_ref()).await
1207  }
1208
1209  pub async fn get_remote_file<C: AsRef<GetRemoteFile>>(&self, get_remote_file: C) -> RTDResult<File> {
1210    async_caller!(File);
1211    async_caller(&self.api, get_remote_file.as_ref()).await
1212  }
1213
1214  pub async fn get_replied_message<C: AsRef<GetRepliedMessage>>(&self, get_replied_message: C) -> RTDResult<Message> {
1215    async_caller!(Message);
1216    async_caller(&self.api, get_replied_message.as_ref()).await
1217  }
1218
1219  pub async fn get_saved_animations<C: AsRef<GetSavedAnimations>>(&self, get_saved_animations: C) -> RTDResult<Animations> {
1220    async_caller!(Animations);
1221    async_caller(&self.api, get_saved_animations.as_ref()).await
1222  }
1223
1224  pub async fn get_saved_order_info<C: AsRef<GetSavedOrderInfo>>(&self, get_saved_order_info: C) -> RTDResult<OrderInfo> {
1225    async_caller!(OrderInfo);
1226    async_caller(&self.api, get_saved_order_info.as_ref()).await
1227  }
1228
1229  pub async fn get_scope_notification_settings<C: AsRef<GetScopeNotificationSettings>>(&self, get_scope_notification_settings: C) -> RTDResult<ScopeNotificationSettings> {
1230    async_caller!(ScopeNotificationSettings);
1231    async_caller(&self.api, get_scope_notification_settings.as_ref()).await
1232  }
1233
1234  pub async fn get_secret_chat<C: AsRef<GetSecretChat>>(&self, get_secret_chat: C) -> RTDResult<SecretChat> {
1235    async_caller!(SecretChat);
1236    async_caller(&self.api, get_secret_chat.as_ref()).await
1237  }
1238
1239  pub async fn get_statistical_graph<C: AsRef<GetStatisticalGraph>>(&self, get_statistical_graph: C) -> RTDResult<StatisticalGraph> {
1240    async_caller!(StatisticalGraph);
1241    async_caller(&self.api, get_statistical_graph.as_ref()).await
1242  }
1243
1244  pub async fn get_sticker_emojis<C: AsRef<GetStickerEmojis>>(&self, get_sticker_emojis: C) -> RTDResult<Emojis> {
1245    async_caller!(Emojis);
1246    async_caller(&self.api, get_sticker_emojis.as_ref()).await
1247  }
1248
1249  pub async fn get_sticker_set<C: AsRef<GetStickerSet>>(&self, get_sticker_set: C) -> RTDResult<StickerSet> {
1250    async_caller!(StickerSet);
1251    async_caller(&self.api, get_sticker_set.as_ref()).await
1252  }
1253
1254  pub async fn get_stickers<C: AsRef<GetStickers>>(&self, get_stickers: C) -> RTDResult<Stickers> {
1255    async_caller!(Stickers);
1256    async_caller(&self.api, get_stickers.as_ref()).await
1257  }
1258
1259  pub async fn get_storage_statistics<C: AsRef<GetStorageStatistics>>(&self, get_storage_statistics: C) -> RTDResult<StorageStatistics> {
1260    async_caller!(StorageStatistics);
1261    async_caller(&self.api, get_storage_statistics.as_ref()).await
1262  }
1263
1264  pub async fn get_storage_statistics_fast<C: AsRef<GetStorageStatisticsFast>>(&self, get_storage_statistics_fast: C) -> RTDResult<StorageStatisticsFast> {
1265    async_caller!(StorageStatisticsFast);
1266    async_caller(&self.api, get_storage_statistics_fast.as_ref()).await
1267  }
1268
1269  pub async fn get_suggested_file_name<C: AsRef<GetSuggestedFileName>>(&self, get_suggested_file_name: C) -> RTDResult<Text> {
1270    async_caller!(Text);
1271    async_caller(&self.api, get_suggested_file_name.as_ref()).await
1272  }
1273
1274  pub async fn get_suggested_sticker_set_name<C: AsRef<GetSuggestedStickerSetName>>(&self, get_suggested_sticker_set_name: C) -> RTDResult<Text> {
1275    async_caller!(Text);
1276    async_caller(&self.api, get_suggested_sticker_set_name.as_ref()).await
1277  }
1278
1279  pub async fn get_suitable_discussion_chats<C: AsRef<GetSuitableDiscussionChats>>(&self, get_suitable_discussion_chats: C) -> RTDResult<Chats> {
1280    async_caller!(Chats);
1281    async_caller(&self.api, get_suitable_discussion_chats.as_ref()).await
1282  }
1283
1284  pub async fn get_supergroup<C: AsRef<GetSupergroup>>(&self, get_supergroup: C) -> RTDResult<Supergroup> {
1285    async_caller!(Supergroup);
1286    async_caller(&self.api, get_supergroup.as_ref()).await
1287  }
1288
1289  pub async fn get_supergroup_full_info<C: AsRef<GetSupergroupFullInfo>>(&self, get_supergroup_full_info: C) -> RTDResult<SupergroupFullInfo> {
1290    async_caller!(SupergroupFullInfo);
1291    async_caller(&self.api, get_supergroup_full_info.as_ref()).await
1292  }
1293
1294  pub async fn get_supergroup_members<C: AsRef<GetSupergroupMembers>>(&self, get_supergroup_members: C) -> RTDResult<ChatMembers> {
1295    async_caller!(ChatMembers);
1296    async_caller(&self.api, get_supergroup_members.as_ref()).await
1297  }
1298
1299  pub async fn get_support_user<C: AsRef<GetSupportUser>>(&self, get_support_user: C) -> RTDResult<User> {
1300    async_caller!(User);
1301    async_caller(&self.api, get_support_user.as_ref()).await
1302  }
1303
1304  pub async fn get_temporary_password_state<C: AsRef<GetTemporaryPasswordState>>(&self, get_temporary_password_state: C) -> RTDResult<TemporaryPasswordState> {
1305    async_caller!(TemporaryPasswordState);
1306    async_caller(&self.api, get_temporary_password_state.as_ref()).await
1307  }
1308
1309  pub async fn get_text_entities<C: AsRef<GetTextEntities>>(&self, get_text_entities: C) -> RTDResult<TextEntities> {
1310    async_caller!(TextEntities);
1311    async_caller(&self.api, get_text_entities.as_ref()).await
1312  }
1313
1314  pub async fn get_top_chats<C: AsRef<GetTopChats>>(&self, get_top_chats: C) -> RTDResult<Chats> {
1315    async_caller!(Chats);
1316    async_caller(&self.api, get_top_chats.as_ref()).await
1317  }
1318
1319  pub async fn get_trending_sticker_sets<C: AsRef<GetTrendingStickerSets>>(&self, get_trending_sticker_sets: C) -> RTDResult<StickerSets> {
1320    async_caller!(StickerSets);
1321    async_caller(&self.api, get_trending_sticker_sets.as_ref()).await
1322  }
1323
1324  pub async fn get_user<C: AsRef<GetUser>>(&self, get_user: C) -> RTDResult<User> {
1325    async_caller!(User);
1326    async_caller(&self.api, get_user.as_ref()).await
1327  }
1328
1329  pub async fn get_user_full_info<C: AsRef<GetUserFullInfo>>(&self, get_user_full_info: C) -> RTDResult<UserFullInfo> {
1330    async_caller!(UserFullInfo);
1331    async_caller(&self.api, get_user_full_info.as_ref()).await
1332  }
1333
1334  pub async fn get_user_privacy_setting_rules<C: AsRef<GetUserPrivacySettingRules>>(&self, get_user_privacy_setting_rules: C) -> RTDResult<UserPrivacySettingRules> {
1335    async_caller!(UserPrivacySettingRules);
1336    async_caller(&self.api, get_user_privacy_setting_rules.as_ref()).await
1337  }
1338
1339  pub async fn get_user_profile_photos<C: AsRef<GetUserProfilePhotos>>(&self, get_user_profile_photos: C) -> RTDResult<ChatPhotos> {
1340    async_caller!(ChatPhotos);
1341    async_caller(&self.api, get_user_profile_photos.as_ref()).await
1342  }
1343
1344  pub async fn get_video_chat_available_participants<C: AsRef<GetVideoChatAvailableParticipants>>(&self, get_video_chat_available_participants: C) -> RTDResult<MessageSenders> {
1345    async_caller!(MessageSenders);
1346    async_caller(&self.api, get_video_chat_available_participants.as_ref()).await
1347  }
1348
1349  pub async fn get_web_page_instant_view<C: AsRef<GetWebPageInstantView>>(&self, get_web_page_instant_view: C) -> RTDResult<WebPageInstantView> {
1350    async_caller!(WebPageInstantView);
1351    async_caller(&self.api, get_web_page_instant_view.as_ref()).await
1352  }
1353
1354  pub async fn get_web_page_preview<C: AsRef<GetWebPagePreview>>(&self, get_web_page_preview: C) -> RTDResult<WebPage> {
1355    async_caller!(WebPage);
1356    async_caller(&self.api, get_web_page_preview.as_ref()).await
1357  }
1358
1359  pub async fn hide_suggested_action<C: AsRef<HideSuggestedAction>>(&self, hide_suggested_action: C) -> RTDResult<Ok> {
1360    async_caller!(Ok);
1361    async_caller(&self.api, hide_suggested_action.as_ref()).await
1362  }
1363
1364  pub async fn import_contacts<C: AsRef<ImportContacts>>(&self, import_contacts: C) -> RTDResult<ImportedContacts> {
1365    async_caller!(ImportedContacts);
1366    async_caller(&self.api, import_contacts.as_ref()).await
1367  }
1368
1369  pub async fn import_messages<C: AsRef<ImportMessages>>(&self, import_messages: C) -> RTDResult<Ok> {
1370    async_caller!(Ok);
1371    async_caller(&self.api, import_messages.as_ref()).await
1372  }
1373
1374  pub async fn invite_group_call_participants<C: AsRef<InviteGroupCallParticipants>>(&self, invite_group_call_participants: C) -> RTDResult<Ok> {
1375    async_caller!(Ok);
1376    async_caller(&self.api, invite_group_call_participants.as_ref()).await
1377  }
1378
1379  pub async fn join_chat<C: AsRef<JoinChat>>(&self, join_chat: C) -> RTDResult<Ok> {
1380    async_caller!(Ok);
1381    async_caller(&self.api, join_chat.as_ref()).await
1382  }
1383
1384  pub async fn join_chat_by_invite_link<C: AsRef<JoinChatByInviteLink>>(&self, join_chat_by_invite_link: C) -> RTDResult<Chat> {
1385    async_caller!(Chat);
1386    async_caller(&self.api, join_chat_by_invite_link.as_ref()).await
1387  }
1388
1389  pub async fn join_group_call<C: AsRef<JoinGroupCall>>(&self, join_group_call: C) -> RTDResult<Text> {
1390    async_caller!(Text);
1391    async_caller(&self.api, join_group_call.as_ref()).await
1392  }
1393
1394  pub async fn leave_chat<C: AsRef<LeaveChat>>(&self, leave_chat: C) -> RTDResult<Ok> {
1395    async_caller!(Ok);
1396    async_caller(&self.api, leave_chat.as_ref()).await
1397  }
1398
1399  pub async fn leave_group_call<C: AsRef<LeaveGroupCall>>(&self, leave_group_call: C) -> RTDResult<Ok> {
1400    async_caller!(Ok);
1401    async_caller(&self.api, leave_group_call.as_ref()).await
1402  }
1403
1404  pub async fn load_chats<C: AsRef<LoadChats>>(&self, load_chats: C) -> RTDResult<Ok> {
1405    async_caller!(Ok);
1406    async_caller(&self.api, load_chats.as_ref()).await
1407  }
1408
1409  pub async fn load_group_call_participants<C: AsRef<LoadGroupCallParticipants>>(&self, load_group_call_participants: C) -> RTDResult<Ok> {
1410    async_caller!(Ok);
1411    async_caller(&self.api, load_group_call_participants.as_ref()).await
1412  }
1413
1414  pub async fn log_out<C: AsRef<LogOut>>(&self, log_out: C) -> RTDResult<Ok> {
1415    async_caller!(Ok);
1416    async_caller(&self.api, log_out.as_ref()).await
1417  }
1418
1419  pub async fn open_chat<C: AsRef<OpenChat>>(&self, open_chat: C) -> RTDResult<Ok> {
1420    async_caller!(Ok);
1421    async_caller(&self.api, open_chat.as_ref()).await
1422  }
1423
1424  pub async fn open_message_content<C: AsRef<OpenMessageContent>>(&self, open_message_content: C) -> RTDResult<Ok> {
1425    async_caller!(Ok);
1426    async_caller(&self.api, open_message_content.as_ref()).await
1427  }
1428
1429  pub async fn optimize_storage<C: AsRef<OptimizeStorage>>(&self, optimize_storage: C) -> RTDResult<StorageStatistics> {
1430    async_caller!(StorageStatistics);
1431    async_caller(&self.api, optimize_storage.as_ref()).await
1432  }
1433
1434  pub async fn parse_markdown<C: AsRef<ParseMarkdown>>(&self, parse_markdown: C) -> RTDResult<FormattedText> {
1435    async_caller!(FormattedText);
1436    async_caller(&self.api, parse_markdown.as_ref()).await
1437  }
1438
1439  pub async fn parse_text_entities<C: AsRef<ParseTextEntities>>(&self, parse_text_entities: C) -> RTDResult<FormattedText> {
1440    async_caller!(FormattedText);
1441    async_caller(&self.api, parse_text_entities.as_ref()).await
1442  }
1443
1444  pub async fn pin_chat_message<C: AsRef<PinChatMessage>>(&self, pin_chat_message: C) -> RTDResult<Ok> {
1445    async_caller!(Ok);
1446    async_caller(&self.api, pin_chat_message.as_ref()).await
1447  }
1448
1449  pub async fn ping_proxy<C: AsRef<PingProxy>>(&self, ping_proxy: C) -> RTDResult<Seconds> {
1450    async_caller!(Seconds);
1451    async_caller(&self.api, ping_proxy.as_ref()).await
1452  }
1453
1454  pub async fn process_chat_join_request<C: AsRef<ProcessChatJoinRequest>>(&self, process_chat_join_request: C) -> RTDResult<Ok> {
1455    async_caller!(Ok);
1456    async_caller(&self.api, process_chat_join_request.as_ref()).await
1457  }
1458
1459  pub async fn process_chat_join_requests<C: AsRef<ProcessChatJoinRequests>>(&self, process_chat_join_requests: C) -> RTDResult<Ok> {
1460    async_caller!(Ok);
1461    async_caller(&self.api, process_chat_join_requests.as_ref()).await
1462  }
1463
1464  pub async fn process_push_notification<C: AsRef<ProcessPushNotification>>(&self, process_push_notification: C) -> RTDResult<Ok> {
1465    async_caller!(Ok);
1466    async_caller(&self.api, process_push_notification.as_ref()).await
1467  }
1468
1469  pub async fn read_all_chat_mentions<C: AsRef<ReadAllChatMentions>>(&self, read_all_chat_mentions: C) -> RTDResult<Ok> {
1470    async_caller!(Ok);
1471    async_caller(&self.api, read_all_chat_mentions.as_ref()).await
1472  }
1473
1474  pub async fn read_file_part<C: AsRef<ReadFilePart>>(&self, read_file_part: C) -> RTDResult<FilePart> {
1475    async_caller!(FilePart);
1476    async_caller(&self.api, read_file_part.as_ref()).await
1477  }
1478
1479  pub async fn recover_authentication_password<C: AsRef<RecoverAuthenticationPassword>>(&self, recover_authentication_password: C) -> RTDResult<Ok> {
1480    async_caller!(Ok);
1481    async_caller(&self.api, recover_authentication_password.as_ref()).await
1482  }
1483
1484  pub async fn recover_password<C: AsRef<RecoverPassword>>(&self, recover_password: C) -> RTDResult<PasswordState> {
1485    async_caller!(PasswordState);
1486    async_caller(&self.api, recover_password.as_ref()).await
1487  }
1488
1489  pub async fn register_device<C: AsRef<RegisterDevice>>(&self, register_device: C) -> RTDResult<PushReceiverId> {
1490    async_caller!(PushReceiverId);
1491    async_caller(&self.api, register_device.as_ref()).await
1492  }
1493
1494  pub async fn register_user<C: AsRef<RegisterUser>>(&self, register_user: C) -> RTDResult<Ok> {
1495    async_caller!(Ok);
1496    async_caller(&self.api, register_user.as_ref()).await
1497  }
1498
1499  pub async fn remove_background<C: AsRef<RemoveBackground>>(&self, remove_background: C) -> RTDResult<Ok> {
1500    async_caller!(Ok);
1501    async_caller(&self.api, remove_background.as_ref()).await
1502  }
1503
1504  pub async fn remove_chat_action_bar<C: AsRef<RemoveChatActionBar>>(&self, remove_chat_action_bar: C) -> RTDResult<Ok> {
1505    async_caller!(Ok);
1506    async_caller(&self.api, remove_chat_action_bar.as_ref()).await
1507  }
1508
1509  pub async fn remove_contacts<C: AsRef<RemoveContacts>>(&self, remove_contacts: C) -> RTDResult<Ok> {
1510    async_caller!(Ok);
1511    async_caller(&self.api, remove_contacts.as_ref()).await
1512  }
1513
1514  pub async fn remove_favorite_sticker<C: AsRef<RemoveFavoriteSticker>>(&self, remove_favorite_sticker: C) -> RTDResult<Ok> {
1515    async_caller!(Ok);
1516    async_caller(&self.api, remove_favorite_sticker.as_ref()).await
1517  }
1518
1519  pub async fn remove_notification<C: AsRef<RemoveNotification>>(&self, remove_notification: C) -> RTDResult<Ok> {
1520    async_caller!(Ok);
1521    async_caller(&self.api, remove_notification.as_ref()).await
1522  }
1523
1524  pub async fn remove_notification_group<C: AsRef<RemoveNotificationGroup>>(&self, remove_notification_group: C) -> RTDResult<Ok> {
1525    async_caller!(Ok);
1526    async_caller(&self.api, remove_notification_group.as_ref()).await
1527  }
1528
1529  pub async fn remove_proxy<C: AsRef<RemoveProxy>>(&self, remove_proxy: C) -> RTDResult<Ok> {
1530    async_caller!(Ok);
1531    async_caller(&self.api, remove_proxy.as_ref()).await
1532  }
1533
1534  pub async fn remove_recent_hashtag<C: AsRef<RemoveRecentHashtag>>(&self, remove_recent_hashtag: C) -> RTDResult<Ok> {
1535    async_caller!(Ok);
1536    async_caller(&self.api, remove_recent_hashtag.as_ref()).await
1537  }
1538
1539  pub async fn remove_recent_sticker<C: AsRef<RemoveRecentSticker>>(&self, remove_recent_sticker: C) -> RTDResult<Ok> {
1540    async_caller!(Ok);
1541    async_caller(&self.api, remove_recent_sticker.as_ref()).await
1542  }
1543
1544  pub async fn remove_recently_found_chat<C: AsRef<RemoveRecentlyFoundChat>>(&self, remove_recently_found_chat: C) -> RTDResult<Ok> {
1545    async_caller!(Ok);
1546    async_caller(&self.api, remove_recently_found_chat.as_ref()).await
1547  }
1548
1549  pub async fn remove_saved_animation<C: AsRef<RemoveSavedAnimation>>(&self, remove_saved_animation: C) -> RTDResult<Ok> {
1550    async_caller!(Ok);
1551    async_caller(&self.api, remove_saved_animation.as_ref()).await
1552  }
1553
1554  pub async fn remove_sticker_from_set<C: AsRef<RemoveStickerFromSet>>(&self, remove_sticker_from_set: C) -> RTDResult<Ok> {
1555    async_caller!(Ok);
1556    async_caller(&self.api, remove_sticker_from_set.as_ref()).await
1557  }
1558
1559  pub async fn remove_top_chat<C: AsRef<RemoveTopChat>>(&self, remove_top_chat: C) -> RTDResult<Ok> {
1560    async_caller!(Ok);
1561    async_caller(&self.api, remove_top_chat.as_ref()).await
1562  }
1563
1564  pub async fn reorder_chat_filters<C: AsRef<ReorderChatFilters>>(&self, reorder_chat_filters: C) -> RTDResult<Ok> {
1565    async_caller!(Ok);
1566    async_caller(&self.api, reorder_chat_filters.as_ref()).await
1567  }
1568
1569  pub async fn reorder_installed_sticker_sets<C: AsRef<ReorderInstalledStickerSets>>(&self, reorder_installed_sticker_sets: C) -> RTDResult<Ok> {
1570    async_caller!(Ok);
1571    async_caller(&self.api, reorder_installed_sticker_sets.as_ref()).await
1572  }
1573
1574  pub async fn replace_primary_chat_invite_link<C: AsRef<ReplacePrimaryChatInviteLink>>(&self, replace_primary_chat_invite_link: C) -> RTDResult<ChatInviteLink> {
1575    async_caller!(ChatInviteLink);
1576    async_caller(&self.api, replace_primary_chat_invite_link.as_ref()).await
1577  }
1578
1579  pub async fn report_chat<C: AsRef<ReportChat>>(&self, report_chat: C) -> RTDResult<Ok> {
1580    async_caller!(Ok);
1581    async_caller(&self.api, report_chat.as_ref()).await
1582  }
1583
1584  pub async fn report_chat_photo<C: AsRef<ReportChatPhoto>>(&self, report_chat_photo: C) -> RTDResult<Ok> {
1585    async_caller!(Ok);
1586    async_caller(&self.api, report_chat_photo.as_ref()).await
1587  }
1588
1589  pub async fn report_supergroup_spam<C: AsRef<ReportSupergroupSpam>>(&self, report_supergroup_spam: C) -> RTDResult<Ok> {
1590    async_caller!(Ok);
1591    async_caller(&self.api, report_supergroup_spam.as_ref()).await
1592  }
1593
1594  pub async fn request_authentication_password_recovery<C: AsRef<RequestAuthenticationPasswordRecovery>>(&self, request_authentication_password_recovery: C) -> RTDResult<Ok> {
1595    async_caller!(Ok);
1596    async_caller(&self.api, request_authentication_password_recovery.as_ref()).await
1597  }
1598
1599  pub async fn request_password_recovery<C: AsRef<RequestPasswordRecovery>>(&self, request_password_recovery: C) -> RTDResult<EmailAddressAuthenticationCodeInfo> {
1600    async_caller!(EmailAddressAuthenticationCodeInfo);
1601    async_caller(&self.api, request_password_recovery.as_ref()).await
1602  }
1603
1604  pub async fn request_qr_code_authentication<C: AsRef<RequestQrCodeAuthentication>>(&self, request_qr_code_authentication: C) -> RTDResult<Ok> {
1605    async_caller!(Ok);
1606    async_caller(&self.api, request_qr_code_authentication.as_ref()).await
1607  }
1608
1609  pub async fn resend_authentication_code<C: AsRef<ResendAuthenticationCode>>(&self, resend_authentication_code: C) -> RTDResult<Ok> {
1610    async_caller!(Ok);
1611    async_caller(&self.api, resend_authentication_code.as_ref()).await
1612  }
1613
1614  pub async fn resend_change_phone_number_code<C: AsRef<ResendChangePhoneNumberCode>>(&self, resend_change_phone_number_code: C) -> RTDResult<AuthenticationCodeInfo> {
1615    async_caller!(AuthenticationCodeInfo);
1616    async_caller(&self.api, resend_change_phone_number_code.as_ref()).await
1617  }
1618
1619  pub async fn resend_email_address_verification_code<C: AsRef<ResendEmailAddressVerificationCode>>(&self, resend_email_address_verification_code: C) -> RTDResult<EmailAddressAuthenticationCodeInfo> {
1620    async_caller!(EmailAddressAuthenticationCodeInfo);
1621    async_caller(&self.api, resend_email_address_verification_code.as_ref()).await
1622  }
1623
1624  pub async fn resend_messages<C: AsRef<ResendMessages>>(&self, resend_messages: C) -> RTDResult<Messages> {
1625    async_caller!(Messages);
1626    async_caller(&self.api, resend_messages.as_ref()).await
1627  }
1628
1629  pub async fn resend_phone_number_confirmation_code<C: AsRef<ResendPhoneNumberConfirmationCode>>(&self, resend_phone_number_confirmation_code: C) -> RTDResult<AuthenticationCodeInfo> {
1630    async_caller!(AuthenticationCodeInfo);
1631    async_caller(&self.api, resend_phone_number_confirmation_code.as_ref()).await
1632  }
1633
1634  pub async fn resend_phone_number_verification_code<C: AsRef<ResendPhoneNumberVerificationCode>>(&self, resend_phone_number_verification_code: C) -> RTDResult<AuthenticationCodeInfo> {
1635    async_caller!(AuthenticationCodeInfo);
1636    async_caller(&self.api, resend_phone_number_verification_code.as_ref()).await
1637  }
1638
1639  pub async fn resend_recovery_email_address_code<C: AsRef<ResendRecoveryEmailAddressCode>>(&self, resend_recovery_email_address_code: C) -> RTDResult<PasswordState> {
1640    async_caller!(PasswordState);
1641    async_caller(&self.api, resend_recovery_email_address_code.as_ref()).await
1642  }
1643
1644  pub async fn reset_all_notification_settings<C: AsRef<ResetAllNotificationSettings>>(&self, reset_all_notification_settings: C) -> RTDResult<Ok> {
1645    async_caller!(Ok);
1646    async_caller(&self.api, reset_all_notification_settings.as_ref()).await
1647  }
1648
1649  pub async fn reset_backgrounds<C: AsRef<ResetBackgrounds>>(&self, reset_backgrounds: C) -> RTDResult<Ok> {
1650    async_caller!(Ok);
1651    async_caller(&self.api, reset_backgrounds.as_ref()).await
1652  }
1653
1654  pub async fn reset_network_statistics<C: AsRef<ResetNetworkStatistics>>(&self, reset_network_statistics: C) -> RTDResult<Ok> {
1655    async_caller!(Ok);
1656    async_caller(&self.api, reset_network_statistics.as_ref()).await
1657  }
1658
1659  pub async fn reset_password<C: AsRef<ResetPassword>>(&self, reset_password: C) -> RTDResult<ResetPasswordResult> {
1660    async_caller!(ResetPasswordResult);
1661    async_caller(&self.api, reset_password.as_ref()).await
1662  }
1663
1664  pub async fn revoke_chat_invite_link<C: AsRef<RevokeChatInviteLink>>(&self, revoke_chat_invite_link: C) -> RTDResult<ChatInviteLinks> {
1665    async_caller!(ChatInviteLinks);
1666    async_caller(&self.api, revoke_chat_invite_link.as_ref()).await
1667  }
1668
1669  pub async fn revoke_group_call_invite_link<C: AsRef<RevokeGroupCallInviteLink>>(&self, revoke_group_call_invite_link: C) -> RTDResult<Ok> {
1670    async_caller!(Ok);
1671    async_caller(&self.api, revoke_group_call_invite_link.as_ref()).await
1672  }
1673
1674  pub async fn save_application_log_event<C: AsRef<SaveApplicationLogEvent>>(&self, save_application_log_event: C) -> RTDResult<Ok> {
1675    async_caller!(Ok);
1676    async_caller(&self.api, save_application_log_event.as_ref()).await
1677  }
1678
1679  pub async fn search_background<C: AsRef<SearchBackground>>(&self, search_background: C) -> RTDResult<Background> {
1680    async_caller!(Background);
1681    async_caller(&self.api, search_background.as_ref()).await
1682  }
1683
1684  pub async fn search_call_messages<C: AsRef<SearchCallMessages>>(&self, search_call_messages: C) -> RTDResult<Messages> {
1685    async_caller!(Messages);
1686    async_caller(&self.api, search_call_messages.as_ref()).await
1687  }
1688
1689  pub async fn search_chat_members<C: AsRef<SearchChatMembers>>(&self, search_chat_members: C) -> RTDResult<ChatMembers> {
1690    async_caller!(ChatMembers);
1691    async_caller(&self.api, search_chat_members.as_ref()).await
1692  }
1693
1694  pub async fn search_chat_messages<C: AsRef<SearchChatMessages>>(&self, search_chat_messages: C) -> RTDResult<Messages> {
1695    async_caller!(Messages);
1696    async_caller(&self.api, search_chat_messages.as_ref()).await
1697  }
1698
1699  pub async fn search_chat_recent_location_messages<C: AsRef<SearchChatRecentLocationMessages>>(&self, search_chat_recent_location_messages: C) -> RTDResult<Messages> {
1700    async_caller!(Messages);
1701    async_caller(&self.api, search_chat_recent_location_messages.as_ref()).await
1702  }
1703
1704  pub async fn search_chats<C: AsRef<SearchChats>>(&self, search_chats: C) -> RTDResult<Chats> {
1705    async_caller!(Chats);
1706    async_caller(&self.api, search_chats.as_ref()).await
1707  }
1708
1709  pub async fn search_chats_nearby<C: AsRef<SearchChatsNearby>>(&self, search_chats_nearby: C) -> RTDResult<ChatsNearby> {
1710    async_caller!(ChatsNearby);
1711    async_caller(&self.api, search_chats_nearby.as_ref()).await
1712  }
1713
1714  pub async fn search_chats_on_server<C: AsRef<SearchChatsOnServer>>(&self, search_chats_on_server: C) -> RTDResult<Chats> {
1715    async_caller!(Chats);
1716    async_caller(&self.api, search_chats_on_server.as_ref()).await
1717  }
1718
1719  pub async fn search_contacts<C: AsRef<SearchContacts>>(&self, search_contacts: C) -> RTDResult<Users> {
1720    async_caller!(Users);
1721    async_caller(&self.api, search_contacts.as_ref()).await
1722  }
1723
1724  pub async fn search_emojis<C: AsRef<SearchEmojis>>(&self, search_emojis: C) -> RTDResult<Emojis> {
1725    async_caller!(Emojis);
1726    async_caller(&self.api, search_emojis.as_ref()).await
1727  }
1728
1729  pub async fn search_hashtags<C: AsRef<SearchHashtags>>(&self, search_hashtags: C) -> RTDResult<Hashtags> {
1730    async_caller!(Hashtags);
1731    async_caller(&self.api, search_hashtags.as_ref()).await
1732  }
1733
1734  pub async fn search_installed_sticker_sets<C: AsRef<SearchInstalledStickerSets>>(&self, search_installed_sticker_sets: C) -> RTDResult<StickerSets> {
1735    async_caller!(StickerSets);
1736    async_caller(&self.api, search_installed_sticker_sets.as_ref()).await
1737  }
1738
1739  pub async fn search_messages<C: AsRef<SearchMessages>>(&self, search_messages: C) -> RTDResult<Messages> {
1740    async_caller!(Messages);
1741    async_caller(&self.api, search_messages.as_ref()).await
1742  }
1743
1744  pub async fn search_public_chat<C: AsRef<SearchPublicChat>>(&self, search_public_chat: C) -> RTDResult<Chat> {
1745    async_caller!(Chat);
1746    async_caller(&self.api, search_public_chat.as_ref()).await
1747  }
1748
1749  pub async fn search_public_chats<C: AsRef<SearchPublicChats>>(&self, search_public_chats: C) -> RTDResult<Chats> {
1750    async_caller!(Chats);
1751    async_caller(&self.api, search_public_chats.as_ref()).await
1752  }
1753
1754  pub async fn search_secret_messages<C: AsRef<SearchSecretMessages>>(&self, search_secret_messages: C) -> RTDResult<FoundMessages> {
1755    async_caller!(FoundMessages);
1756    async_caller(&self.api, search_secret_messages.as_ref()).await
1757  }
1758
1759  pub async fn search_sticker_set<C: AsRef<SearchStickerSet>>(&self, search_sticker_set: C) -> RTDResult<StickerSet> {
1760    async_caller!(StickerSet);
1761    async_caller(&self.api, search_sticker_set.as_ref()).await
1762  }
1763
1764  pub async fn search_sticker_sets<C: AsRef<SearchStickerSets>>(&self, search_sticker_sets: C) -> RTDResult<StickerSets> {
1765    async_caller!(StickerSets);
1766    async_caller(&self.api, search_sticker_sets.as_ref()).await
1767  }
1768
1769  pub async fn search_stickers<C: AsRef<SearchStickers>>(&self, search_stickers: C) -> RTDResult<Stickers> {
1770    async_caller!(Stickers);
1771    async_caller(&self.api, search_stickers.as_ref()).await
1772  }
1773
1774  pub async fn send_bot_start_message<C: AsRef<SendBotStartMessage>>(&self, send_bot_start_message: C) -> RTDResult<Message> {
1775    async_caller!(Message);
1776    async_caller(&self.api, send_bot_start_message.as_ref()).await
1777  }
1778
1779  pub async fn send_call_debug_information<C: AsRef<SendCallDebugInformation>>(&self, send_call_debug_information: C) -> RTDResult<Ok> {
1780    async_caller!(Ok);
1781    async_caller(&self.api, send_call_debug_information.as_ref()).await
1782  }
1783
1784  pub async fn send_call_rating<C: AsRef<SendCallRating>>(&self, send_call_rating: C) -> RTDResult<Ok> {
1785    async_caller!(Ok);
1786    async_caller(&self.api, send_call_rating.as_ref()).await
1787  }
1788
1789  pub async fn send_call_signaling_data<C: AsRef<SendCallSignalingData>>(&self, send_call_signaling_data: C) -> RTDResult<Ok> {
1790    async_caller!(Ok);
1791    async_caller(&self.api, send_call_signaling_data.as_ref()).await
1792  }
1793
1794  pub async fn send_chat_action<C: AsRef<SendChatAction>>(&self, send_chat_action: C) -> RTDResult<Ok> {
1795    async_caller!(Ok);
1796    async_caller(&self.api, send_chat_action.as_ref()).await
1797  }
1798
1799  pub async fn send_chat_screenshot_taken_notification<C: AsRef<SendChatScreenshotTakenNotification>>(&self, send_chat_screenshot_taken_notification: C) -> RTDResult<Ok> {
1800    async_caller!(Ok);
1801    async_caller(&self.api, send_chat_screenshot_taken_notification.as_ref()).await
1802  }
1803
1804  pub async fn send_custom_request<C: AsRef<SendCustomRequest>>(&self, send_custom_request: C) -> RTDResult<CustomRequestResult> {
1805    async_caller!(CustomRequestResult);
1806    async_caller(&self.api, send_custom_request.as_ref()).await
1807  }
1808
1809  pub async fn send_email_address_verification_code<C: AsRef<SendEmailAddressVerificationCode>>(&self, send_email_address_verification_code: C) -> RTDResult<EmailAddressAuthenticationCodeInfo> {
1810    async_caller!(EmailAddressAuthenticationCodeInfo);
1811    async_caller(&self.api, send_email_address_verification_code.as_ref()).await
1812  }
1813
1814  pub async fn send_inline_query_result_message<C: AsRef<SendInlineQueryResultMessage>>(&self, send_inline_query_result_message: C) -> RTDResult<Message> {
1815    async_caller!(Message);
1816    async_caller(&self.api, send_inline_query_result_message.as_ref()).await
1817  }
1818
1819  pub async fn send_message<C: AsRef<SendMessage>>(&self, send_message: C) -> RTDResult<Message> {
1820    async_caller!(Message);
1821    async_caller(&self.api, send_message.as_ref()).await
1822  }
1823
1824  pub async fn send_message_album<C: AsRef<SendMessageAlbum>>(&self, send_message_album: C) -> RTDResult<Messages> {
1825    async_caller!(Messages);
1826    async_caller(&self.api, send_message_album.as_ref()).await
1827  }
1828
1829  pub async fn send_passport_authorization_form<C: AsRef<SendPassportAuthorizationForm>>(&self, send_passport_authorization_form: C) -> RTDResult<Ok> {
1830    async_caller!(Ok);
1831    async_caller(&self.api, send_passport_authorization_form.as_ref()).await
1832  }
1833
1834  pub async fn send_payment_form<C: AsRef<SendPaymentForm>>(&self, send_payment_form: C) -> RTDResult<PaymentResult> {
1835    async_caller!(PaymentResult);
1836    async_caller(&self.api, send_payment_form.as_ref()).await
1837  }
1838
1839  pub async fn send_phone_number_confirmation_code<C: AsRef<SendPhoneNumberConfirmationCode>>(&self, send_phone_number_confirmation_code: C) -> RTDResult<AuthenticationCodeInfo> {
1840    async_caller!(AuthenticationCodeInfo);
1841    async_caller(&self.api, send_phone_number_confirmation_code.as_ref()).await
1842  }
1843
1844  pub async fn send_phone_number_verification_code<C: AsRef<SendPhoneNumberVerificationCode>>(&self, send_phone_number_verification_code: C) -> RTDResult<AuthenticationCodeInfo> {
1845    async_caller!(AuthenticationCodeInfo);
1846    async_caller(&self.api, send_phone_number_verification_code.as_ref()).await
1847  }
1848
1849  pub async fn set_account_ttl<C: AsRef<SetAccountTtl>>(&self, set_account_ttl: C) -> RTDResult<Ok> {
1850    async_caller!(Ok);
1851    async_caller(&self.api, set_account_ttl.as_ref()).await
1852  }
1853
1854  pub async fn set_alarm<C: AsRef<SetAlarm>>(&self, set_alarm: C) -> RTDResult<Ok> {
1855    async_caller!(Ok);
1856    async_caller(&self.api, set_alarm.as_ref()).await
1857  }
1858
1859  pub async fn set_authentication_phone_number<C: AsRef<SetAuthenticationPhoneNumber>>(&self, set_authentication_phone_number: C) -> RTDResult<Ok> {
1860    async_caller!(Ok);
1861    async_caller(&self.api, set_authentication_phone_number.as_ref()).await
1862  }
1863
1864  pub async fn set_auto_download_settings<C: AsRef<SetAutoDownloadSettings>>(&self, set_auto_download_settings: C) -> RTDResult<Ok> {
1865    async_caller!(Ok);
1866    async_caller(&self.api, set_auto_download_settings.as_ref()).await
1867  }
1868
1869  pub async fn set_background<C: AsRef<SetBackground>>(&self, set_background: C) -> RTDResult<Background> {
1870    async_caller!(Background);
1871    async_caller(&self.api, set_background.as_ref()).await
1872  }
1873
1874  pub async fn set_bio<C: AsRef<SetBio>>(&self, set_bio: C) -> RTDResult<Ok> {
1875    async_caller!(Ok);
1876    async_caller(&self.api, set_bio.as_ref()).await
1877  }
1878
1879  pub async fn set_bot_updates_status<C: AsRef<SetBotUpdatesStatus>>(&self, set_bot_updates_status: C) -> RTDResult<Ok> {
1880    async_caller!(Ok);
1881    async_caller(&self.api, set_bot_updates_status.as_ref()).await
1882  }
1883
1884  pub async fn set_chat_client_data<C: AsRef<SetChatClientData>>(&self, set_chat_client_data: C) -> RTDResult<Ok> {
1885    async_caller!(Ok);
1886    async_caller(&self.api, set_chat_client_data.as_ref()).await
1887  }
1888
1889  pub async fn set_chat_description<C: AsRef<SetChatDescription>>(&self, set_chat_description: C) -> RTDResult<Ok> {
1890    async_caller!(Ok);
1891    async_caller(&self.api, set_chat_description.as_ref()).await
1892  }
1893
1894  pub async fn set_chat_discussion_group<C: AsRef<SetChatDiscussionGroup>>(&self, set_chat_discussion_group: C) -> RTDResult<Ok> {
1895    async_caller!(Ok);
1896    async_caller(&self.api, set_chat_discussion_group.as_ref()).await
1897  }
1898
1899  pub async fn set_chat_draft_message<C: AsRef<SetChatDraftMessage>>(&self, set_chat_draft_message: C) -> RTDResult<Ok> {
1900    async_caller!(Ok);
1901    async_caller(&self.api, set_chat_draft_message.as_ref()).await
1902  }
1903
1904  pub async fn set_chat_location<C: AsRef<SetChatLocation>>(&self, set_chat_location: C) -> RTDResult<Ok> {
1905    async_caller!(Ok);
1906    async_caller(&self.api, set_chat_location.as_ref()).await
1907  }
1908
1909  pub async fn set_chat_member_status<C: AsRef<SetChatMemberStatus>>(&self, set_chat_member_status: C) -> RTDResult<Ok> {
1910    async_caller!(Ok);
1911    async_caller(&self.api, set_chat_member_status.as_ref()).await
1912  }
1913
1914  pub async fn set_chat_message_sender<C: AsRef<SetChatMessageSender>>(&self, set_chat_message_sender: C) -> RTDResult<Ok> {
1915    async_caller!(Ok);
1916    async_caller(&self.api, set_chat_message_sender.as_ref()).await
1917  }
1918
1919  pub async fn set_chat_message_ttl<C: AsRef<SetChatMessageTtl>>(&self, set_chat_message_ttl: C) -> RTDResult<Ok> {
1920    async_caller!(Ok);
1921    async_caller(&self.api, set_chat_message_ttl.as_ref()).await
1922  }
1923
1924  pub async fn set_chat_notification_settings<C: AsRef<SetChatNotificationSettings>>(&self, set_chat_notification_settings: C) -> RTDResult<Ok> {
1925    async_caller!(Ok);
1926    async_caller(&self.api, set_chat_notification_settings.as_ref()).await
1927  }
1928
1929  pub async fn set_chat_permissions<C: AsRef<SetChatPermissions>>(&self, set_chat_permissions: C) -> RTDResult<Ok> {
1930    async_caller!(Ok);
1931    async_caller(&self.api, set_chat_permissions.as_ref()).await
1932  }
1933
1934  pub async fn set_chat_photo<C: AsRef<SetChatPhoto>>(&self, set_chat_photo: C) -> RTDResult<Ok> {
1935    async_caller!(Ok);
1936    async_caller(&self.api, set_chat_photo.as_ref()).await
1937  }
1938
1939  pub async fn set_chat_slow_mode_delay<C: AsRef<SetChatSlowModeDelay>>(&self, set_chat_slow_mode_delay: C) -> RTDResult<Ok> {
1940    async_caller!(Ok);
1941    async_caller(&self.api, set_chat_slow_mode_delay.as_ref()).await
1942  }
1943
1944  pub async fn set_chat_theme<C: AsRef<SetChatTheme>>(&self, set_chat_theme: C) -> RTDResult<Ok> {
1945    async_caller!(Ok);
1946    async_caller(&self.api, set_chat_theme.as_ref()).await
1947  }
1948
1949  pub async fn set_chat_title<C: AsRef<SetChatTitle>>(&self, set_chat_title: C) -> RTDResult<Ok> {
1950    async_caller!(Ok);
1951    async_caller(&self.api, set_chat_title.as_ref()).await
1952  }
1953
1954  pub async fn set_commands<C: AsRef<SetCommands>>(&self, set_commands: C) -> RTDResult<Ok> {
1955    async_caller!(Ok);
1956    async_caller(&self.api, set_commands.as_ref()).await
1957  }
1958
1959  pub async fn set_custom_language_pack<C: AsRef<SetCustomLanguagePack>>(&self, set_custom_language_pack: C) -> RTDResult<Ok> {
1960    async_caller!(Ok);
1961    async_caller(&self.api, set_custom_language_pack.as_ref()).await
1962  }
1963
1964  pub async fn set_custom_language_pack_string<C: AsRef<SetCustomLanguagePackString>>(&self, set_custom_language_pack_string: C) -> RTDResult<Ok> {
1965    async_caller!(Ok);
1966    async_caller(&self.api, set_custom_language_pack_string.as_ref()).await
1967  }
1968
1969  pub async fn set_database_encryption_key<C: AsRef<SetDatabaseEncryptionKey>>(&self, set_database_encryption_key: C) -> RTDResult<Ok> {
1970    async_caller!(Ok);
1971    async_caller(&self.api, set_database_encryption_key.as_ref()).await
1972  }
1973
1974  pub async fn set_file_generation_progress<C: AsRef<SetFileGenerationProgress>>(&self, set_file_generation_progress: C) -> RTDResult<Ok> {
1975    async_caller!(Ok);
1976    async_caller(&self.api, set_file_generation_progress.as_ref()).await
1977  }
1978
1979  pub async fn set_game_score<C: AsRef<SetGameScore>>(&self, set_game_score: C) -> RTDResult<Message> {
1980    async_caller!(Message);
1981    async_caller(&self.api, set_game_score.as_ref()).await
1982  }
1983
1984  pub async fn set_group_call_participant_is_speaking<C: AsRef<SetGroupCallParticipantIsSpeaking>>(&self, set_group_call_participant_is_speaking: C) -> RTDResult<Ok> {
1985    async_caller!(Ok);
1986    async_caller(&self.api, set_group_call_participant_is_speaking.as_ref()).await
1987  }
1988
1989  pub async fn set_group_call_participant_volume_level<C: AsRef<SetGroupCallParticipantVolumeLevel>>(&self, set_group_call_participant_volume_level: C) -> RTDResult<Ok> {
1990    async_caller!(Ok);
1991    async_caller(&self.api, set_group_call_participant_volume_level.as_ref()).await
1992  }
1993
1994  pub async fn set_group_call_title<C: AsRef<SetGroupCallTitle>>(&self, set_group_call_title: C) -> RTDResult<Ok> {
1995    async_caller!(Ok);
1996    async_caller(&self.api, set_group_call_title.as_ref()).await
1997  }
1998
1999  pub async fn set_inactive_session_ttl<C: AsRef<SetInactiveSessionTtl>>(&self, set_inactive_session_ttl: C) -> RTDResult<Ok> {
2000    async_caller!(Ok);
2001    async_caller(&self.api, set_inactive_session_ttl.as_ref()).await
2002  }
2003
2004  pub async fn set_inline_game_score<C: AsRef<SetInlineGameScore>>(&self, set_inline_game_score: C) -> RTDResult<Ok> {
2005    async_caller!(Ok);
2006    async_caller(&self.api, set_inline_game_score.as_ref()).await
2007  }
2008
2009  pub async fn set_location<C: AsRef<SetLocation>>(&self, set_location: C) -> RTDResult<Ok> {
2010    async_caller!(Ok);
2011    async_caller(&self.api, set_location.as_ref()).await
2012  }
2013
2014  pub async fn set_log_stream<C: AsRef<SetLogStream>>(&self, set_log_stream: C) -> RTDResult<Ok> {
2015    async_caller!(Ok);
2016    async_caller(&self.api, set_log_stream.as_ref()).await
2017  }
2018
2019  pub async fn set_log_tag_verbosity_level<C: AsRef<SetLogTagVerbosityLevel>>(&self, set_log_tag_verbosity_level: C) -> RTDResult<Ok> {
2020    async_caller!(Ok);
2021    async_caller(&self.api, set_log_tag_verbosity_level.as_ref()).await
2022  }
2023
2024  pub async fn set_log_verbosity_level<C: AsRef<SetLogVerbosityLevel>>(&self, set_log_verbosity_level: C) -> RTDResult<Ok> {
2025    async_caller!(Ok);
2026    async_caller(&self.api, set_log_verbosity_level.as_ref()).await
2027  }
2028
2029  pub async fn set_name<C: AsRef<SetName>>(&self, set_name: C) -> RTDResult<Ok> {
2030    async_caller!(Ok);
2031    async_caller(&self.api, set_name.as_ref()).await
2032  }
2033
2034  pub async fn set_network_type<C: AsRef<SetNetworkType>>(&self, set_network_type: C) -> RTDResult<Ok> {
2035    async_caller!(Ok);
2036    async_caller(&self.api, set_network_type.as_ref()).await
2037  }
2038
2039  pub async fn set_option<C: AsRef<SetOption>>(&self, set_option: C) -> RTDResult<Ok> {
2040    async_caller!(Ok);
2041    async_caller(&self.api, set_option.as_ref()).await
2042  }
2043
2044  pub async fn set_passport_element<C: AsRef<SetPassportElement>>(&self, set_passport_element: C) -> RTDResult<PassportElement> {
2045    async_caller!(PassportElement);
2046    async_caller(&self.api, set_passport_element.as_ref()).await
2047  }
2048
2049  pub async fn set_passport_element_errors<C: AsRef<SetPassportElementErrors>>(&self, set_passport_element_errors: C) -> RTDResult<Ok> {
2050    async_caller!(Ok);
2051    async_caller(&self.api, set_passport_element_errors.as_ref()).await
2052  }
2053
2054  pub async fn set_password<C: AsRef<SetPassword>>(&self, set_password: C) -> RTDResult<PasswordState> {
2055    async_caller!(PasswordState);
2056    async_caller(&self.api, set_password.as_ref()).await
2057  }
2058
2059  pub async fn set_pinned_chats<C: AsRef<SetPinnedChats>>(&self, set_pinned_chats: C) -> RTDResult<Ok> {
2060    async_caller!(Ok);
2061    async_caller(&self.api, set_pinned_chats.as_ref()).await
2062  }
2063
2064  pub async fn set_poll_answer<C: AsRef<SetPollAnswer>>(&self, set_poll_answer: C) -> RTDResult<Ok> {
2065    async_caller!(Ok);
2066    async_caller(&self.api, set_poll_answer.as_ref()).await
2067  }
2068
2069  pub async fn set_profile_photo<C: AsRef<SetProfilePhoto>>(&self, set_profile_photo: C) -> RTDResult<Ok> {
2070    async_caller!(Ok);
2071    async_caller(&self.api, set_profile_photo.as_ref()).await
2072  }
2073
2074  pub async fn set_recovery_email_address<C: AsRef<SetRecoveryEmailAddress>>(&self, set_recovery_email_address: C) -> RTDResult<PasswordState> {
2075    async_caller!(PasswordState);
2076    async_caller(&self.api, set_recovery_email_address.as_ref()).await
2077  }
2078
2079  pub async fn set_scope_notification_settings<C: AsRef<SetScopeNotificationSettings>>(&self, set_scope_notification_settings: C) -> RTDResult<Ok> {
2080    async_caller!(Ok);
2081    async_caller(&self.api, set_scope_notification_settings.as_ref()).await
2082  }
2083
2084  pub async fn set_sticker_position_in_set<C: AsRef<SetStickerPositionInSet>>(&self, set_sticker_position_in_set: C) -> RTDResult<Ok> {
2085    async_caller!(Ok);
2086    async_caller(&self.api, set_sticker_position_in_set.as_ref()).await
2087  }
2088
2089  pub async fn set_sticker_set_thumbnail<C: AsRef<SetStickerSetThumbnail>>(&self, set_sticker_set_thumbnail: C) -> RTDResult<StickerSet> {
2090    async_caller!(StickerSet);
2091    async_caller(&self.api, set_sticker_set_thumbnail.as_ref()).await
2092  }
2093
2094  pub async fn set_supergroup_sticker_set<C: AsRef<SetSupergroupStickerSet>>(&self, set_supergroup_sticker_set: C) -> RTDResult<Ok> {
2095    async_caller!(Ok);
2096    async_caller(&self.api, set_supergroup_sticker_set.as_ref()).await
2097  }
2098
2099  pub async fn set_supergroup_username<C: AsRef<SetSupergroupUsername>>(&self, set_supergroup_username: C) -> RTDResult<Ok> {
2100    async_caller!(Ok);
2101    async_caller(&self.api, set_supergroup_username.as_ref()).await
2102  }
2103
2104  pub async fn set_tdlib_parameters<C: AsRef<SetTdlibParameters>>(&self, set_tdlib_parameters: C) -> RTDResult<Ok> {
2105    async_caller!(Ok);
2106    async_caller(&self.api, set_tdlib_parameters.as_ref()).await
2107  }
2108
2109  pub async fn set_user_privacy_setting_rules<C: AsRef<SetUserPrivacySettingRules>>(&self, set_user_privacy_setting_rules: C) -> RTDResult<Ok> {
2110    async_caller!(Ok);
2111    async_caller(&self.api, set_user_privacy_setting_rules.as_ref()).await
2112  }
2113
2114  pub async fn set_username<C: AsRef<SetUsername>>(&self, set_username: C) -> RTDResult<Ok> {
2115    async_caller!(Ok);
2116    async_caller(&self.api, set_username.as_ref()).await
2117  }
2118
2119  pub async fn set_video_chat_default_participant<C: AsRef<SetVideoChatDefaultParticipant>>(&self, set_video_chat_default_participant: C) -> RTDResult<Ok> {
2120    async_caller!(Ok);
2121    async_caller(&self.api, set_video_chat_default_participant.as_ref()).await
2122  }
2123
2124  pub async fn share_phone_number<C: AsRef<SharePhoneNumber>>(&self, share_phone_number: C) -> RTDResult<Ok> {
2125    async_caller!(Ok);
2126    async_caller(&self.api, share_phone_number.as_ref()).await
2127  }
2128
2129  pub async fn start_group_call_recording<C: AsRef<StartGroupCallRecording>>(&self, start_group_call_recording: C) -> RTDResult<Ok> {
2130    async_caller!(Ok);
2131    async_caller(&self.api, start_group_call_recording.as_ref()).await
2132  }
2133
2134  pub async fn start_group_call_screen_sharing<C: AsRef<StartGroupCallScreenSharing>>(&self, start_group_call_screen_sharing: C) -> RTDResult<Text> {
2135    async_caller!(Text);
2136    async_caller(&self.api, start_group_call_screen_sharing.as_ref()).await
2137  }
2138
2139  pub async fn start_scheduled_group_call<C: AsRef<StartScheduledGroupCall>>(&self, start_scheduled_group_call: C) -> RTDResult<Ok> {
2140    async_caller!(Ok);
2141    async_caller(&self.api, start_scheduled_group_call.as_ref()).await
2142  }
2143
2144  pub async fn stop_poll<C: AsRef<StopPoll>>(&self, stop_poll: C) -> RTDResult<Ok> {
2145    async_caller!(Ok);
2146    async_caller(&self.api, stop_poll.as_ref()).await
2147  }
2148
2149  pub async fn synchronize_language_pack<C: AsRef<SynchronizeLanguagePack>>(&self, synchronize_language_pack: C) -> RTDResult<Ok> {
2150    async_caller!(Ok);
2151    async_caller(&self.api, synchronize_language_pack.as_ref()).await
2152  }
2153
2154  pub async fn terminate_all_other_sessions<C: AsRef<TerminateAllOtherSessions>>(&self, terminate_all_other_sessions: C) -> RTDResult<Ok> {
2155    async_caller!(Ok);
2156    async_caller(&self.api, terminate_all_other_sessions.as_ref()).await
2157  }
2158
2159  pub async fn terminate_session<C: AsRef<TerminateSession>>(&self, terminate_session: C) -> RTDResult<Ok> {
2160    async_caller!(Ok);
2161    async_caller(&self.api, terminate_session.as_ref()).await
2162  }
2163
2164  pub async fn test_call_bytes<C: AsRef<TestCallBytes>>(&self, test_call_bytes: C) -> RTDResult<TestBytes> {
2165    async_caller!(TestBytes);
2166    async_caller(&self.api, test_call_bytes.as_ref()).await
2167  }
2168
2169  pub async fn test_call_empty<C: AsRef<TestCallEmpty>>(&self, test_call_empty: C) -> RTDResult<Ok> {
2170    async_caller!(Ok);
2171    async_caller(&self.api, test_call_empty.as_ref()).await
2172  }
2173
2174  pub async fn test_call_string<C: AsRef<TestCallString>>(&self, test_call_string: C) -> RTDResult<TestString> {
2175    async_caller!(TestString);
2176    async_caller(&self.api, test_call_string.as_ref()).await
2177  }
2178
2179  pub async fn test_call_vector_int<C: AsRef<TestCallVectorInt>>(&self, test_call_vector_int: C) -> RTDResult<TestVectorInt> {
2180    async_caller!(TestVectorInt);
2181    async_caller(&self.api, test_call_vector_int.as_ref()).await
2182  }
2183
2184  pub async fn test_call_vector_int_object<C: AsRef<TestCallVectorIntObject>>(&self, test_call_vector_int_object: C) -> RTDResult<TestVectorIntObject> {
2185    async_caller!(TestVectorIntObject);
2186    async_caller(&self.api, test_call_vector_int_object.as_ref()).await
2187  }
2188
2189  pub async fn test_call_vector_string<C: AsRef<TestCallVectorString>>(&self, test_call_vector_string: C) -> RTDResult<TestVectorString> {
2190    async_caller!(TestVectorString);
2191    async_caller(&self.api, test_call_vector_string.as_ref()).await
2192  }
2193
2194  pub async fn test_call_vector_string_object<C: AsRef<TestCallVectorStringObject>>(&self, test_call_vector_string_object: C) -> RTDResult<TestVectorStringObject> {
2195    async_caller!(TestVectorStringObject);
2196    async_caller(&self.api, test_call_vector_string_object.as_ref()).await
2197  }
2198
2199  pub async fn test_get_difference<C: AsRef<TestGetDifference>>(&self, test_get_difference: C) -> RTDResult<Ok> {
2200    async_caller!(Ok);
2201    async_caller(&self.api, test_get_difference.as_ref()).await
2202  }
2203
2204  pub async fn test_network<C: AsRef<TestNetwork>>(&self, test_network: C) -> RTDResult<Ok> {
2205    async_caller!(Ok);
2206    async_caller(&self.api, test_network.as_ref()).await
2207  }
2208
2209  pub async fn test_proxy<C: AsRef<TestProxy>>(&self, test_proxy: C) -> RTDResult<Ok> {
2210    async_caller!(Ok);
2211    async_caller(&self.api, test_proxy.as_ref()).await
2212  }
2213
2214  pub async fn test_return_error<C: AsRef<TestReturnError>>(&self, test_return_error: C) -> RTDResult<Error> {
2215    async_caller!(Error);
2216    async_caller(&self.api, test_return_error.as_ref()).await
2217  }
2218
2219  pub async fn test_square_int<C: AsRef<TestSquareInt>>(&self, test_square_int: C) -> RTDResult<TestInt> {
2220    async_caller!(TestInt);
2221    async_caller(&self.api, test_square_int.as_ref()).await
2222  }
2223
2224  pub async fn test_use_update<C: AsRef<TestUseUpdate>>(&self, test_use_update: C) -> RTDResult<Update> {
2225    async_caller!(Update);
2226    async_caller(&self.api, test_use_update.as_ref()).await
2227  }
2228
2229  pub async fn toggle_chat_default_disable_notification<C: AsRef<ToggleChatDefaultDisableNotification>>(&self, toggle_chat_default_disable_notification: C) -> RTDResult<Ok> {
2230    async_caller!(Ok);
2231    async_caller(&self.api, toggle_chat_default_disable_notification.as_ref()).await
2232  }
2233
2234  pub async fn toggle_chat_has_protected_content<C: AsRef<ToggleChatHasProtectedContent>>(&self, toggle_chat_has_protected_content: C) -> RTDResult<Ok> {
2235    async_caller!(Ok);
2236    async_caller(&self.api, toggle_chat_has_protected_content.as_ref()).await
2237  }
2238
2239  pub async fn toggle_chat_is_marked_as_unread<C: AsRef<ToggleChatIsMarkedAsUnread>>(&self, toggle_chat_is_marked_as_unread: C) -> RTDResult<Ok> {
2240    async_caller!(Ok);
2241    async_caller(&self.api, toggle_chat_is_marked_as_unread.as_ref()).await
2242  }
2243
2244  pub async fn toggle_chat_is_pinned<C: AsRef<ToggleChatIsPinned>>(&self, toggle_chat_is_pinned: C) -> RTDResult<Ok> {
2245    async_caller!(Ok);
2246    async_caller(&self.api, toggle_chat_is_pinned.as_ref()).await
2247  }
2248
2249  pub async fn toggle_group_call_enabled_start_notification<C: AsRef<ToggleGroupCallEnabledStartNotification>>(&self, toggle_group_call_enabled_start_notification: C) -> RTDResult<Ok> {
2250    async_caller!(Ok);
2251    async_caller(&self.api, toggle_group_call_enabled_start_notification.as_ref()).await
2252  }
2253
2254  pub async fn toggle_group_call_is_my_video_enabled<C: AsRef<ToggleGroupCallIsMyVideoEnabled>>(&self, toggle_group_call_is_my_video_enabled: C) -> RTDResult<Ok> {
2255    async_caller!(Ok);
2256    async_caller(&self.api, toggle_group_call_is_my_video_enabled.as_ref()).await
2257  }
2258
2259  pub async fn toggle_group_call_is_my_video_paused<C: AsRef<ToggleGroupCallIsMyVideoPaused>>(&self, toggle_group_call_is_my_video_paused: C) -> RTDResult<Ok> {
2260    async_caller!(Ok);
2261    async_caller(&self.api, toggle_group_call_is_my_video_paused.as_ref()).await
2262  }
2263
2264  pub async fn toggle_group_call_mute_new_participants<C: AsRef<ToggleGroupCallMuteNewParticipants>>(&self, toggle_group_call_mute_new_participants: C) -> RTDResult<Ok> {
2265    async_caller!(Ok);
2266    async_caller(&self.api, toggle_group_call_mute_new_participants.as_ref()).await
2267  }
2268
2269  pub async fn toggle_group_call_participant_is_hand_raised<C: AsRef<ToggleGroupCallParticipantIsHandRaised>>(&self, toggle_group_call_participant_is_hand_raised: C) -> RTDResult<Ok> {
2270    async_caller!(Ok);
2271    async_caller(&self.api, toggle_group_call_participant_is_hand_raised.as_ref()).await
2272  }
2273
2274  pub async fn toggle_group_call_participant_is_muted<C: AsRef<ToggleGroupCallParticipantIsMuted>>(&self, toggle_group_call_participant_is_muted: C) -> RTDResult<Ok> {
2275    async_caller!(Ok);
2276    async_caller(&self.api, toggle_group_call_participant_is_muted.as_ref()).await
2277  }
2278
2279  pub async fn toggle_group_call_screen_sharing_is_paused<C: AsRef<ToggleGroupCallScreenSharingIsPaused>>(&self, toggle_group_call_screen_sharing_is_paused: C) -> RTDResult<Ok> {
2280    async_caller!(Ok);
2281    async_caller(&self.api, toggle_group_call_screen_sharing_is_paused.as_ref()).await
2282  }
2283
2284  pub async fn toggle_message_sender_is_blocked<C: AsRef<ToggleMessageSenderIsBlocked>>(&self, toggle_message_sender_is_blocked: C) -> RTDResult<Ok> {
2285    async_caller!(Ok);
2286    async_caller(&self.api, toggle_message_sender_is_blocked.as_ref()).await
2287  }
2288
2289  pub async fn toggle_session_can_accept_calls<C: AsRef<ToggleSessionCanAcceptCalls>>(&self, toggle_session_can_accept_calls: C) -> RTDResult<Ok> {
2290    async_caller!(Ok);
2291    async_caller(&self.api, toggle_session_can_accept_calls.as_ref()).await
2292  }
2293
2294  pub async fn toggle_session_can_accept_secret_chats<C: AsRef<ToggleSessionCanAcceptSecretChats>>(&self, toggle_session_can_accept_secret_chats: C) -> RTDResult<Ok> {
2295    async_caller!(Ok);
2296    async_caller(&self.api, toggle_session_can_accept_secret_chats.as_ref()).await
2297  }
2298
2299  pub async fn toggle_supergroup_is_all_history_available<C: AsRef<ToggleSupergroupIsAllHistoryAvailable>>(&self, toggle_supergroup_is_all_history_available: C) -> RTDResult<Ok> {
2300    async_caller!(Ok);
2301    async_caller(&self.api, toggle_supergroup_is_all_history_available.as_ref()).await
2302  }
2303
2304  pub async fn toggle_supergroup_is_broadcast_group<C: AsRef<ToggleSupergroupIsBroadcastGroup>>(&self, toggle_supergroup_is_broadcast_group: C) -> RTDResult<Ok> {
2305    async_caller!(Ok);
2306    async_caller(&self.api, toggle_supergroup_is_broadcast_group.as_ref()).await
2307  }
2308
2309  pub async fn toggle_supergroup_sign_messages<C: AsRef<ToggleSupergroupSignMessages>>(&self, toggle_supergroup_sign_messages: C) -> RTDResult<Ok> {
2310    async_caller!(Ok);
2311    async_caller(&self.api, toggle_supergroup_sign_messages.as_ref()).await
2312  }
2313
2314  pub async fn transfer_chat_ownership<C: AsRef<TransferChatOwnership>>(&self, transfer_chat_ownership: C) -> RTDResult<Ok> {
2315    async_caller!(Ok);
2316    async_caller(&self.api, transfer_chat_ownership.as_ref()).await
2317  }
2318
2319  pub async fn unpin_all_chat_messages<C: AsRef<UnpinAllChatMessages>>(&self, unpin_all_chat_messages: C) -> RTDResult<Ok> {
2320    async_caller!(Ok);
2321    async_caller(&self.api, unpin_all_chat_messages.as_ref()).await
2322  }
2323
2324  pub async fn unpin_chat_message<C: AsRef<UnpinChatMessage>>(&self, unpin_chat_message: C) -> RTDResult<Ok> {
2325    async_caller!(Ok);
2326    async_caller(&self.api, unpin_chat_message.as_ref()).await
2327  }
2328
2329  pub async fn upgrade_basic_group_chat_to_supergroup_chat<C: AsRef<UpgradeBasicGroupChatToSupergroupChat>>(&self, upgrade_basic_group_chat_to_supergroup_chat: C) -> RTDResult<Chat> {
2330    async_caller!(Chat);
2331    async_caller(&self.api, upgrade_basic_group_chat_to_supergroup_chat.as_ref()).await
2332  }
2333
2334  pub async fn upload_file<C: AsRef<UploadFile>>(&self, upload_file: C) -> RTDResult<File> {
2335    async_caller!(File);
2336    async_caller(&self.api, upload_file.as_ref()).await
2337  }
2338
2339  pub async fn upload_sticker_file<C: AsRef<UploadStickerFile>>(&self, upload_sticker_file: C) -> RTDResult<File> {
2340    async_caller!(File);
2341    async_caller(&self.api, upload_sticker_file.as_ref()).await
2342  }
2343
2344  pub async fn validate_order_info<C: AsRef<ValidateOrderInfo>>(&self, validate_order_info: C) -> RTDResult<ValidatedOrderInfo> {
2345    async_caller!(ValidatedOrderInfo);
2346    async_caller(&self.api, validate_order_info.as_ref()).await
2347  }
2348
2349  pub async fn view_messages<C: AsRef<ViewMessages>>(&self, view_messages: C) -> RTDResult<Ok> {
2350    async_caller!(Ok);
2351    async_caller(&self.api, view_messages.as_ref()).await
2352  }
2353
2354  pub async fn view_trending_sticker_sets<C: AsRef<ViewTrendingStickerSets>>(&self, view_trending_sticker_sets: C) -> RTDResult<Ok> {
2355    async_caller!(Ok);
2356    async_caller(&self.api, view_trending_sticker_sets.as_ref()).await
2357  }
2358
2359  pub async fn write_generated_file_part<C: AsRef<WriteGeneratedFilePart>>(&self, write_generated_file_part: C) -> RTDResult<Ok> {
2360    async_caller!(Ok);
2361    async_caller(&self.api, write_generated_file_part.as_ref()).await
2362  }
2363
2364
2365}
2366