telegram_client/api/
aevent.rs

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