Struct rust_tdlib::client::Client

source ·
pub struct Client<S>where
    S: TdLibClient + Clone,{ /* private fields */ }
Expand description

Struct stores all methods which you can call to interact with Telegram, such as: send_message, download_file, search_chats and so on.

Implementations§

source§

impl<R> Client<R>where R: TdLibClient + Clone,

source

pub async fn accept_call<C: AsRef<AcceptCall>>( &self, accept_call: C ) -> Result<Ok>

source

pub async fn accept_terms_of_service<C: AsRef<AcceptTermsOfService>>( &self, accept_terms_of_service: C ) -> Result<Ok>

source

pub async fn add_chat_member<C: AsRef<AddChatMember>>( &self, add_chat_member: C ) -> Result<Ok>

source

pub async fn add_chat_members<C: AsRef<AddChatMembers>>( &self, add_chat_members: C ) -> Result<Ok>

source

pub async fn add_chat_to_list<C: AsRef<AddChatToList>>( &self, add_chat_to_list: C ) -> Result<Ok>

source

pub async fn add_contact<C: AsRef<AddContact>>( &self, add_contact: C ) -> Result<Ok>

source

pub async fn add_custom_server_language_pack<C: AsRef<AddCustomServerLanguagePack>>( &self, add_custom_server_language_pack: C ) -> Result<Ok>

source

pub async fn add_favorite_sticker<C: AsRef<AddFavoriteSticker>>( &self, add_favorite_sticker: C ) -> Result<Ok>

source

pub async fn add_local_message<C: AsRef<AddLocalMessage>>( &self, add_local_message: C ) -> Result<Message>

source

pub async fn add_log_message<C: AsRef<AddLogMessage>>( &self, add_log_message: C ) -> Result<Ok>

source

pub async fn add_network_statistics<C: AsRef<AddNetworkStatistics>>( &self, add_network_statistics: C ) -> Result<Ok>

source

pub async fn add_proxy<C: AsRef<AddProxy>>(&self, add_proxy: C) -> Result<Proxy>

source

pub async fn add_recent_sticker<C: AsRef<AddRecentSticker>>( &self, add_recent_sticker: C ) -> Result<Stickers>

source

pub async fn add_recently_found_chat<C: AsRef<AddRecentlyFoundChat>>( &self, add_recently_found_chat: C ) -> Result<Ok>

source

pub async fn add_saved_animation<C: AsRef<AddSavedAnimation>>( &self, add_saved_animation: C ) -> Result<Ok>

source

pub async fn add_sticker_to_set<C: AsRef<AddStickerToSet>>( &self, add_sticker_to_set: C ) -> Result<StickerSet>

source

pub async fn answer_callback_query<C: AsRef<AnswerCallbackQuery>>( &self, answer_callback_query: C ) -> Result<Ok>

source

pub async fn answer_custom_query<C: AsRef<AnswerCustomQuery>>( &self, answer_custom_query: C ) -> Result<Ok>

source

pub async fn answer_inline_query<C: AsRef<AnswerInlineQuery>>( &self, answer_inline_query: C ) -> Result<Ok>

source

pub async fn answer_pre_checkout_query<C: AsRef<AnswerPreCheckoutQuery>>( &self, answer_pre_checkout_query: C ) -> Result<Ok>

source

pub async fn answer_shipping_query<C: AsRef<AnswerShippingQuery>>( &self, answer_shipping_query: C ) -> Result<Ok>

source

pub async fn ban_chat_member<C: AsRef<BanChatMember>>( &self, ban_chat_member: C ) -> Result<Ok>

source

pub async fn block_message_sender_from_replies<C: AsRef<BlockMessageSenderFromReplies>>( &self, block_message_sender_from_replies: C ) -> Result<Ok>

source

pub async fn can_transfer_ownership<C: AsRef<CanTransferOwnership>>( &self, can_transfer_ownership: C ) -> Result<CanTransferOwnershipResult>

source

pub async fn cancel_download_file<C: AsRef<CancelDownloadFile>>( &self, cancel_download_file: C ) -> Result<Ok>

source

pub async fn cancel_password_reset<C: AsRef<CancelPasswordReset>>( &self, cancel_password_reset: C ) -> Result<Ok>

source

pub async fn cancel_upload_file<C: AsRef<CancelUploadFile>>( &self, cancel_upload_file: C ) -> Result<Ok>

source

pub async fn change_imported_contacts<C: AsRef<ChangeImportedContacts>>( &self, change_imported_contacts: C ) -> Result<ImportedContacts>

source

pub async fn change_phone_number<C: AsRef<ChangePhoneNumber>>( &self, change_phone_number: C ) -> Result<AuthenticationCodeInfo>

source

pub async fn change_sticker_set<C: AsRef<ChangeStickerSet>>( &self, change_sticker_set: C ) -> Result<Ok>

source

pub async fn check_authentication_bot_token<C: AsRef<CheckAuthenticationBotToken>>( &self, check_authentication_bot_token: C ) -> Result<Ok>

source

pub async fn check_authentication_code<C: AsRef<CheckAuthenticationCode>>( &self, check_authentication_code: C ) -> Result<Ok>

source

pub async fn check_authentication_password<C: AsRef<CheckAuthenticationPassword>>( &self, check_authentication_password: C ) -> Result<Ok>

source

pub async fn check_authentication_password_recovery_code<C: AsRef<CheckAuthenticationPasswordRecoveryCode>>( &self, check_authentication_password_recovery_code: C ) -> Result<Ok>

source

pub async fn check_change_phone_number_code<C: AsRef<CheckChangePhoneNumberCode>>( &self, check_change_phone_number_code: C ) -> Result<Ok>

source

pub async fn check_chat_username<C: AsRef<CheckChatUsername>>( &self, check_chat_username: C ) -> Result<CheckChatUsernameResult>

source

pub async fn check_created_public_chats_limit<C: AsRef<CheckCreatedPublicChatsLimit>>( &self, check_created_public_chats_limit: C ) -> Result<Ok>

source

pub async fn check_database_encryption_key<C: AsRef<CheckDatabaseEncryptionKey>>( &self, check_database_encryption_key: C ) -> Result<Ok>

source

pub async fn check_email_address_verification_code<C: AsRef<CheckEmailAddressVerificationCode>>( &self, check_email_address_verification_code: C ) -> Result<Ok>

source

pub async fn check_password_recovery_code<C: AsRef<CheckPasswordRecoveryCode>>( &self, check_password_recovery_code: C ) -> Result<Ok>

source

pub async fn check_phone_number_confirmation_code<C: AsRef<CheckPhoneNumberConfirmationCode>>( &self, check_phone_number_confirmation_code: C ) -> Result<Ok>

source

pub async fn check_phone_number_verification_code<C: AsRef<CheckPhoneNumberVerificationCode>>( &self, check_phone_number_verification_code: C ) -> Result<Ok>

source

pub async fn check_recovery_email_address_code<C: AsRef<CheckRecoveryEmailAddressCode>>( &self, check_recovery_email_address_code: C ) -> Result<PasswordState>

source

pub async fn check_sticker_set_name<C: AsRef<CheckStickerSetName>>( &self, check_sticker_set_name: C ) -> Result<CheckStickerSetNameResult>

source

pub async fn clean_file_name<C: AsRef<CleanFileName>>( &self, clean_file_name: C ) -> Result<Text>

source

pub async fn clear_all_draft_messages<C: AsRef<ClearAllDraftMessages>>( &self, clear_all_draft_messages: C ) -> Result<Ok>

source

pub async fn clear_imported_contacts<C: AsRef<ClearImportedContacts>>( &self, clear_imported_contacts: C ) -> Result<Ok>

source

pub async fn clear_recent_stickers<C: AsRef<ClearRecentStickers>>( &self, clear_recent_stickers: C ) -> Result<Ok>

source

pub async fn clear_recently_found_chats<C: AsRef<ClearRecentlyFoundChats>>( &self, clear_recently_found_chats: C ) -> Result<Ok>

source

pub async fn click_animated_emoji_message<C: AsRef<ClickAnimatedEmojiMessage>>( &self, click_animated_emoji_message: C ) -> Result<Sticker>

source

pub async fn close<C: AsRef<Close>>(&self, close: C) -> Result<Ok>

source

pub async fn close_chat<C: AsRef<CloseChat>>(&self, close_chat: C) -> Result<Ok>

source

pub async fn close_secret_chat<C: AsRef<CloseSecretChat>>( &self, close_secret_chat: C ) -> Result<Ok>

source

pub async fn confirm_qr_code_authentication<C: AsRef<ConfirmQrCodeAuthentication>>( &self, confirm_qr_code_authentication: C ) -> Result<Session>

source

pub async fn create_basic_group_chat<C: AsRef<CreateBasicGroupChat>>( &self, create_basic_group_chat: C ) -> Result<Chat>

source

pub async fn create_call<C: AsRef<CreateCall>>( &self, create_call: C ) -> Result<CallId>

source

pub async fn create_chat_filter<C: AsRef<CreateChatFilter>>( &self, create_chat_filter: C ) -> Result<ChatFilterInfo>

source

pub async fn create_new_basic_group_chat<C: AsRef<CreateNewBasicGroupChat>>( &self, create_new_basic_group_chat: C ) -> Result<Chat>

source

pub async fn create_new_secret_chat<C: AsRef<CreateNewSecretChat>>( &self, create_new_secret_chat: C ) -> Result<Chat>

source

pub async fn create_new_sticker_set<C: AsRef<CreateNewStickerSet>>( &self, create_new_sticker_set: C ) -> Result<StickerSet>

source

pub async fn create_new_supergroup_chat<C: AsRef<CreateNewSupergroupChat>>( &self, create_new_supergroup_chat: C ) -> Result<Chat>

source

pub async fn create_private_chat<C: AsRef<CreatePrivateChat>>( &self, create_private_chat: C ) -> Result<Chat>

source

pub async fn create_secret_chat<C: AsRef<CreateSecretChat>>( &self, create_secret_chat: C ) -> Result<Chat>

source

pub async fn create_supergroup_chat<C: AsRef<CreateSupergroupChat>>( &self, create_supergroup_chat: C ) -> Result<Chat>

source

pub async fn create_temporary_password<C: AsRef<CreateTemporaryPassword>>( &self, create_temporary_password: C ) -> Result<TemporaryPasswordState>

source

pub async fn create_video_chat<C: AsRef<CreateVideoChat>>( &self, create_video_chat: C ) -> Result<GroupCallId>

source

pub async fn delete_account<C: AsRef<DeleteAccount>>( &self, delete_account: C ) -> Result<Ok>

source

pub async fn delete_all_call_messages<C: AsRef<DeleteAllCallMessages>>( &self, delete_all_call_messages: C ) -> Result<Ok>

source

pub async fn delete_chat<C: AsRef<DeleteChat>>( &self, delete_chat: C ) -> Result<Ok>

source

pub async fn delete_chat_filter<C: AsRef<DeleteChatFilter>>( &self, delete_chat_filter: C ) -> Result<Ok>

source

pub async fn delete_chat_history<C: AsRef<DeleteChatHistory>>( &self, delete_chat_history: C ) -> Result<Ok>

source

pub async fn delete_chat_messages_by_date<C: AsRef<DeleteChatMessagesByDate>>( &self, delete_chat_messages_by_date: C ) -> Result<Ok>

source

pub async fn delete_chat_messages_by_sender<C: AsRef<DeleteChatMessagesBySender>>( &self, delete_chat_messages_by_sender: C ) -> Result<Ok>

source

pub async fn delete_chat_reply_markup<C: AsRef<DeleteChatReplyMarkup>>( &self, delete_chat_reply_markup: C ) -> Result<Ok>

source

pub async fn delete_commands<C: AsRef<DeleteCommands>>( &self, delete_commands: C ) -> Result<Ok>

source

pub async fn delete_file<C: AsRef<DeleteFile>>( &self, delete_file: C ) -> Result<Ok>

source

pub async fn delete_language_pack<C: AsRef<DeleteLanguagePack>>( &self, delete_language_pack: C ) -> Result<Ok>

source

pub async fn delete_messages<C: AsRef<DeleteMessages>>( &self, delete_messages: C ) -> Result<Ok>

source

pub async fn delete_passport_element<C: AsRef<DeletePassportElement>>( &self, delete_passport_element: C ) -> Result<Ok>

source

pub async fn delete_profile_photo<C: AsRef<DeleteProfilePhoto>>( &self, delete_profile_photo: C ) -> Result<Ok>

source

pub async fn delete_saved_credentials<C: AsRef<DeleteSavedCredentials>>( &self, delete_saved_credentials: C ) -> Result<Ok>

source

pub async fn delete_saved_order_info<C: AsRef<DeleteSavedOrderInfo>>( &self, delete_saved_order_info: C ) -> Result<Ok>

source

pub async fn destroy<C: AsRef<Destroy>>(&self, destroy: C) -> Result<Ok>

source

pub async fn disable_proxy<C: AsRef<DisableProxy>>( &self, disable_proxy: C ) -> Result<Ok>

source

pub async fn discard_call<C: AsRef<DiscardCall>>( &self, discard_call: C ) -> Result<Ok>

source

pub async fn disconnect_all_websites<C: AsRef<DisconnectAllWebsites>>( &self, disconnect_all_websites: C ) -> Result<Ok>

source

pub async fn disconnect_website<C: AsRef<DisconnectWebsite>>( &self, disconnect_website: C ) -> Result<Ok>

source

pub async fn download_file<C: AsRef<DownloadFile>>( &self, download_file: C ) -> Result<File>

source

pub async fn edit_chat_filter<C: AsRef<EditChatFilter>>( &self, edit_chat_filter: C ) -> Result<ChatFilterInfo>

source

pub async fn edit_custom_language_pack_info<C: AsRef<EditCustomLanguagePackInfo>>( &self, edit_custom_language_pack_info: C ) -> Result<Ok>

source

pub async fn edit_inline_message_caption<C: AsRef<EditInlineMessageCaption>>( &self, edit_inline_message_caption: C ) -> Result<Ok>

source

pub async fn edit_inline_message_live_location<C: AsRef<EditInlineMessageLiveLocation>>( &self, edit_inline_message_live_location: C ) -> Result<Ok>

source

pub async fn edit_inline_message_media<C: AsRef<EditInlineMessageMedia>>( &self, edit_inline_message_media: C ) -> Result<Ok>

source

pub async fn edit_inline_message_reply_markup<C: AsRef<EditInlineMessageReplyMarkup>>( &self, edit_inline_message_reply_markup: C ) -> Result<Ok>

source

pub async fn edit_inline_message_text<C: AsRef<EditInlineMessageText>>( &self, edit_inline_message_text: C ) -> Result<Ok>

source

pub async fn edit_message_caption<C: AsRef<EditMessageCaption>>( &self, edit_message_caption: C ) -> Result<Message>

source

pub async fn edit_message_live_location<C: AsRef<EditMessageLiveLocation>>( &self, edit_message_live_location: C ) -> Result<Message>

source

pub async fn edit_message_media<C: AsRef<EditMessageMedia>>( &self, edit_message_media: C ) -> Result<Message>

source

pub async fn edit_message_reply_markup<C: AsRef<EditMessageReplyMarkup>>( &self, edit_message_reply_markup: C ) -> Result<Message>

source

pub async fn edit_message_scheduling_state<C: AsRef<EditMessageSchedulingState>>( &self, edit_message_scheduling_state: C ) -> Result<Ok>

source

pub async fn edit_message_text<C: AsRef<EditMessageText>>( &self, edit_message_text: C ) -> Result<Message>

source

pub async fn edit_proxy<C: AsRef<EditProxy>>( &self, edit_proxy: C ) -> Result<Proxy>

source

pub async fn enable_proxy<C: AsRef<EnableProxy>>( &self, enable_proxy: C ) -> Result<Ok>

source

pub async fn end_group_call<C: AsRef<EndGroupCall>>( &self, end_group_call: C ) -> Result<Ok>

source

pub async fn end_group_call_recording<C: AsRef<EndGroupCallRecording>>( &self, end_group_call_recording: C ) -> Result<Ok>

source

pub async fn end_group_call_screen_sharing<C: AsRef<EndGroupCallScreenSharing>>( &self, end_group_call_screen_sharing: C ) -> Result<Ok>

source

pub async fn finish_file_generation<C: AsRef<FinishFileGeneration>>( &self, finish_file_generation: C ) -> Result<Ok>

source

pub async fn forward_messages<C: AsRef<ForwardMessages>>( &self, forward_messages: C ) -> Result<Messages>

source

pub async fn get_account_ttl<C: AsRef<GetAccountTtl>>( &self, get_account_ttl: C ) -> Result<AccountTtl>

source

pub async fn get_active_live_location_messages<C: AsRef<GetActiveLiveLocationMessages>>( &self, get_active_live_location_messages: C ) -> Result<Messages>

source

pub async fn get_active_sessions<C: AsRef<GetActiveSessions>>( &self, get_active_sessions: C ) -> Result<Sessions>

source

pub async fn get_all_passport_elements<C: AsRef<GetAllPassportElements>>( &self, get_all_passport_elements: C ) -> Result<PassportElements>

source

pub async fn get_animated_emoji<C: AsRef<GetAnimatedEmoji>>( &self, get_animated_emoji: C ) -> Result<AnimatedEmoji>

source

pub async fn get_application_config<C: AsRef<GetApplicationConfig>>( &self, get_application_config: C ) -> Result<JsonValue>

source

pub async fn get_archived_sticker_sets<C: AsRef<GetArchivedStickerSets>>( &self, get_archived_sticker_sets: C ) -> Result<StickerSets>

source

pub async fn get_attached_sticker_sets<C: AsRef<GetAttachedStickerSets>>( &self, get_attached_sticker_sets: C ) -> Result<StickerSets>

source

pub async fn get_authorization_state<C: AsRef<GetAuthorizationState>>( &self, get_authorization_state: C ) -> Result<AuthorizationState>

source

pub async fn get_auto_download_settings_presets<C: AsRef<GetAutoDownloadSettingsPresets>>( &self, get_auto_download_settings_presets: C ) -> Result<AutoDownloadSettingsPresets>

source

pub async fn get_background_url<C: AsRef<GetBackgroundUrl>>( &self, get_background_url: C ) -> Result<HttpUrl>

source

pub async fn get_backgrounds<C: AsRef<GetBackgrounds>>( &self, get_backgrounds: C ) -> Result<Backgrounds>

source

pub async fn get_bank_card_info<C: AsRef<GetBankCardInfo>>( &self, get_bank_card_info: C ) -> Result<BankCardInfo>

source

pub async fn get_basic_group<C: AsRef<GetBasicGroup>>( &self, get_basic_group: C ) -> Result<BasicGroup>

source

pub async fn get_basic_group_full_info<C: AsRef<GetBasicGroupFullInfo>>( &self, get_basic_group_full_info: C ) -> Result<BasicGroupFullInfo>

source

pub async fn get_blocked_message_senders<C: AsRef<GetBlockedMessageSenders>>( &self, get_blocked_message_senders: C ) -> Result<MessageSenders>

source

pub async fn get_callback_query_answer<C: AsRef<GetCallbackQueryAnswer>>( &self, get_callback_query_answer: C ) -> Result<CallbackQueryAnswer>

source

pub async fn get_callback_query_message<C: AsRef<GetCallbackQueryMessage>>( &self, get_callback_query_message: C ) -> Result<Message>

source

pub async fn get_chat<C: AsRef<GetChat>>(&self, get_chat: C) -> Result<Chat>

source

pub async fn get_chat_administrators<C: AsRef<GetChatAdministrators>>( &self, get_chat_administrators: C ) -> Result<ChatAdministrators>

source

pub async fn get_chat_available_message_senders<C: AsRef<GetChatAvailableMessageSenders>>( &self, get_chat_available_message_senders: C ) -> Result<MessageSenders>

source

pub async fn get_chat_event_log<C: AsRef<GetChatEventLog>>( &self, get_chat_event_log: C ) -> Result<ChatEvents>

source

pub async fn get_chat_filter<C: AsRef<GetChatFilter>>( &self, get_chat_filter: C ) -> Result<ChatFilter>

source

pub async fn get_chat_filter_default_icon_name<C: AsRef<GetChatFilterDefaultIconName>>( &self, get_chat_filter_default_icon_name: C ) -> Result<Text>

source

pub async fn get_chat_history<C: AsRef<GetChatHistory>>( &self, get_chat_history: C ) -> Result<Messages>

source

pub async fn get_chat_join_requests<C: AsRef<GetChatJoinRequests>>( &self, get_chat_join_requests: C ) -> Result<ChatJoinRequests>

source

pub async fn get_chat_lists_to_add_chat<C: AsRef<GetChatListsToAddChat>>( &self, get_chat_lists_to_add_chat: C ) -> Result<ChatLists>

source

pub async fn get_chat_member<C: AsRef<GetChatMember>>( &self, get_chat_member: C ) -> Result<ChatMember>

source

pub async fn get_chat_message_by_date<C: AsRef<GetChatMessageByDate>>( &self, get_chat_message_by_date: C ) -> Result<Message>

source

pub async fn get_chat_message_calendar<C: AsRef<GetChatMessageCalendar>>( &self, get_chat_message_calendar: C ) -> Result<MessageCalendar>

source

pub async fn get_chat_message_count<C: AsRef<GetChatMessageCount>>( &self, get_chat_message_count: C ) -> Result<Count>

source

pub async fn get_chat_notification_settings_exceptions<C: AsRef<GetChatNotificationSettingsExceptions>>( &self, get_chat_notification_settings_exceptions: C ) -> Result<Chats>

source

pub async fn get_chat_pinned_message<C: AsRef<GetChatPinnedMessage>>( &self, get_chat_pinned_message: C ) -> Result<Message>

source

pub async fn get_chat_scheduled_messages<C: AsRef<GetChatScheduledMessages>>( &self, get_chat_scheduled_messages: C ) -> Result<Messages>

source

pub async fn get_chat_sparse_message_positions<C: AsRef<GetChatSparseMessagePositions>>( &self, get_chat_sparse_message_positions: C ) -> Result<MessagePositions>

source

pub async fn get_chat_sponsored_message<C: AsRef<GetChatSponsoredMessage>>( &self, get_chat_sponsored_message: C ) -> Result<SponsoredMessage>

source

pub async fn get_chat_statistics<C: AsRef<GetChatStatistics>>( &self, get_chat_statistics: C ) -> Result<ChatStatistics>

source

pub async fn get_chats<C: AsRef<GetChats>>(&self, get_chats: C) -> Result<Chats>

source

pub async fn get_commands<C: AsRef<GetCommands>>( &self, get_commands: C ) -> Result<BotCommands>

source

pub async fn get_connected_websites<C: AsRef<GetConnectedWebsites>>( &self, get_connected_websites: C ) -> Result<ConnectedWebsites>

source

pub async fn get_contacts<C: AsRef<GetContacts>>( &self, get_contacts: C ) -> Result<Users>

source

pub async fn get_countries<C: AsRef<GetCountries>>( &self, get_countries: C ) -> Result<Countries>

source

pub async fn get_country_code<C: AsRef<GetCountryCode>>( &self, get_country_code: C ) -> Result<Text>

source

pub async fn get_created_public_chats<C: AsRef<GetCreatedPublicChats>>( &self, get_created_public_chats: C ) -> Result<Chats>

source

pub async fn get_current_state<C: AsRef<GetCurrentState>>( &self, get_current_state: C ) -> Result<Updates>

source

pub async fn get_database_statistics<C: AsRef<GetDatabaseStatistics>>( &self, get_database_statistics: C ) -> Result<DatabaseStatistics>

source

pub async fn get_emoji_suggestions_url<C: AsRef<GetEmojiSuggestionsUrl>>( &self, get_emoji_suggestions_url: C ) -> Result<HttpUrl>

source

pub async fn get_favorite_stickers<C: AsRef<GetFavoriteStickers>>( &self, get_favorite_stickers: C ) -> Result<Stickers>

source

pub async fn get_file<C: AsRef<GetFile>>(&self, get_file: C) -> Result<File>

source

pub async fn get_file_downloaded_prefix_size<C: AsRef<GetFileDownloadedPrefixSize>>( &self, get_file_downloaded_prefix_size: C ) -> Result<Count>

source

pub async fn get_file_extension<C: AsRef<GetFileExtension>>( &self, get_file_extension: C ) -> Result<Text>

source

pub async fn get_file_mime_type<C: AsRef<GetFileMimeType>>( &self, get_file_mime_type: C ) -> Result<Text>

source

pub async fn get_game_high_scores<C: AsRef<GetGameHighScores>>( &self, get_game_high_scores: C ) -> Result<GameHighScores>

source

pub async fn get_group_call<C: AsRef<GetGroupCall>>( &self, get_group_call: C ) -> Result<GroupCall>

source

pub async fn get_group_call_stream_segment<C: AsRef<GetGroupCallStreamSegment>>( &self, get_group_call_stream_segment: C ) -> Result<FilePart>

source

pub async fn get_groups_in_common<C: AsRef<GetGroupsInCommon>>( &self, get_groups_in_common: C ) -> Result<Chats>

source

pub async fn get_imported_contact_count<C: AsRef<GetImportedContactCount>>( &self, get_imported_contact_count: C ) -> Result<Count>

source

pub async fn get_inactive_supergroup_chats<C: AsRef<GetInactiveSupergroupChats>>( &self, get_inactive_supergroup_chats: C ) -> Result<Chats>

source

pub async fn get_inline_game_high_scores<C: AsRef<GetInlineGameHighScores>>( &self, get_inline_game_high_scores: C ) -> Result<GameHighScores>

source

pub async fn get_inline_query_results<C: AsRef<GetInlineQueryResults>>( &self, get_inline_query_results: C ) -> Result<InlineQueryResults>

source

pub async fn get_installed_sticker_sets<C: AsRef<GetInstalledStickerSets>>( &self, get_installed_sticker_sets: C ) -> Result<StickerSets>

source

pub async fn get_json_string<C: AsRef<GetJsonString>>( &self, get_json_string: C ) -> Result<Text>

source

pub async fn get_json_value<C: AsRef<GetJsonValue>>( &self, get_json_value: C ) -> Result<JsonValue>

source

pub async fn get_language_pack_info<C: AsRef<GetLanguagePackInfo>>( &self, get_language_pack_info: C ) -> Result<LanguagePackInfo>

source

pub async fn get_language_pack_string<C: AsRef<GetLanguagePackString>>( &self, get_language_pack_string: C ) -> Result<LanguagePackStringValue>

source

pub async fn get_language_pack_strings<C: AsRef<GetLanguagePackStrings>>( &self, get_language_pack_strings: C ) -> Result<LanguagePackStrings>

source

pub async fn get_localization_target_info<C: AsRef<GetLocalizationTargetInfo>>( &self, get_localization_target_info: C ) -> Result<LocalizationTargetInfo>

source

pub async fn get_log_stream<C: AsRef<GetLogStream>>( &self, get_log_stream: C ) -> Result<LogStream>

source

pub async fn get_log_tag_verbosity_level<C: AsRef<GetLogTagVerbosityLevel>>( &self, get_log_tag_verbosity_level: C ) -> Result<LogVerbosityLevel>

source

pub async fn get_log_tags<C: AsRef<GetLogTags>>( &self, get_log_tags: C ) -> Result<LogTags>

source

pub async fn get_log_verbosity_level<C: AsRef<GetLogVerbosityLevel>>( &self, get_log_verbosity_level: C ) -> Result<LogVerbosityLevel>

source

pub async fn get_login_url<C: AsRef<GetLoginUrl>>( &self, get_login_url: C ) -> Result<HttpUrl>

source

pub async fn get_login_url_info<C: AsRef<GetLoginUrlInfo>>( &self, get_login_url_info: C ) -> Result<LoginUrlInfo>

source

pub async fn get_map_thumbnail_file<C: AsRef<GetMapThumbnailFile>>( &self, get_map_thumbnail_file: C ) -> Result<File>

source

pub async fn get_markdown_text<C: AsRef<GetMarkdownText>>( &self, get_markdown_text: C ) -> Result<FormattedText>

source

pub async fn get_me<C: AsRef<GetMe>>(&self, get_me: C) -> Result<User>

source

pub async fn get_message<C: AsRef<GetMessage>>( &self, get_message: C ) -> Result<Message>

source

pub async fn get_message_embedding_code<C: AsRef<GetMessageEmbeddingCode>>( &self, get_message_embedding_code: C ) -> Result<Text>

source

pub async fn get_message_file_type<C: AsRef<GetMessageFileType>>( &self, get_message_file_type: C ) -> Result<MessageFileType>

source

pub async fn get_message_import_confirmation_text<C: AsRef<GetMessageImportConfirmationText>>( &self, get_message_import_confirmation_text: C ) -> Result<Text>

source

pub async fn get_message_locally<C: AsRef<GetMessageLocally>>( &self, get_message_locally: C ) -> Result<Message>

source

pub async fn get_message_public_forwards<C: AsRef<GetMessagePublicForwards>>( &self, get_message_public_forwards: C ) -> Result<FoundMessages>

source

pub async fn get_message_statistics<C: AsRef<GetMessageStatistics>>( &self, get_message_statistics: C ) -> Result<MessageStatistics>

source

pub async fn get_message_thread<C: AsRef<GetMessageThread>>( &self, get_message_thread: C ) -> Result<MessageThreadInfo>

source

pub async fn get_message_thread_history<C: AsRef<GetMessageThreadHistory>>( &self, get_message_thread_history: C ) -> Result<Messages>

source

pub async fn get_message_viewers<C: AsRef<GetMessageViewers>>( &self, get_message_viewers: C ) -> Result<Users>

source

pub async fn get_messages<C: AsRef<GetMessages>>( &self, get_messages: C ) -> Result<Messages>

source

pub async fn get_network_statistics<C: AsRef<GetNetworkStatistics>>( &self, get_network_statistics: C ) -> Result<NetworkStatistics>

source

pub async fn get_option<C: AsRef<GetOption>>( &self, get_option: C ) -> Result<OptionValue>

source

pub async fn get_passport_authorization_form<C: AsRef<GetPassportAuthorizationForm>>( &self, get_passport_authorization_form: C ) -> Result<PassportAuthorizationForm>

source

pub async fn get_passport_authorization_form_available_elements<C: AsRef<GetPassportAuthorizationFormAvailableElements>>( &self, get_passport_authorization_form_available_elements: C ) -> Result<PassportElementsWithErrors>

source

pub async fn get_passport_element<C: AsRef<GetPassportElement>>( &self, get_passport_element: C ) -> Result<PassportElement>

source

pub async fn get_password_state<C: AsRef<GetPasswordState>>( &self, get_password_state: C ) -> Result<PasswordState>

source

pub async fn get_payment_form<C: AsRef<GetPaymentForm>>( &self, get_payment_form: C ) -> Result<PaymentForm>

source

pub async fn get_payment_receipt<C: AsRef<GetPaymentReceipt>>( &self, get_payment_receipt: C ) -> Result<PaymentReceipt>

source

pub async fn get_phone_number_info<C: AsRef<GetPhoneNumberInfo>>( &self, get_phone_number_info: C ) -> Result<PhoneNumberInfo>

source

pub async fn get_phone_number_info_sync<C: AsRef<GetPhoneNumberInfoSync>>( &self, get_phone_number_info_sync: C ) -> Result<PhoneNumberInfo>

source

pub async fn get_poll_voters<C: AsRef<GetPollVoters>>( &self, get_poll_voters: C ) -> Result<Users>

source

pub async fn get_preferred_country_language<C: AsRef<GetPreferredCountryLanguage>>( &self, get_preferred_country_language: C ) -> Result<Text>

source

pub async fn get_proxies<C: AsRef<GetProxies>>( &self, get_proxies: C ) -> Result<Proxies>

source

pub async fn get_push_receiver_id<C: AsRef<GetPushReceiverId>>( &self, get_push_receiver_id: C ) -> Result<PushReceiverId>

source

pub async fn get_recent_inline_bots<C: AsRef<GetRecentInlineBots>>( &self, get_recent_inline_bots: C ) -> Result<Users>

source

pub async fn get_recent_stickers<C: AsRef<GetRecentStickers>>( &self, get_recent_stickers: C ) -> Result<Stickers>

source

pub async fn get_recently_opened_chats<C: AsRef<GetRecentlyOpenedChats>>( &self, get_recently_opened_chats: C ) -> Result<Chats>

source

pub async fn get_recently_visited_t_me_urls<C: AsRef<GetRecentlyVisitedTMeUrls>>( &self, get_recently_visited_t_me_urls: C ) -> Result<TMeUrls>

source

pub async fn get_recovery_email_address<C: AsRef<GetRecoveryEmailAddress>>( &self, get_recovery_email_address: C ) -> Result<RecoveryEmailAddress>

source

pub async fn get_remote_file<C: AsRef<GetRemoteFile>>( &self, get_remote_file: C ) -> Result<File>

source

pub async fn get_replied_message<C: AsRef<GetRepliedMessage>>( &self, get_replied_message: C ) -> Result<Message>

source

pub async fn get_saved_animations<C: AsRef<GetSavedAnimations>>( &self, get_saved_animations: C ) -> Result<Animations>

source

pub async fn get_saved_order_info<C: AsRef<GetSavedOrderInfo>>( &self, get_saved_order_info: C ) -> Result<OrderInfo>

source

pub async fn get_scope_notification_settings<C: AsRef<GetScopeNotificationSettings>>( &self, get_scope_notification_settings: C ) -> Result<ScopeNotificationSettings>

source

pub async fn get_secret_chat<C: AsRef<GetSecretChat>>( &self, get_secret_chat: C ) -> Result<SecretChat>

source

pub async fn get_statistical_graph<C: AsRef<GetStatisticalGraph>>( &self, get_statistical_graph: C ) -> Result<StatisticalGraph>

source

pub async fn get_sticker_emojis<C: AsRef<GetStickerEmojis>>( &self, get_sticker_emojis: C ) -> Result<Emojis>

source

pub async fn get_sticker_set<C: AsRef<GetStickerSet>>( &self, get_sticker_set: C ) -> Result<StickerSet>

source

pub async fn get_stickers<C: AsRef<GetStickers>>( &self, get_stickers: C ) -> Result<Stickers>

source

pub async fn get_storage_statistics<C: AsRef<GetStorageStatistics>>( &self, get_storage_statistics: C ) -> Result<StorageStatistics>

source

pub async fn get_storage_statistics_fast<C: AsRef<GetStorageStatisticsFast>>( &self, get_storage_statistics_fast: C ) -> Result<StorageStatisticsFast>

source

pub async fn get_suggested_file_name<C: AsRef<GetSuggestedFileName>>( &self, get_suggested_file_name: C ) -> Result<Text>

source

pub async fn get_suggested_sticker_set_name<C: AsRef<GetSuggestedStickerSetName>>( &self, get_suggested_sticker_set_name: C ) -> Result<Text>

source

pub async fn get_suitable_discussion_chats<C: AsRef<GetSuitableDiscussionChats>>( &self, get_suitable_discussion_chats: C ) -> Result<Chats>

source

pub async fn get_supergroup<C: AsRef<GetSupergroup>>( &self, get_supergroup: C ) -> Result<Supergroup>

source

pub async fn get_supergroup_full_info<C: AsRef<GetSupergroupFullInfo>>( &self, get_supergroup_full_info: C ) -> Result<SupergroupFullInfo>

source

pub async fn get_supergroup_members<C: AsRef<GetSupergroupMembers>>( &self, get_supergroup_members: C ) -> Result<ChatMembers>

source

pub async fn get_support_user<C: AsRef<GetSupportUser>>( &self, get_support_user: C ) -> Result<User>

source

pub async fn get_temporary_password_state<C: AsRef<GetTemporaryPasswordState>>( &self, get_temporary_password_state: C ) -> Result<TemporaryPasswordState>

source

pub async fn get_text_entities<C: AsRef<GetTextEntities>>( &self, get_text_entities: C ) -> Result<TextEntities>

source

pub async fn get_top_chats<C: AsRef<GetTopChats>>( &self, get_top_chats: C ) -> Result<Chats>

source

pub async fn get_user<C: AsRef<GetUser>>(&self, get_user: C) -> Result<User>

source

pub async fn get_user_full_info<C: AsRef<GetUserFullInfo>>( &self, get_user_full_info: C ) -> Result<UserFullInfo>

source

pub async fn get_user_privacy_setting_rules<C: AsRef<GetUserPrivacySettingRules>>( &self, get_user_privacy_setting_rules: C ) -> Result<UserPrivacySettingRules>

source

pub async fn get_user_profile_photos<C: AsRef<GetUserProfilePhotos>>( &self, get_user_profile_photos: C ) -> Result<ChatPhotos>

source

pub async fn get_video_chat_available_participants<C: AsRef<GetVideoChatAvailableParticipants>>( &self, get_video_chat_available_participants: C ) -> Result<MessageSenders>

source

pub async fn get_web_page_instant_view<C: AsRef<GetWebPageInstantView>>( &self, get_web_page_instant_view: C ) -> Result<WebPageInstantView>

source

pub async fn get_web_page_preview<C: AsRef<GetWebPagePreview>>( &self, get_web_page_preview: C ) -> Result<WebPage>

source

pub async fn hide_suggested_action<C: AsRef<HideSuggestedAction>>( &self, hide_suggested_action: C ) -> Result<Ok>

source

pub async fn import_contacts<C: AsRef<ImportContacts>>( &self, import_contacts: C ) -> Result<ImportedContacts>

source

pub async fn import_messages<C: AsRef<ImportMessages>>( &self, import_messages: C ) -> Result<Ok>

source

pub async fn invite_group_call_participants<C: AsRef<InviteGroupCallParticipants>>( &self, invite_group_call_participants: C ) -> Result<Ok>

source

pub async fn join_chat<C: AsRef<JoinChat>>(&self, join_chat: C) -> Result<Ok>

source

pub async fn join_group_call<C: AsRef<JoinGroupCall>>( &self, join_group_call: C ) -> Result<Text>

source

pub async fn leave_chat<C: AsRef<LeaveChat>>(&self, leave_chat: C) -> Result<Ok>

source

pub async fn leave_group_call<C: AsRef<LeaveGroupCall>>( &self, leave_group_call: C ) -> Result<Ok>

source

pub async fn load_chats<C: AsRef<LoadChats>>(&self, load_chats: C) -> Result<Ok>

source

pub async fn load_group_call_participants<C: AsRef<LoadGroupCallParticipants>>( &self, load_group_call_participants: C ) -> Result<Ok>

source

pub async fn log_out<C: AsRef<LogOut>>(&self, log_out: C) -> Result<Ok>

source

pub async fn open_chat<C: AsRef<OpenChat>>(&self, open_chat: C) -> Result<Ok>

source

pub async fn open_message_content<C: AsRef<OpenMessageContent>>( &self, open_message_content: C ) -> Result<Ok>

source

pub async fn optimize_storage<C: AsRef<OptimizeStorage>>( &self, optimize_storage: C ) -> Result<StorageStatistics>

source

pub async fn parse_markdown<C: AsRef<ParseMarkdown>>( &self, parse_markdown: C ) -> Result<FormattedText>

source

pub async fn parse_text_entities<C: AsRef<ParseTextEntities>>( &self, parse_text_entities: C ) -> Result<FormattedText>

source

pub async fn pin_chat_message<C: AsRef<PinChatMessage>>( &self, pin_chat_message: C ) -> Result<Ok>

source

pub async fn ping_proxy<C: AsRef<PingProxy>>( &self, ping_proxy: C ) -> Result<Seconds>

source

pub async fn process_chat_join_request<C: AsRef<ProcessChatJoinRequest>>( &self, process_chat_join_request: C ) -> Result<Ok>

source

pub async fn process_chat_join_requests<C: AsRef<ProcessChatJoinRequests>>( &self, process_chat_join_requests: C ) -> Result<Ok>

source

pub async fn process_push_notification<C: AsRef<ProcessPushNotification>>( &self, process_push_notification: C ) -> Result<Ok>

source

pub async fn read_all_chat_mentions<C: AsRef<ReadAllChatMentions>>( &self, read_all_chat_mentions: C ) -> Result<Ok>

source

pub async fn read_file_part<C: AsRef<ReadFilePart>>( &self, read_file_part: C ) -> Result<FilePart>

source

pub async fn recover_authentication_password<C: AsRef<RecoverAuthenticationPassword>>( &self, recover_authentication_password: C ) -> Result<Ok>

source

pub async fn recover_password<C: AsRef<RecoverPassword>>( &self, recover_password: C ) -> Result<PasswordState>

source

pub async fn register_device<C: AsRef<RegisterDevice>>( &self, register_device: C ) -> Result<PushReceiverId>

source

pub async fn register_user<C: AsRef<RegisterUser>>( &self, register_user: C ) -> Result<Ok>

source

pub async fn remove_background<C: AsRef<RemoveBackground>>( &self, remove_background: C ) -> Result<Ok>

source

pub async fn remove_chat_action_bar<C: AsRef<RemoveChatActionBar>>( &self, remove_chat_action_bar: C ) -> Result<Ok>

source

pub async fn remove_contacts<C: AsRef<RemoveContacts>>( &self, remove_contacts: C ) -> Result<Ok>

source

pub async fn remove_favorite_sticker<C: AsRef<RemoveFavoriteSticker>>( &self, remove_favorite_sticker: C ) -> Result<Ok>

source

pub async fn remove_notification<C: AsRef<RemoveNotification>>( &self, remove_notification: C ) -> Result<Ok>

source

pub async fn remove_notification_group<C: AsRef<RemoveNotificationGroup>>( &self, remove_notification_group: C ) -> Result<Ok>

source

pub async fn remove_proxy<C: AsRef<RemoveProxy>>( &self, remove_proxy: C ) -> Result<Ok>

source

pub async fn remove_recent_hashtag<C: AsRef<RemoveRecentHashtag>>( &self, remove_recent_hashtag: C ) -> Result<Ok>

source

pub async fn remove_recent_sticker<C: AsRef<RemoveRecentSticker>>( &self, remove_recent_sticker: C ) -> Result<Ok>

source

pub async fn remove_recently_found_chat<C: AsRef<RemoveRecentlyFoundChat>>( &self, remove_recently_found_chat: C ) -> Result<Ok>

source

pub async fn remove_saved_animation<C: AsRef<RemoveSavedAnimation>>( &self, remove_saved_animation: C ) -> Result<Ok>

source

pub async fn remove_sticker_from_set<C: AsRef<RemoveStickerFromSet>>( &self, remove_sticker_from_set: C ) -> Result<Ok>

source

pub async fn remove_top_chat<C: AsRef<RemoveTopChat>>( &self, remove_top_chat: C ) -> Result<Ok>

source

pub async fn reorder_chat_filters<C: AsRef<ReorderChatFilters>>( &self, reorder_chat_filters: C ) -> Result<Ok>

source

pub async fn reorder_installed_sticker_sets<C: AsRef<ReorderInstalledStickerSets>>( &self, reorder_installed_sticker_sets: C ) -> Result<Ok>

source

pub async fn report_chat<C: AsRef<ReportChat>>( &self, report_chat: C ) -> Result<Ok>

source

pub async fn report_chat_photo<C: AsRef<ReportChatPhoto>>( &self, report_chat_photo: C ) -> Result<Ok>

source

pub async fn report_supergroup_spam<C: AsRef<ReportSupergroupSpam>>( &self, report_supergroup_spam: C ) -> Result<Ok>

source

pub async fn request_authentication_password_recovery<C: AsRef<RequestAuthenticationPasswordRecovery>>( &self, request_authentication_password_recovery: C ) -> Result<Ok>

source

pub async fn request_password_recovery<C: AsRef<RequestPasswordRecovery>>( &self, request_password_recovery: C ) -> Result<EmailAddressAuthenticationCodeInfo>

source

pub async fn request_qr_code_authentication<C: AsRef<RequestQrCodeAuthentication>>( &self, request_qr_code_authentication: C ) -> Result<Ok>

source

pub async fn resend_authentication_code<C: AsRef<ResendAuthenticationCode>>( &self, resend_authentication_code: C ) -> Result<Ok>

source

pub async fn resend_change_phone_number_code<C: AsRef<ResendChangePhoneNumberCode>>( &self, resend_change_phone_number_code: C ) -> Result<AuthenticationCodeInfo>

source

pub async fn resend_email_address_verification_code<C: AsRef<ResendEmailAddressVerificationCode>>( &self, resend_email_address_verification_code: C ) -> Result<EmailAddressAuthenticationCodeInfo>

source

pub async fn resend_messages<C: AsRef<ResendMessages>>( &self, resend_messages: C ) -> Result<Messages>

source

pub async fn resend_phone_number_confirmation_code<C: AsRef<ResendPhoneNumberConfirmationCode>>( &self, resend_phone_number_confirmation_code: C ) -> Result<AuthenticationCodeInfo>

source

pub async fn resend_phone_number_verification_code<C: AsRef<ResendPhoneNumberVerificationCode>>( &self, resend_phone_number_verification_code: C ) -> Result<AuthenticationCodeInfo>

source

pub async fn resend_recovery_email_address_code<C: AsRef<ResendRecoveryEmailAddressCode>>( &self, resend_recovery_email_address_code: C ) -> Result<PasswordState>

source

pub async fn reset_all_notification_settings<C: AsRef<ResetAllNotificationSettings>>( &self, reset_all_notification_settings: C ) -> Result<Ok>

source

pub async fn reset_backgrounds<C: AsRef<ResetBackgrounds>>( &self, reset_backgrounds: C ) -> Result<Ok>

source

pub async fn reset_network_statistics<C: AsRef<ResetNetworkStatistics>>( &self, reset_network_statistics: C ) -> Result<Ok>

source

pub async fn reset_password<C: AsRef<ResetPassword>>( &self, reset_password: C ) -> Result<ResetPasswordResult>

source

pub async fn save_application_log_event<C: AsRef<SaveApplicationLogEvent>>( &self, save_application_log_event: C ) -> Result<Ok>

source

pub async fn search_background<C: AsRef<SearchBackground>>( &self, search_background: C ) -> Result<Background>

source

pub async fn search_call_messages<C: AsRef<SearchCallMessages>>( &self, search_call_messages: C ) -> Result<Messages>

source

pub async fn search_chat_members<C: AsRef<SearchChatMembers>>( &self, search_chat_members: C ) -> Result<ChatMembers>

source

pub async fn search_chat_messages<C: AsRef<SearchChatMessages>>( &self, search_chat_messages: C ) -> Result<Messages>

source

pub async fn search_chat_recent_location_messages<C: AsRef<SearchChatRecentLocationMessages>>( &self, search_chat_recent_location_messages: C ) -> Result<Messages>

source

pub async fn search_chats<C: AsRef<SearchChats>>( &self, search_chats: C ) -> Result<Chats>

source

pub async fn search_chats_nearby<C: AsRef<SearchChatsNearby>>( &self, search_chats_nearby: C ) -> Result<ChatsNearby>

source

pub async fn search_chats_on_server<C: AsRef<SearchChatsOnServer>>( &self, search_chats_on_server: C ) -> Result<Chats>

source

pub async fn search_contacts<C: AsRef<SearchContacts>>( &self, search_contacts: C ) -> Result<Users>

source

pub async fn search_emojis<C: AsRef<SearchEmojis>>( &self, search_emojis: C ) -> Result<Emojis>

source

pub async fn search_hashtags<C: AsRef<SearchHashtags>>( &self, search_hashtags: C ) -> Result<Hashtags>

source

pub async fn search_installed_sticker_sets<C: AsRef<SearchInstalledStickerSets>>( &self, search_installed_sticker_sets: C ) -> Result<StickerSets>

source

pub async fn search_messages<C: AsRef<SearchMessages>>( &self, search_messages: C ) -> Result<Messages>

source

pub async fn search_public_chat<C: AsRef<SearchPublicChat>>( &self, search_public_chat: C ) -> Result<Chat>

source

pub async fn search_public_chats<C: AsRef<SearchPublicChats>>( &self, search_public_chats: C ) -> Result<Chats>

source

pub async fn search_secret_messages<C: AsRef<SearchSecretMessages>>( &self, search_secret_messages: C ) -> Result<FoundMessages>

source

pub async fn search_sticker_set<C: AsRef<SearchStickerSet>>( &self, search_sticker_set: C ) -> Result<StickerSet>

source

pub async fn search_sticker_sets<C: AsRef<SearchStickerSets>>( &self, search_sticker_sets: C ) -> Result<StickerSets>

source

pub async fn search_stickers<C: AsRef<SearchStickers>>( &self, search_stickers: C ) -> Result<Stickers>

source

pub async fn send_bot_start_message<C: AsRef<SendBotStartMessage>>( &self, send_bot_start_message: C ) -> Result<Message>

source

pub async fn send_call_debug_information<C: AsRef<SendCallDebugInformation>>( &self, send_call_debug_information: C ) -> Result<Ok>

source

pub async fn send_call_rating<C: AsRef<SendCallRating>>( &self, send_call_rating: C ) -> Result<Ok>

source

pub async fn send_call_signaling_data<C: AsRef<SendCallSignalingData>>( &self, send_call_signaling_data: C ) -> Result<Ok>

source

pub async fn send_chat_action<C: AsRef<SendChatAction>>( &self, send_chat_action: C ) -> Result<Ok>

source

pub async fn send_chat_screenshot_taken_notification<C: AsRef<SendChatScreenshotTakenNotification>>( &self, send_chat_screenshot_taken_notification: C ) -> Result<Ok>

source

pub async fn send_custom_request<C: AsRef<SendCustomRequest>>( &self, send_custom_request: C ) -> Result<CustomRequestResult>

source

pub async fn send_email_address_verification_code<C: AsRef<SendEmailAddressVerificationCode>>( &self, send_email_address_verification_code: C ) -> Result<EmailAddressAuthenticationCodeInfo>

source

pub async fn send_inline_query_result_message<C: AsRef<SendInlineQueryResultMessage>>( &self, send_inline_query_result_message: C ) -> Result<Message>

source

pub async fn send_message<C: AsRef<SendMessage>>( &self, send_message: C ) -> Result<Message>

source

pub async fn send_message_album<C: AsRef<SendMessageAlbum>>( &self, send_message_album: C ) -> Result<Messages>

source

pub async fn send_passport_authorization_form<C: AsRef<SendPassportAuthorizationForm>>( &self, send_passport_authorization_form: C ) -> Result<Ok>

source

pub async fn send_payment_form<C: AsRef<SendPaymentForm>>( &self, send_payment_form: C ) -> Result<PaymentResult>

source

pub async fn send_phone_number_confirmation_code<C: AsRef<SendPhoneNumberConfirmationCode>>( &self, send_phone_number_confirmation_code: C ) -> Result<AuthenticationCodeInfo>

source

pub async fn send_phone_number_verification_code<C: AsRef<SendPhoneNumberVerificationCode>>( &self, send_phone_number_verification_code: C ) -> Result<AuthenticationCodeInfo>

source

pub async fn set_account_ttl<C: AsRef<SetAccountTtl>>( &self, set_account_ttl: C ) -> Result<Ok>

source

pub async fn set_alarm<C: AsRef<SetAlarm>>(&self, set_alarm: C) -> Result<Ok>

source

pub async fn set_authentication_phone_number<C: AsRef<SetAuthenticationPhoneNumber>>( &self, set_authentication_phone_number: C ) -> Result<Ok>

source

pub async fn set_auto_download_settings<C: AsRef<SetAutoDownloadSettings>>( &self, set_auto_download_settings: C ) -> Result<Ok>

source

pub async fn set_background<C: AsRef<SetBackground>>( &self, set_background: C ) -> Result<Background>

source

pub async fn set_bio<C: AsRef<SetBio>>(&self, set_bio: C) -> Result<Ok>

source

pub async fn set_bot_updates_status<C: AsRef<SetBotUpdatesStatus>>( &self, set_bot_updates_status: C ) -> Result<Ok>

source

pub async fn set_chat_client_data<C: AsRef<SetChatClientData>>( &self, set_chat_client_data: C ) -> Result<Ok>

source

pub async fn set_chat_description<C: AsRef<SetChatDescription>>( &self, set_chat_description: C ) -> Result<Ok>

source

pub async fn set_chat_discussion_group<C: AsRef<SetChatDiscussionGroup>>( &self, set_chat_discussion_group: C ) -> Result<Ok>

source

pub async fn set_chat_draft_message<C: AsRef<SetChatDraftMessage>>( &self, set_chat_draft_message: C ) -> Result<Ok>

source

pub async fn set_chat_location<C: AsRef<SetChatLocation>>( &self, set_chat_location: C ) -> Result<Ok>

source

pub async fn set_chat_member_status<C: AsRef<SetChatMemberStatus>>( &self, set_chat_member_status: C ) -> Result<Ok>

source

pub async fn set_chat_message_sender<C: AsRef<SetChatMessageSender>>( &self, set_chat_message_sender: C ) -> Result<Ok>

source

pub async fn set_chat_message_ttl<C: AsRef<SetChatMessageTtl>>( &self, set_chat_message_ttl: C ) -> Result<Ok>

source

pub async fn set_chat_notification_settings<C: AsRef<SetChatNotificationSettings>>( &self, set_chat_notification_settings: C ) -> Result<Ok>

source

pub async fn set_chat_permissions<C: AsRef<SetChatPermissions>>( &self, set_chat_permissions: C ) -> Result<Ok>

source

pub async fn set_chat_photo<C: AsRef<SetChatPhoto>>( &self, set_chat_photo: C ) -> Result<Ok>

source

pub async fn set_chat_slow_mode_delay<C: AsRef<SetChatSlowModeDelay>>( &self, set_chat_slow_mode_delay: C ) -> Result<Ok>

source

pub async fn set_chat_theme<C: AsRef<SetChatTheme>>( &self, set_chat_theme: C ) -> Result<Ok>

source

pub async fn set_chat_title<C: AsRef<SetChatTitle>>( &self, set_chat_title: C ) -> Result<Ok>

source

pub async fn set_commands<C: AsRef<SetCommands>>( &self, set_commands: C ) -> Result<Ok>

source

pub async fn set_custom_language_pack<C: AsRef<SetCustomLanguagePack>>( &self, set_custom_language_pack: C ) -> Result<Ok>

source

pub async fn set_custom_language_pack_string<C: AsRef<SetCustomLanguagePackString>>( &self, set_custom_language_pack_string: C ) -> Result<Ok>

source

pub async fn set_database_encryption_key<C: AsRef<SetDatabaseEncryptionKey>>( &self, set_database_encryption_key: C ) -> Result<Ok>

source

pub async fn set_file_generation_progress<C: AsRef<SetFileGenerationProgress>>( &self, set_file_generation_progress: C ) -> Result<Ok>

source

pub async fn set_game_score<C: AsRef<SetGameScore>>( &self, set_game_score: C ) -> Result<Message>

source

pub async fn set_group_call_participant_is_speaking<C: AsRef<SetGroupCallParticipantIsSpeaking>>( &self, set_group_call_participant_is_speaking: C ) -> Result<Ok>

source

pub async fn set_group_call_participant_volume_level<C: AsRef<SetGroupCallParticipantVolumeLevel>>( &self, set_group_call_participant_volume_level: C ) -> Result<Ok>

source

pub async fn set_group_call_title<C: AsRef<SetGroupCallTitle>>( &self, set_group_call_title: C ) -> Result<Ok>

source

pub async fn set_inactive_session_ttl<C: AsRef<SetInactiveSessionTtl>>( &self, set_inactive_session_ttl: C ) -> Result<Ok>

source

pub async fn set_inline_game_score<C: AsRef<SetInlineGameScore>>( &self, set_inline_game_score: C ) -> Result<Ok>

source

pub async fn set_location<C: AsRef<SetLocation>>( &self, set_location: C ) -> Result<Ok>

source

pub async fn set_log_stream<C: AsRef<SetLogStream>>( &self, set_log_stream: C ) -> Result<Ok>

source

pub async fn set_log_tag_verbosity_level<C: AsRef<SetLogTagVerbosityLevel>>( &self, set_log_tag_verbosity_level: C ) -> Result<Ok>

source

pub async fn set_log_verbosity_level<C: AsRef<SetLogVerbosityLevel>>( &self, set_log_verbosity_level: C ) -> Result<Ok>

source

pub async fn set_name<C: AsRef<SetName>>(&self, set_name: C) -> Result<Ok>

source

pub async fn set_network_type<C: AsRef<SetNetworkType>>( &self, set_network_type: C ) -> Result<Ok>

source

pub async fn set_option<C: AsRef<SetOption>>(&self, set_option: C) -> Result<Ok>

source

pub async fn set_passport_element<C: AsRef<SetPassportElement>>( &self, set_passport_element: C ) -> Result<PassportElement>

source

pub async fn set_passport_element_errors<C: AsRef<SetPassportElementErrors>>( &self, set_passport_element_errors: C ) -> Result<Ok>

source

pub async fn set_password<C: AsRef<SetPassword>>( &self, set_password: C ) -> Result<PasswordState>

source

pub async fn set_pinned_chats<C: AsRef<SetPinnedChats>>( &self, set_pinned_chats: C ) -> Result<Ok>

source

pub async fn set_poll_answer<C: AsRef<SetPollAnswer>>( &self, set_poll_answer: C ) -> Result<Ok>

source

pub async fn set_profile_photo<C: AsRef<SetProfilePhoto>>( &self, set_profile_photo: C ) -> Result<Ok>

source

pub async fn set_recovery_email_address<C: AsRef<SetRecoveryEmailAddress>>( &self, set_recovery_email_address: C ) -> Result<PasswordState>

source

pub async fn set_scope_notification_settings<C: AsRef<SetScopeNotificationSettings>>( &self, set_scope_notification_settings: C ) -> Result<Ok>

source

pub async fn set_sticker_position_in_set<C: AsRef<SetStickerPositionInSet>>( &self, set_sticker_position_in_set: C ) -> Result<Ok>

source

pub async fn set_sticker_set_thumbnail<C: AsRef<SetStickerSetThumbnail>>( &self, set_sticker_set_thumbnail: C ) -> Result<StickerSet>

source

pub async fn set_supergroup_sticker_set<C: AsRef<SetSupergroupStickerSet>>( &self, set_supergroup_sticker_set: C ) -> Result<Ok>

source

pub async fn set_supergroup_username<C: AsRef<SetSupergroupUsername>>( &self, set_supergroup_username: C ) -> Result<Ok>

source

pub async fn set_tdlib_parameters<C: AsRef<SetTdlibParameters>>( &self, set_tdlib_parameters: C ) -> Result<Ok>

source

pub async fn set_user_privacy_setting_rules<C: AsRef<SetUserPrivacySettingRules>>( &self, set_user_privacy_setting_rules: C ) -> Result<Ok>

source

pub async fn set_username<C: AsRef<SetUsername>>( &self, set_username: C ) -> Result<Ok>

source

pub async fn set_video_chat_default_participant<C: AsRef<SetVideoChatDefaultParticipant>>( &self, set_video_chat_default_participant: C ) -> Result<Ok>

source

pub async fn share_phone_number<C: AsRef<SharePhoneNumber>>( &self, share_phone_number: C ) -> Result<Ok>

source

pub async fn start_group_call_recording<C: AsRef<StartGroupCallRecording>>( &self, start_group_call_recording: C ) -> Result<Ok>

source

pub async fn start_group_call_screen_sharing<C: AsRef<StartGroupCallScreenSharing>>( &self, start_group_call_screen_sharing: C ) -> Result<Text>

source

pub async fn start_scheduled_group_call<C: AsRef<StartScheduledGroupCall>>( &self, start_scheduled_group_call: C ) -> Result<Ok>

source

pub async fn stop_poll<C: AsRef<StopPoll>>(&self, stop_poll: C) -> Result<Ok>

source

pub async fn synchronize_language_pack<C: AsRef<SynchronizeLanguagePack>>( &self, synchronize_language_pack: C ) -> Result<Ok>

source

pub async fn terminate_all_other_sessions<C: AsRef<TerminateAllOtherSessions>>( &self, terminate_all_other_sessions: C ) -> Result<Ok>

source

pub async fn terminate_session<C: AsRef<TerminateSession>>( &self, terminate_session: C ) -> Result<Ok>

source

pub async fn test_call_bytes<C: AsRef<TestCallBytes>>( &self, test_call_bytes: C ) -> Result<TestBytes>

source

pub async fn test_call_empty<C: AsRef<TestCallEmpty>>( &self, test_call_empty: C ) -> Result<Ok>

source

pub async fn test_call_string<C: AsRef<TestCallString>>( &self, test_call_string: C ) -> Result<TestString>

source

pub async fn test_call_vector_int<C: AsRef<TestCallVectorInt>>( &self, test_call_vector_int: C ) -> Result<TestVectorInt>

source

pub async fn test_call_vector_int_object<C: AsRef<TestCallVectorIntObject>>( &self, test_call_vector_int_object: C ) -> Result<TestVectorIntObject>

source

pub async fn test_call_vector_string<C: AsRef<TestCallVectorString>>( &self, test_call_vector_string: C ) -> Result<TestVectorString>

source

pub async fn test_call_vector_string_object<C: AsRef<TestCallVectorStringObject>>( &self, test_call_vector_string_object: C ) -> Result<TestVectorStringObject>

source

pub async fn test_get_difference<C: AsRef<TestGetDifference>>( &self, test_get_difference: C ) -> Result<Ok>

source

pub async fn test_network<C: AsRef<TestNetwork>>( &self, test_network: C ) -> Result<Ok>

source

pub async fn test_proxy<C: AsRef<TestProxy>>(&self, test_proxy: C) -> Result<Ok>

source

pub async fn test_return_error<C: AsRef<TestReturnError>>( &self, test_return_error: C ) -> Result<Error>

source

pub async fn test_square_int<C: AsRef<TestSquareInt>>( &self, test_square_int: C ) -> Result<TestInt>

source

pub async fn test_use_update<C: AsRef<TestUseUpdate>>( &self, test_use_update: C ) -> Result<Update>

source

pub async fn toggle_chat_default_disable_notification<C: AsRef<ToggleChatDefaultDisableNotification>>( &self, toggle_chat_default_disable_notification: C ) -> Result<Ok>

source

pub async fn toggle_chat_has_protected_content<C: AsRef<ToggleChatHasProtectedContent>>( &self, toggle_chat_has_protected_content: C ) -> Result<Ok>

source

pub async fn toggle_chat_is_marked_as_unread<C: AsRef<ToggleChatIsMarkedAsUnread>>( &self, toggle_chat_is_marked_as_unread: C ) -> Result<Ok>

source

pub async fn toggle_chat_is_pinned<C: AsRef<ToggleChatIsPinned>>( &self, toggle_chat_is_pinned: C ) -> Result<Ok>

source

pub async fn toggle_group_call_enabled_start_notification<C: AsRef<ToggleGroupCallEnabledStartNotification>>( &self, toggle_group_call_enabled_start_notification: C ) -> Result<Ok>

source

pub async fn toggle_group_call_is_my_video_enabled<C: AsRef<ToggleGroupCallIsMyVideoEnabled>>( &self, toggle_group_call_is_my_video_enabled: C ) -> Result<Ok>

source

pub async fn toggle_group_call_is_my_video_paused<C: AsRef<ToggleGroupCallIsMyVideoPaused>>( &self, toggle_group_call_is_my_video_paused: C ) -> Result<Ok>

source

pub async fn toggle_group_call_mute_new_participants<C: AsRef<ToggleGroupCallMuteNewParticipants>>( &self, toggle_group_call_mute_new_participants: C ) -> Result<Ok>

source

pub async fn toggle_group_call_participant_is_hand_raised<C: AsRef<ToggleGroupCallParticipantIsHandRaised>>( &self, toggle_group_call_participant_is_hand_raised: C ) -> Result<Ok>

source

pub async fn toggle_group_call_participant_is_muted<C: AsRef<ToggleGroupCallParticipantIsMuted>>( &self, toggle_group_call_participant_is_muted: C ) -> Result<Ok>

source

pub async fn toggle_group_call_screen_sharing_is_paused<C: AsRef<ToggleGroupCallScreenSharingIsPaused>>( &self, toggle_group_call_screen_sharing_is_paused: C ) -> Result<Ok>

source

pub async fn toggle_message_sender_is_blocked<C: AsRef<ToggleMessageSenderIsBlocked>>( &self, toggle_message_sender_is_blocked: C ) -> Result<Ok>

source

pub async fn toggle_session_can_accept_calls<C: AsRef<ToggleSessionCanAcceptCalls>>( &self, toggle_session_can_accept_calls: C ) -> Result<Ok>

source

pub async fn toggle_session_can_accept_secret_chats<C: AsRef<ToggleSessionCanAcceptSecretChats>>( &self, toggle_session_can_accept_secret_chats: C ) -> Result<Ok>

source

pub async fn toggle_supergroup_is_all_history_available<C: AsRef<ToggleSupergroupIsAllHistoryAvailable>>( &self, toggle_supergroup_is_all_history_available: C ) -> Result<Ok>

source

pub async fn toggle_supergroup_is_broadcast_group<C: AsRef<ToggleSupergroupIsBroadcastGroup>>( &self, toggle_supergroup_is_broadcast_group: C ) -> Result<Ok>

source

pub async fn toggle_supergroup_sign_messages<C: AsRef<ToggleSupergroupSignMessages>>( &self, toggle_supergroup_sign_messages: C ) -> Result<Ok>

source

pub async fn transfer_chat_ownership<C: AsRef<TransferChatOwnership>>( &self, transfer_chat_ownership: C ) -> Result<Ok>

source

pub async fn unpin_all_chat_messages<C: AsRef<UnpinAllChatMessages>>( &self, unpin_all_chat_messages: C ) -> Result<Ok>

source

pub async fn unpin_chat_message<C: AsRef<UnpinChatMessage>>( &self, unpin_chat_message: C ) -> Result<Ok>

source

pub async fn upgrade_basic_group_chat_to_supergroup_chat<C: AsRef<UpgradeBasicGroupChatToSupergroupChat>>( &self, upgrade_basic_group_chat_to_supergroup_chat: C ) -> Result<Chat>

source

pub async fn upload_file<C: AsRef<UploadFile>>( &self, upload_file: C ) -> Result<File>

source

pub async fn upload_sticker_file<C: AsRef<UploadStickerFile>>( &self, upload_sticker_file: C ) -> Result<File>

source

pub async fn validate_order_info<C: AsRef<ValidateOrderInfo>>( &self, validate_order_info: C ) -> Result<ValidatedOrderInfo>

source

pub async fn view_messages<C: AsRef<ViewMessages>>( &self, view_messages: C ) -> Result<Ok>

source

pub async fn write_generated_file_part<C: AsRef<WriteGeneratedFilePart>>( &self, write_generated_file_part: C ) -> Result<Ok>

source§

impl<S> Client<S>where S: TdLibClient + Clone,

source

pub fn get_tdlib_client(&self) -> S

source§

impl Client<TdJson>

source§

impl<R> Client<R>where R: TdLibClient + Clone,

TDLib high-level API methods. Methods documentation can be found in https://core.telegram.org/tdlib/docs/td__api_8h.html

source

pub fn set_updates_sender( &mut self, updates_sender: Sender<Box<Update>> ) -> Result<()>

source

pub async fn stop(&self) -> Result<Ok>

Just a shortcut for crate::client::client::Client::close, allows you to stop the client.

Trait Implementations§

source§

impl<S> Clone for Client<S>where S: TdLibClient + Clone + Clone,

source§

fn clone(&self) -> Client<S>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<S> Debug for Client<S>where S: TdLibClient + Clone + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<S> !RefUnwindSafe for Client<S>

§

impl<S> Send for Client<S>where S: Send,

§

impl<S> Sync for Client<S>where S: Sync,

§

impl<S> Unpin for Client<S>where S: Unpin,

§

impl<S> !UnwindSafe for Client<S>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.