AsyncTelegramApi

Trait AsyncTelegramApi 

Source
pub trait AsyncTelegramApi
where Self: Sync,
{ type Error;
Show 161 methods // Required methods fn request<'life0, 'life1, 'async_trait, Params, Output>( &'life0 self, method: &'life1 str, params: Option<Params>, ) -> Pin<Box<dyn Future<Output = Result<Output, Self::Error>> + Send + 'async_trait>> where Params: Serialize + Debug + Send + 'async_trait, Output: DeserializeOwned + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn request_with_form_data<'life0, 'life1, 'life2, 'async_trait, Params, Output>( &'life0 self, method: &'life1 str, params: Params, files: Vec<(&'life2 str, PathBuf)>, ) -> Pin<Box<dyn Future<Output = Result<Output, Self::Error>> + Send + 'async_trait>> where Params: Serialize + Debug + Send + 'async_trait, Output: DeserializeOwned + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; // Provided methods async fn get_updates( &self, params: &GetUpdatesParams, ) -> Result<MethodResponse<Vec<Update>>, Self::Error> { ... } async fn send_message( &self, params: &SendMessageParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } async fn set_webhook( &self, params: &SetWebhookParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn delete_webhook( &self, params: &DeleteWebhookParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn get_webhook_info( &self, ) -> Result<MethodResponse<WebhookInfo>, Self::Error> { ... } async fn get_me(&self) -> Result<MethodResponse<User>, Self::Error> { ... } async fn log_out(&self) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn close(&self) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn forward_message( &self, params: &ForwardMessageParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } async fn forward_messages( &self, params: &ForwardMessagesParams, ) -> Result<MethodResponse<Vec<MessageId>>, Self::Error> { ... } async fn copy_message( &self, params: &CopyMessageParams, ) -> Result<MethodResponse<MessageId>, Self::Error> { ... } async fn copy_messages( &self, params: &CopyMessagesParams, ) -> Result<MethodResponse<Vec<MessageId>>, Self::Error> { ... } async fn send_photo( &self, params: &SendPhotoParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } async fn send_audio( &self, params: &SendAudioParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } fn send_media_group<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 SendMediaGroupParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<Vec<Message>>, Self::Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } async fn send_document( &self, params: &SendDocumentParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } async fn send_video( &self, params: &SendVideoParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } async fn send_animation( &self, params: &SendAnimationParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } async fn send_voice( &self, params: &SendVoiceParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } async fn send_video_note( &self, params: &SendVideoNoteParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } async fn send_paid_media( &self, params: &SendPaidMediaParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } async fn send_location( &self, params: &SendLocationParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } async fn edit_message_live_location( &self, params: &EditMessageLiveLocationParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error> { ... } async fn stop_message_live_location( &self, params: &StopMessageLiveLocationParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error> { ... } async fn send_checklist( &self, params: &SendChecklistParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error> { ... } async fn edit_message_checklist( &self, params: &EditMessageChecklistParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error> { ... } async fn send_venue( &self, params: &SendVenueParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } async fn send_contact( &self, params: &SendContactParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } async fn send_poll( &self, params: &SendPollParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } async fn send_dice( &self, params: &SendDiceParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } async fn send_chat_action( &self, params: &SendChatActionParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn set_message_reaction( &self, params: &SetMessageReactionParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn get_user_profile_photos( &self, params: &GetUserProfilePhotosParams, ) -> Result<MethodResponse<UserProfilePhotos>, Self::Error> { ... } async fn set_user_emoji_status( &self, params: &SetUserEmojiStatusParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn get_file( &self, params: &GetFileParams, ) -> Result<MethodResponse<File>, Self::Error> { ... } async fn ban_chat_member( &self, params: &BanChatMemberParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn unban_chat_member( &self, params: &UnbanChatMemberParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn restrict_chat_member( &self, params: &RestrictChatMemberParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn promote_chat_member( &self, params: &PromoteChatMemberParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn set_chat_administrator_custom_title( &self, params: &SetChatAdministratorCustomTitleParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn ban_chat_sender_chat( &self, params: &BanChatSenderChatParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn unban_chat_sender_chat( &self, params: &UnbanChatSenderChatParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn set_chat_permissions( &self, params: &SetChatPermissionsParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn export_chat_invite_link( &self, params: &ExportChatInviteLinkParams, ) -> Result<MethodResponse<String>, Self::Error> { ... } async fn create_chat_invite_link( &self, params: &CreateChatInviteLinkParams, ) -> Result<MethodResponse<ChatInviteLink>, Self::Error> { ... } async fn edit_chat_invite_link( &self, params: &EditChatInviteLinkParams, ) -> Result<MethodResponse<ChatInviteLink>, Self::Error> { ... } async fn create_chat_subscription_invite_link( &self, params: &CreateChatSubscriptionInviteLinkParams, ) -> Result<MethodResponse<ChatInviteLink>, Self::Error> { ... } async fn edit_chat_subscription_invite_link( &self, params: &EditChatSubscriptionInviteLinkParams, ) -> Result<MethodResponse<ChatInviteLink>, Self::Error> { ... } async fn revoke_chat_invite_link( &self, params: &RevokeChatInviteLinkParams, ) -> Result<MethodResponse<ChatInviteLink>, Self::Error> { ... } async fn approve_chat_join_request( &self, params: &ApproveChatJoinRequestParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn decline_chat_join_request( &self, params: &DeclineChatJoinRequestParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } fn set_chat_photo<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 SetChatPhotoParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<bool>, Self::Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } async fn delete_chat_photo( &self, params: &DeleteChatPhotoParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn set_chat_title( &self, params: &SetChatTitleParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn set_chat_description( &self, params: &SetChatDescriptionParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn pin_chat_message( &self, params: &PinChatMessageParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn unpin_chat_message( &self, params: &UnpinChatMessageParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn unpin_all_chat_messages( &self, params: &UnpinAllChatMessagesParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn leave_chat( &self, params: &LeaveChatParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn get_chat( &self, params: &GetChatParams, ) -> Result<MethodResponse<ChatFullInfo>, Self::Error> { ... } async fn get_chat_administrators( &self, params: &GetChatAdministratorsParams, ) -> Result<MethodResponse<Vec<ChatMember>>, Self::Error> { ... } async fn get_chat_member_count( &self, params: &GetChatMemberCountParams, ) -> Result<MethodResponse<u32>, Self::Error> { ... } async fn get_chat_member( &self, params: &GetChatMemberParams, ) -> Result<MethodResponse<ChatMember>, Self::Error> { ... } async fn set_chat_sticker_set( &self, params: &SetChatStickerSetParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn delete_chat_sticker_set( &self, params: &DeleteChatStickerSetParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn get_forum_topic_icon_stickers( &self, ) -> Result<MethodResponse<Vec<Sticker>>, Self::Error> { ... } async fn create_forum_topic( &self, params: &CreateForumTopicParams, ) -> Result<MethodResponse<ForumTopic>, Self::Error> { ... } async fn edit_forum_topic( &self, params: &EditForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn close_forum_topic( &self, params: &CloseForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn reopen_forum_topic( &self, params: &ReopenForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn delete_forum_topic( &self, params: &DeleteForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn unpin_all_forum_topic_messages( &self, params: &UnpinAllForumTopicMessagesParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn edit_general_forum_topic( &self, params: &EditGeneralForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn close_general_forum_topic( &self, params: &CloseGeneralForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn reopen_general_forum_topic( &self, params: &ReopenGeneralForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn hide_general_forum_topic( &self, params: &HideGeneralForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn unhide_general_forum_topic( &self, params: &UnhideGeneralForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn answer_callback_query( &self, params: &AnswerCallbackQueryParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn get_user_chat_boosts( &self, params: &GetUserChatBoostsParams, ) -> Result<MethodResponse<UserChatBoosts>, Self::Error> { ... } async fn get_business_connection( &self, params: &GetBusinessConnectionParams, ) -> Result<MethodResponse<BusinessConnection>, Self::Error> { ... } async fn get_my_commands( &self, params: &GetMyCommandsParams, ) -> Result<MethodResponse<Vec<BotCommand>>, Self::Error> { ... } async fn set_my_commands( &self, params: &SetMyCommandsParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn delete_my_commands( &self, params: &DeleteMyCommandsParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn set_my_name( &self, params: &SetMyNameParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn get_my_name( &self, params: &GetMyNameParams, ) -> Result<MethodResponse<BotName>, Self::Error> { ... } async fn set_my_description( &self, params: &SetMyDescriptionParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn get_my_description( &self, params: &GetMyDescriptionParams, ) -> Result<MethodResponse<BotDescription>, Self::Error> { ... } async fn set_my_short_description( &self, params: &SetMyShortDescriptionParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn get_my_short_description( &self, params: &GetMyShortDescriptionParams, ) -> Result<MethodResponse<BotShortDescription>, Self::Error> { ... } async fn answer_inline_query( &self, params: &AnswerInlineQueryParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn edit_message_text( &self, params: &EditMessageTextParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error> { ... } async fn edit_message_caption( &self, params: &EditMessageCaptionParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error> { ... } fn edit_message_media<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 EditMessageMediaParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<MessageOrBool>, Self::Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } async fn edit_message_reply_markup( &self, params: &EditMessageReplyMarkupParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error> { ... } async fn stop_poll( &self, params: &StopPollParams, ) -> Result<MethodResponse<Poll>, Self::Error> { ... } async fn approve_suggested_post( &self, params: &ApproveSuggestedPostParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn decline_suggested_post( &self, params: &DeclineSuggestedPostParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn delete_message( &self, params: &DeleteMessageParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn delete_messages( &self, params: &DeleteMessagesParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn send_sticker( &self, params: &SendStickerParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } async fn get_sticker_set( &self, params: &GetStickerSetParams, ) -> Result<MethodResponse<StickerSet>, Self::Error> { ... } fn upload_sticker_file<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 UploadStickerFileParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<File>, Self::Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } fn create_new_sticker_set<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 CreateNewStickerSetParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<bool>, Self::Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } async fn get_custom_emoji_stickers( &self, params: &GetCustomEmojiStickersParams, ) -> Result<MethodResponse<Vec<Sticker>>, Self::Error> { ... } fn add_sticker_to_set<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 AddStickerToSetParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<bool>, Self::Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } async fn set_sticker_position_in_set( &self, params: &SetStickerPositionInSetParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn delete_sticker_from_set( &self, params: &DeleteStickerFromSetParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn replace_sticker_in_set( &self, params: &ReplaceStickerInSetParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn set_sticker_emoji_list( &self, params: &SetStickerEmojiListParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn set_sticker_keywords( &self, params: &SetStickerKeywordsParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn set_sticker_mask_position( &self, params: &SetStickerMaskPositionParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn set_sticker_set_title( &self, params: &SetStickerSetTitleParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn set_sticker_set_thumbnail( &self, params: &SetStickerSetThumbnailParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn set_custom_emoji_sticker_set_thumbnail( &self, params: &SetCustomEmojiStickerSetThumbnailParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn delete_sticker_set( &self, params: &DeleteStickerSetParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn get_available_gifts( &self, ) -> Result<MethodResponse<Gifts>, Self::Error> { ... } async fn send_gift( &self, params: &SendGiftParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn gift_premium_subscription( &self, params: &GiftPremiumSubscriptionParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn verify_user( &self, params: &VerifyUserParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn verify_chat( &self, params: &VerifyChatParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn remove_user_verification( &self, params: &RemoveUserVerificationParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn remove_chat_verification( &self, params: &RemoveChatVerificationParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn read_business_message( &self, params: &ReadBusinessMessageParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn delete_business_messages( &self, params: &DeleteBusinessMessagesParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn set_business_account_name( &self, params: &SetBusinessAccountNameParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn set_business_account_username( &self, params: &SetBusinessAccountUsernameParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn set_business_account_bio( &self, params: &SetBusinessAccountBioParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } fn set_business_account_profile_photo<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 SetBusinessAccountProfilePhotoParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<bool>, Self::Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } async fn remove_business_account_profile_photo( &self, params: &RemoveBusinessAccountProfilePhotoParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn set_business_account_gift_settings( &self, params: &SetBusinessAccountGiftSettingsParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn get_business_account_star_balance( &self, params: &GetBusinessAccountStarBalanceParams, ) -> Result<MethodResponse<StarAmount>, Self::Error> { ... } async fn transfer_business_account_stars( &self, params: &TransferBusinessAccountStarsParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn get_business_account_gifts( &self, params: &GetBusinessAccountGiftsParams, ) -> Result<MethodResponse<OwnedGifts>, Self::Error> { ... } async fn convert_gift_to_stars( &self, params: &ConvertGiftToStarsParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn upgrade_gift( &self, params: &UpgradeGiftParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn transfer_gift( &self, params: &TransferGiftParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } fn post_story<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 PostStoryParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<Story>, Self::Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } fn edit_story<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 EditStoryParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<Story>, Self::Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... } async fn delete_story( &self, params: &DeleteStoryParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn send_invoice( &self, params: &SendInvoiceParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } async fn create_invoice_link( &self, params: &CreateInvoiceLinkParams, ) -> Result<MethodResponse<String>, Self::Error> { ... } async fn answer_shipping_query( &self, params: &AnswerShippingQueryParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn answer_pre_checkout_query( &self, params: &AnswerPreCheckoutQueryParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn get_my_star_balance( &self, ) -> Result<MethodResponse<u32>, Self::Error> { ... } async fn get_star_transactions( &self, params: &GetStarTransactionsParams, ) -> Result<MethodResponse<StarTransactions>, Self::Error> { ... } async fn refund_star_payment( &self, params: &RefundStarPaymentParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn edit_user_star_subscription( &self, params: &EditUserStarSubscriptionParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn send_game( &self, params: &SendGameParams, ) -> Result<MethodResponse<Message>, Self::Error> { ... } async fn set_game_score( &self, params: &SetGameScoreParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error> { ... } async fn get_game_high_scores( &self, params: &GetGameHighScoresParams, ) -> Result<MethodResponse<Vec<GameHighScore>>, Self::Error> { ... } async fn set_my_default_administrator_rights( &self, params: &SetMyDefaultAdministratorRightsParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn get_my_default_administrator_rights( &self, params: &GetMyDefaultAdministratorRightsParams, ) -> Result<MethodResponse<ChatAdministratorRights>, Self::Error> { ... } async fn answer_web_app_query( &self, params: &AnswerWebAppQueryParams, ) -> Result<MethodResponse<SentWebAppMessage>, Self::Error> { ... } async fn save_prepared_inline_message( &self, params: &SavePreparedInlineMessageParams, ) -> Result<MethodResponse<PreparedInlineMessage>, Self::Error> { ... } async fn set_chat_menu_button( &self, params: &SetChatMenuButtonParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn get_chat_menu_button( &self, params: &GetChatMenuButtonParams, ) -> Result<MethodResponse<MenuButton>, Self::Error> { ... } async fn unpin_all_general_forum_topic_messages( &self, params: &UnpinAllGeneralForumTopicMessagesParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } async fn set_passport_data_errors( &self, params: &SetPassportDataErrorsParams, ) -> Result<MethodResponse<bool>, Self::Error> { ... } fn request_with_possible_form_data<'life0, 'life1, 'life2, 'async_trait, Params, Output>( &'life0 self, method_name: &'life1 str, params: Params, files: Vec<(&'life2 str, PathBuf)>, ) -> Pin<Box<dyn Future<Output = Result<Output, Self::Error>> + Send + 'async_trait>> where Params: Serialize + Debug + Send + 'async_trait, Output: DeserializeOwned + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait { ... }
}
Available on crate feature trait-async only.

Required Associated Types§

Required Methods§

Source

fn request<'life0, 'life1, 'async_trait, Params, Output>( &'life0 self, method: &'life1 str, params: Option<Params>, ) -> Pin<Box<dyn Future<Output = Result<Output, Self::Error>> + Send + 'async_trait>>
where Params: Serialize + Debug + Send + 'async_trait, Output: DeserializeOwned + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn request_with_form_data<'life0, 'life1, 'life2, 'async_trait, Params, Output>( &'life0 self, method: &'life1 str, params: Params, files: Vec<(&'life2 str, PathBuf)>, ) -> Pin<Box<dyn Future<Output = Result<Output, Self::Error>> + Send + 'async_trait>>
where Params: Serialize + Debug + Send + 'async_trait, Output: DeserializeOwned + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Provided Methods§

Source

async fn get_updates( &self, params: &GetUpdatesParams, ) -> Result<MethodResponse<Vec<Update>>, Self::Error>

Call the getUpdates method.

See https://core.telegram.org/bots/api#getupdates.

Source

async fn send_message( &self, params: &SendMessageParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the sendMessage method.

See https://core.telegram.org/bots/api#sendmessage.

Source

async fn set_webhook( &self, params: &SetWebhookParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setWebhook method.

See https://core.telegram.org/bots/api#setwebhook.

Source

async fn delete_webhook( &self, params: &DeleteWebhookParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the deleteWebhook method.

See https://core.telegram.org/bots/api#deletewebhook.

Source

async fn get_webhook_info( &self, ) -> Result<MethodResponse<WebhookInfo>, Self::Error>

Call the getWebhookInfo method.

See https://core.telegram.org/bots/api#getwebhookinfo.

Source

async fn get_me(&self) -> Result<MethodResponse<User>, Self::Error>

Call the getMe method.

See https://core.telegram.org/bots/api#getme.

Source

async fn log_out(&self) -> Result<MethodResponse<bool>, Self::Error>

Call the logOut method.

See https://core.telegram.org/bots/api#logout.

Source

async fn close(&self) -> Result<MethodResponse<bool>, Self::Error>

Call the close method.

See https://core.telegram.org/bots/api#close.

Source

async fn forward_message( &self, params: &ForwardMessageParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the forwardMessage method.

See https://core.telegram.org/bots/api#forwardmessage.

Source

async fn forward_messages( &self, params: &ForwardMessagesParams, ) -> Result<MethodResponse<Vec<MessageId>>, Self::Error>

Call the forwardMessages method.

See https://core.telegram.org/bots/api#forwardmessages.

Source

async fn copy_message( &self, params: &CopyMessageParams, ) -> Result<MethodResponse<MessageId>, Self::Error>

Call the copyMessage method.

See https://core.telegram.org/bots/api#copymessage.

Source

async fn copy_messages( &self, params: &CopyMessagesParams, ) -> Result<MethodResponse<Vec<MessageId>>, Self::Error>

Call the copyMessages method.

See https://core.telegram.org/bots/api#copymessages.

Source

async fn send_photo( &self, params: &SendPhotoParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the sendPhoto method.

See https://core.telegram.org/bots/api#sendphoto.

Source

async fn send_audio( &self, params: &SendAudioParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the sendAudio method.

See https://core.telegram.org/bots/api#sendaudio.

Source

fn send_media_group<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 SendMediaGroupParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<Vec<Message>>, Self::Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

async fn send_document( &self, params: &SendDocumentParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the sendDocument method.

See https://core.telegram.org/bots/api#senddocument.

Source

async fn send_video( &self, params: &SendVideoParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the sendVideo method.

See https://core.telegram.org/bots/api#sendvideo.

Source

async fn send_animation( &self, params: &SendAnimationParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the sendAnimation method.

See https://core.telegram.org/bots/api#sendanimation.

Source

async fn send_voice( &self, params: &SendVoiceParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the sendVoice method.

See https://core.telegram.org/bots/api#sendvoice.

Source

async fn send_video_note( &self, params: &SendVideoNoteParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the sendVideoNote method.

See https://core.telegram.org/bots/api#sendvideonote.

Source

async fn send_paid_media( &self, params: &SendPaidMediaParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the sendPaidMedia method.

See https://core.telegram.org/bots/api#sendpaidmedia.

Source

async fn send_location( &self, params: &SendLocationParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the sendLocation method.

See https://core.telegram.org/bots/api#sendlocation.

Source

async fn edit_message_live_location( &self, params: &EditMessageLiveLocationParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error>

Call the editMessageLiveLocation method.

See https://core.telegram.org/bots/api#editmessagelivelocation.

Source

async fn stop_message_live_location( &self, params: &StopMessageLiveLocationParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error>

Call the stopMessageLiveLocation method.

See https://core.telegram.org/bots/api#stopmessagelivelocation.

Source

async fn send_checklist( &self, params: &SendChecklistParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error>

Call the sendChecklist method.

See https://core.telegram.org/bots/api#sendchecklist.

Source

async fn edit_message_checklist( &self, params: &EditMessageChecklistParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error>

Call the editMessageChecklist method.

See https://core.telegram.org/bots/api#editmessagechecklist.

Source

async fn send_venue( &self, params: &SendVenueParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the sendVenue method.

See https://core.telegram.org/bots/api#sendvenue.

Source

async fn send_contact( &self, params: &SendContactParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the sendContact method.

See https://core.telegram.org/bots/api#sendcontact.

Source

async fn send_poll( &self, params: &SendPollParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the sendPoll method.

See https://core.telegram.org/bots/api#sendpoll.

Source

async fn send_dice( &self, params: &SendDiceParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the sendDice method.

See https://core.telegram.org/bots/api#senddice.

Source

async fn send_chat_action( &self, params: &SendChatActionParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the sendChatAction method.

See https://core.telegram.org/bots/api#sendchataction.

Source

async fn set_message_reaction( &self, params: &SetMessageReactionParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setMessageReaction method.

See https://core.telegram.org/bots/api#setmessagereaction.

Source

async fn get_user_profile_photos( &self, params: &GetUserProfilePhotosParams, ) -> Result<MethodResponse<UserProfilePhotos>, Self::Error>

Call the getUserProfilePhotos method.

See https://core.telegram.org/bots/api#getuserprofilephotos.

Source

async fn set_user_emoji_status( &self, params: &SetUserEmojiStatusParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setUserEmojiStatus method.

See https://core.telegram.org/bots/api#setuseremojistatus.

Source

async fn get_file( &self, params: &GetFileParams, ) -> Result<MethodResponse<File>, Self::Error>

Call the getFile method.

See https://core.telegram.org/bots/api#getfile.

Source

async fn ban_chat_member( &self, params: &BanChatMemberParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the banChatMember method.

See https://core.telegram.org/bots/api#banchatmember.

Source

async fn unban_chat_member( &self, params: &UnbanChatMemberParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the unbanChatMember method.

See https://core.telegram.org/bots/api#unbanchatmember.

Source

async fn restrict_chat_member( &self, params: &RestrictChatMemberParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the restrictChatMember method.

See https://core.telegram.org/bots/api#restrictchatmember.

Source

async fn promote_chat_member( &self, params: &PromoteChatMemberParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the promoteChatMember method.

See https://core.telegram.org/bots/api#promotechatmember.

Source

async fn set_chat_administrator_custom_title( &self, params: &SetChatAdministratorCustomTitleParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setChatAdministratorCustomTitle method.

See https://core.telegram.org/bots/api#setchatadministratorcustomtitle.

Source

async fn ban_chat_sender_chat( &self, params: &BanChatSenderChatParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the banChatSenderChat method.

See https://core.telegram.org/bots/api#banchatsenderchat.

Source

async fn unban_chat_sender_chat( &self, params: &UnbanChatSenderChatParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the unbanChatSenderChat method.

See https://core.telegram.org/bots/api#unbanchatsenderchat.

Source

async fn set_chat_permissions( &self, params: &SetChatPermissionsParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setChatPermissions method.

See https://core.telegram.org/bots/api#setchatpermissions.

Call the exportChatInviteLink method.

See https://core.telegram.org/bots/api#exportchatinvitelink.

Call the createChatInviteLink method.

See https://core.telegram.org/bots/api#createchatinvitelink.

Call the editChatInviteLink method.

See https://core.telegram.org/bots/api#editchatinvitelink.

Call the createChatSubscriptionInviteLink method.

See https://core.telegram.org/bots/api#createchatsubscriptioninvitelink.

Call the editChatSubscriptionInviteLink method.

See https://core.telegram.org/bots/api#editchatsubscriptioninvitelink.

Call the revokeChatInviteLink method.

See https://core.telegram.org/bots/api#revokechatinvitelink.

Source

async fn approve_chat_join_request( &self, params: &ApproveChatJoinRequestParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the approveChatJoinRequest method.

See https://core.telegram.org/bots/api#approvechatjoinrequest.

Source

async fn decline_chat_join_request( &self, params: &DeclineChatJoinRequestParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the declineChatJoinRequest method.

See https://core.telegram.org/bots/api#declinechatjoinrequest.

Source

fn set_chat_photo<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 SetChatPhotoParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<bool>, Self::Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

async fn delete_chat_photo( &self, params: &DeleteChatPhotoParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the deleteChatPhoto method.

See https://core.telegram.org/bots/api#deletechatphoto.

Source

async fn set_chat_title( &self, params: &SetChatTitleParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setChatTitle method.

See https://core.telegram.org/bots/api#setchattitle.

Source

async fn set_chat_description( &self, params: &SetChatDescriptionParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setChatDescription method.

See https://core.telegram.org/bots/api#setchatdescription.

Source

async fn pin_chat_message( &self, params: &PinChatMessageParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the pinChatMessage method.

See https://core.telegram.org/bots/api#pinchatmessage.

Source

async fn unpin_chat_message( &self, params: &UnpinChatMessageParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the unpinChatMessage method.

See https://core.telegram.org/bots/api#unpinchatmessage.

Source

async fn unpin_all_chat_messages( &self, params: &UnpinAllChatMessagesParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the unpinAllChatMessages method.

See https://core.telegram.org/bots/api#unpinallchatmessages.

Source

async fn leave_chat( &self, params: &LeaveChatParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the leaveChat method.

See https://core.telegram.org/bots/api#leavechat.

Source

async fn get_chat( &self, params: &GetChatParams, ) -> Result<MethodResponse<ChatFullInfo>, Self::Error>

Call the getChat method.

See https://core.telegram.org/bots/api#getchat.

Source

async fn get_chat_administrators( &self, params: &GetChatAdministratorsParams, ) -> Result<MethodResponse<Vec<ChatMember>>, Self::Error>

Call the getChatAdministrators method.

See https://core.telegram.org/bots/api#getchatadministrators.

Source

async fn get_chat_member_count( &self, params: &GetChatMemberCountParams, ) -> Result<MethodResponse<u32>, Self::Error>

Call the getChatMemberCount method.

See https://core.telegram.org/bots/api#getchatmembercount.

Source

async fn get_chat_member( &self, params: &GetChatMemberParams, ) -> Result<MethodResponse<ChatMember>, Self::Error>

Call the getChatMember method.

See https://core.telegram.org/bots/api#getchatmember.

Source

async fn set_chat_sticker_set( &self, params: &SetChatStickerSetParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setChatStickerSet method.

See https://core.telegram.org/bots/api#setchatstickerset.

Source

async fn delete_chat_sticker_set( &self, params: &DeleteChatStickerSetParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the deleteChatStickerSet method.

See https://core.telegram.org/bots/api#deletechatstickerset.

Source

async fn get_forum_topic_icon_stickers( &self, ) -> Result<MethodResponse<Vec<Sticker>>, Self::Error>

Call the getForumTopicIconStickers method.

See https://core.telegram.org/bots/api#getforumtopiciconstickers.

Source

async fn create_forum_topic( &self, params: &CreateForumTopicParams, ) -> Result<MethodResponse<ForumTopic>, Self::Error>

Call the createForumTopic method.

See https://core.telegram.org/bots/api#createforumtopic.

Source

async fn edit_forum_topic( &self, params: &EditForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the editForumTopic method.

See https://core.telegram.org/bots/api#editforumtopic.

Source

async fn close_forum_topic( &self, params: &CloseForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the closeForumTopic method.

See https://core.telegram.org/bots/api#closeforumtopic.

Source

async fn reopen_forum_topic( &self, params: &ReopenForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the reopenForumTopic method.

See https://core.telegram.org/bots/api#reopenforumtopic.

Source

async fn delete_forum_topic( &self, params: &DeleteForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the deleteForumTopic method.

See https://core.telegram.org/bots/api#deleteforumtopic.

Source

async fn unpin_all_forum_topic_messages( &self, params: &UnpinAllForumTopicMessagesParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the unpinAllForumTopicMessages method.

See https://core.telegram.org/bots/api#unpinallforumtopicmessages.

Source

async fn edit_general_forum_topic( &self, params: &EditGeneralForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the editGeneralForumTopic method.

See https://core.telegram.org/bots/api#editgeneralforumtopic.

Source

async fn close_general_forum_topic( &self, params: &CloseGeneralForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the closeGeneralForumTopic method.

See https://core.telegram.org/bots/api#closegeneralforumtopic.

Source

async fn reopen_general_forum_topic( &self, params: &ReopenGeneralForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the reopenGeneralForumTopic method.

See https://core.telegram.org/bots/api#reopengeneralforumtopic.

Source

async fn hide_general_forum_topic( &self, params: &HideGeneralForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the hideGeneralForumTopic method.

See https://core.telegram.org/bots/api#hidegeneralforumtopic.

Source

async fn unhide_general_forum_topic( &self, params: &UnhideGeneralForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the unhideGeneralForumTopic method.

See https://core.telegram.org/bots/api#unhidegeneralforumtopic.

Source

async fn answer_callback_query( &self, params: &AnswerCallbackQueryParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the answerCallbackQuery method.

See https://core.telegram.org/bots/api#answercallbackquery.

Source

async fn get_user_chat_boosts( &self, params: &GetUserChatBoostsParams, ) -> Result<MethodResponse<UserChatBoosts>, Self::Error>

Call the getUserChatBoosts method.

See https://core.telegram.org/bots/api#getuserchatboosts.

Source

async fn get_business_connection( &self, params: &GetBusinessConnectionParams, ) -> Result<MethodResponse<BusinessConnection>, Self::Error>

Call the getBusinessConnection method.

See https://core.telegram.org/bots/api#getbusinessconnection.

Source

async fn get_my_commands( &self, params: &GetMyCommandsParams, ) -> Result<MethodResponse<Vec<BotCommand>>, Self::Error>

Call the getMyCommands method.

See https://core.telegram.org/bots/api#getmycommands.

Source

async fn set_my_commands( &self, params: &SetMyCommandsParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setMyCommands method.

See https://core.telegram.org/bots/api#setmycommands.

Source

async fn delete_my_commands( &self, params: &DeleteMyCommandsParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the deleteMyCommands method.

See https://core.telegram.org/bots/api#deletemycommands.

Source

async fn set_my_name( &self, params: &SetMyNameParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setMyName method.

See https://core.telegram.org/bots/api#setmyname.

Source

async fn get_my_name( &self, params: &GetMyNameParams, ) -> Result<MethodResponse<BotName>, Self::Error>

Call the getMyName method.

See https://core.telegram.org/bots/api#getmyname.

Source

async fn set_my_description( &self, params: &SetMyDescriptionParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setMyDescription method.

See https://core.telegram.org/bots/api#setmydescription.

Source

async fn get_my_description( &self, params: &GetMyDescriptionParams, ) -> Result<MethodResponse<BotDescription>, Self::Error>

Call the getMyDescription method.

See https://core.telegram.org/bots/api#getmydescription.

Source

async fn set_my_short_description( &self, params: &SetMyShortDescriptionParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setMyShortDescription method.

See https://core.telegram.org/bots/api#setmyshortdescription.

Source

async fn get_my_short_description( &self, params: &GetMyShortDescriptionParams, ) -> Result<MethodResponse<BotShortDescription>, Self::Error>

Call the getMyShortDescription method.

See https://core.telegram.org/bots/api#getmyshortdescription.

Source

async fn answer_inline_query( &self, params: &AnswerInlineQueryParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the answerInlineQuery method.

See https://core.telegram.org/bots/api#answerinlinequery.

Source

async fn edit_message_text( &self, params: &EditMessageTextParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error>

Call the editMessageText method.

See https://core.telegram.org/bots/api#editmessagetext.

Source

async fn edit_message_caption( &self, params: &EditMessageCaptionParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error>

Call the editMessageCaption method.

See https://core.telegram.org/bots/api#editmessagecaption.

Source

fn edit_message_media<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 EditMessageMediaParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<MessageOrBool>, Self::Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

async fn edit_message_reply_markup( &self, params: &EditMessageReplyMarkupParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error>

Call the editMessageReplyMarkup method.

See https://core.telegram.org/bots/api#editmessagereplymarkup.

Source

async fn stop_poll( &self, params: &StopPollParams, ) -> Result<MethodResponse<Poll>, Self::Error>

Call the stopPoll method.

See https://core.telegram.org/bots/api#stoppoll.

Source

async fn approve_suggested_post( &self, params: &ApproveSuggestedPostParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the approveSuggestedPost method.

See https://core.telegram.org/bots/api#approvesuggestedpost.

Source

async fn decline_suggested_post( &self, params: &DeclineSuggestedPostParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the declineSuggestedPost method.

See https://core.telegram.org/bots/api#declinesuggestedpost.

Source

async fn delete_message( &self, params: &DeleteMessageParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the deleteMessage method.

See https://core.telegram.org/bots/api#deletemessage.

Source

async fn delete_messages( &self, params: &DeleteMessagesParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the deleteMessages method.

See https://core.telegram.org/bots/api#deletemessages.

Source

async fn send_sticker( &self, params: &SendStickerParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the sendSticker method.

See https://core.telegram.org/bots/api#sendsticker.

Source

async fn get_sticker_set( &self, params: &GetStickerSetParams, ) -> Result<MethodResponse<StickerSet>, Self::Error>

Call the getStickerSet method.

See https://core.telegram.org/bots/api#getstickerset.

Source

fn upload_sticker_file<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 UploadStickerFileParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<File>, Self::Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn create_new_sticker_set<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 CreateNewStickerSetParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<bool>, Self::Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

async fn get_custom_emoji_stickers( &self, params: &GetCustomEmojiStickersParams, ) -> Result<MethodResponse<Vec<Sticker>>, Self::Error>

Call the getCustomEmojiStickers method.

See https://core.telegram.org/bots/api#getcustomemojistickers.

Source

fn add_sticker_to_set<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 AddStickerToSetParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<bool>, Self::Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

async fn set_sticker_position_in_set( &self, params: &SetStickerPositionInSetParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setStickerPositionInSet method.

See https://core.telegram.org/bots/api#setstickerpositioninset.

Source

async fn delete_sticker_from_set( &self, params: &DeleteStickerFromSetParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the deleteStickerFromSet method.

See https://core.telegram.org/bots/api#deletestickerfromset.

Source

async fn replace_sticker_in_set( &self, params: &ReplaceStickerInSetParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the replaceStickerInSet method.

See https://core.telegram.org/bots/api#replacestickerinset.

Source

async fn set_sticker_emoji_list( &self, params: &SetStickerEmojiListParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setStickerEmojiList method.

See https://core.telegram.org/bots/api#setstickeremojilist.

Source

async fn set_sticker_keywords( &self, params: &SetStickerKeywordsParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setStickerKeywords method.

See https://core.telegram.org/bots/api#setstickerkeywords.

Source

async fn set_sticker_mask_position( &self, params: &SetStickerMaskPositionParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setStickerMaskPosition method.

See https://core.telegram.org/bots/api#setstickermaskposition.

Source

async fn set_sticker_set_title( &self, params: &SetStickerSetTitleParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setStickerSetTitle method.

See https://core.telegram.org/bots/api#setstickersettitle.

Source

async fn set_sticker_set_thumbnail( &self, params: &SetStickerSetThumbnailParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setStickerSetThumbnail method.

See https://core.telegram.org/bots/api#setstickersetthumbnail.

Source

async fn set_custom_emoji_sticker_set_thumbnail( &self, params: &SetCustomEmojiStickerSetThumbnailParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setCustomEmojiStickerSetThumbnail method.

See https://core.telegram.org/bots/api#setcustomemojistickersetthumbnail.

Source

async fn delete_sticker_set( &self, params: &DeleteStickerSetParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the deleteStickerSet method.

See https://core.telegram.org/bots/api#deletestickerset.

Source

async fn get_available_gifts( &self, ) -> Result<MethodResponse<Gifts>, Self::Error>

Call the getAvailableGifts method.

See https://core.telegram.org/bots/api#getavailablegifts.

Source

async fn send_gift( &self, params: &SendGiftParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the sendGift method.

See https://core.telegram.org/bots/api#sendgift.

Source

async fn gift_premium_subscription( &self, params: &GiftPremiumSubscriptionParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the giftPremiumSubscription method.

See https://core.telegram.org/bots/api#giftpremiumsubscription.

Source

async fn verify_user( &self, params: &VerifyUserParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the verifyUser method.

See https://core.telegram.org/bots/api#verifyuser.

Source

async fn verify_chat( &self, params: &VerifyChatParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the verifyChat method.

See https://core.telegram.org/bots/api#verifychat.

Source

async fn remove_user_verification( &self, params: &RemoveUserVerificationParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the removeUserVerification method.

See https://core.telegram.org/bots/api#removeuserverification.

Source

async fn remove_chat_verification( &self, params: &RemoveChatVerificationParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the removeChatVerification method.

See https://core.telegram.org/bots/api#removechatverification.

Source

async fn read_business_message( &self, params: &ReadBusinessMessageParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the readBusinessMessage method.

See https://core.telegram.org/bots/api#readbusinessmessage.

Source

async fn delete_business_messages( &self, params: &DeleteBusinessMessagesParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the deleteBusinessMessages method.

See https://core.telegram.org/bots/api#deletebusinessmessages.

Source

async fn set_business_account_name( &self, params: &SetBusinessAccountNameParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setBusinessAccountName method.

See https://core.telegram.org/bots/api#setbusinessaccountname.

Source

async fn set_business_account_username( &self, params: &SetBusinessAccountUsernameParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setBusinessAccountUsername method.

See https://core.telegram.org/bots/api#setbusinessaccountusername.

Source

async fn set_business_account_bio( &self, params: &SetBusinessAccountBioParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setBusinessAccountBio method.

See https://core.telegram.org/bots/api#setbusinessaccountbio.

Source

fn set_business_account_profile_photo<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 SetBusinessAccountProfilePhotoParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<bool>, Self::Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

async fn remove_business_account_profile_photo( &self, params: &RemoveBusinessAccountProfilePhotoParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the removeBusinessAccountProfilePhoto method.

See https://core.telegram.org/bots/api#removebusinessaccountprofilephoto.

Source

async fn set_business_account_gift_settings( &self, params: &SetBusinessAccountGiftSettingsParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setBusinessAccountGiftSettings method.

See https://core.telegram.org/bots/api#setbusinessaccountgiftsettings.

Source

async fn get_business_account_star_balance( &self, params: &GetBusinessAccountStarBalanceParams, ) -> Result<MethodResponse<StarAmount>, Self::Error>

Call the getBusinessAccountStarBalance method.

See https://core.telegram.org/bots/api#getbusinessaccountstarbalance.

Source

async fn transfer_business_account_stars( &self, params: &TransferBusinessAccountStarsParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the transferBusinessAccountStars method.

See https://core.telegram.org/bots/api#transferbusinessaccountstars.

Source

async fn get_business_account_gifts( &self, params: &GetBusinessAccountGiftsParams, ) -> Result<MethodResponse<OwnedGifts>, Self::Error>

Call the getBusinessAccountGifts method.

See https://core.telegram.org/bots/api#getbusinessaccountgifts.

Source

async fn convert_gift_to_stars( &self, params: &ConvertGiftToStarsParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the convertGiftToStars method.

See https://core.telegram.org/bots/api#convertgifttostars.

Source

async fn upgrade_gift( &self, params: &UpgradeGiftParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the upgradeGift method.

See https://core.telegram.org/bots/api#upgradegift.

Source

async fn transfer_gift( &self, params: &TransferGiftParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the transferGift method.

See https://core.telegram.org/bots/api#transfergift.

Source

fn post_story<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 PostStoryParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<Story>, Self::Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn edit_story<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 EditStoryParams, ) -> Pin<Box<dyn Future<Output = Result<MethodResponse<Story>, Self::Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

async fn delete_story( &self, params: &DeleteStoryParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the deleteStory method.

See https://core.telegram.org/bots/api#deletestory.

Source

async fn send_invoice( &self, params: &SendInvoiceParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the sendInvoice method.

See https://core.telegram.org/bots/api#sendinvoice.

Call the createInvoiceLink method.

See https://core.telegram.org/bots/api#createinvoicelink.

Source

async fn answer_shipping_query( &self, params: &AnswerShippingQueryParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the answerShippingQuery method.

See https://core.telegram.org/bots/api#answershippingquery.

Source

async fn answer_pre_checkout_query( &self, params: &AnswerPreCheckoutQueryParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the answerPreCheckoutQuery method.

See https://core.telegram.org/bots/api#answerprecheckoutquery.

Source

async fn get_my_star_balance(&self) -> Result<MethodResponse<u32>, Self::Error>

Call the getMyStarBalance method.

See https://core.telegram.org/bots/api#getmystarbalance.

Source

async fn get_star_transactions( &self, params: &GetStarTransactionsParams, ) -> Result<MethodResponse<StarTransactions>, Self::Error>

Call the getStarTransactions method.

See https://core.telegram.org/bots/api#getstartransactions.

Source

async fn refund_star_payment( &self, params: &RefundStarPaymentParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the refundStarPayment method.

See https://core.telegram.org/bots/api#refundstarpayment.

Source

async fn edit_user_star_subscription( &self, params: &EditUserStarSubscriptionParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the editUserStarSubscription method.

See https://core.telegram.org/bots/api#edituserstarsubscription.

Source

async fn send_game( &self, params: &SendGameParams, ) -> Result<MethodResponse<Message>, Self::Error>

Call the sendGame method.

See https://core.telegram.org/bots/api#sendgame.

Source

async fn set_game_score( &self, params: &SetGameScoreParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error>

Call the setGameScore method.

See https://core.telegram.org/bots/api#setgamescore.

Source

async fn get_game_high_scores( &self, params: &GetGameHighScoresParams, ) -> Result<MethodResponse<Vec<GameHighScore>>, Self::Error>

Call the getGameHighScores method.

See https://core.telegram.org/bots/api#getgamehighscores.

Source

async fn set_my_default_administrator_rights( &self, params: &SetMyDefaultAdministratorRightsParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setMyDefaultAdministratorRights method.

See https://core.telegram.org/bots/api#setmydefaultadministratorrights.

Source

async fn get_my_default_administrator_rights( &self, params: &GetMyDefaultAdministratorRightsParams, ) -> Result<MethodResponse<ChatAdministratorRights>, Self::Error>

Call the getMyDefaultAdministratorRights method.

See https://core.telegram.org/bots/api#getmydefaultadministratorrights.

Source

async fn answer_web_app_query( &self, params: &AnswerWebAppQueryParams, ) -> Result<MethodResponse<SentWebAppMessage>, Self::Error>

Call the answerWebAppQuery method.

See https://core.telegram.org/bots/api#answerwebappquery.

Source

async fn save_prepared_inline_message( &self, params: &SavePreparedInlineMessageParams, ) -> Result<MethodResponse<PreparedInlineMessage>, Self::Error>

Call the savePreparedInlineMessage method.

See https://core.telegram.org/bots/api#savepreparedinlinemessage.

Source

async fn set_chat_menu_button( &self, params: &SetChatMenuButtonParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setChatMenuButton method.

See https://core.telegram.org/bots/api#setchatmenubutton.

Source

async fn get_chat_menu_button( &self, params: &GetChatMenuButtonParams, ) -> Result<MethodResponse<MenuButton>, Self::Error>

Call the getChatMenuButton method.

See https://core.telegram.org/bots/api#getchatmenubutton.

Source

async fn unpin_all_general_forum_topic_messages( &self, params: &UnpinAllGeneralForumTopicMessagesParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the unpinAllGeneralForumTopicMessages method.

See https://core.telegram.org/bots/api#unpinallgeneralforumtopicmessages.

Source

async fn set_passport_data_errors( &self, params: &SetPassportDataErrorsParams, ) -> Result<MethodResponse<bool>, Self::Error>

Call the setPassportDataErrors method.

See https://core.telegram.org/bots/api#setpassportdataerrors.

Source

fn request_with_possible_form_data<'life0, 'life1, 'life2, 'async_trait, Params, Output>( &'life0 self, method_name: &'life1 str, params: Params, files: Vec<(&'life2 str, PathBuf)>, ) -> Pin<Box<dyn Future<Output = Result<Output, Self::Error>> + Send + 'async_trait>>
where Params: Serialize + Debug + Send + 'async_trait, Output: DeserializeOwned + 'async_trait, Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl AsyncTelegramApi for Bot

Available on crate feature client-reqwest only.