pub trait AsyncTelegramApiwhere
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 { ... }
}trait-async only.Required Associated Types§
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§
Sourceasync fn get_updates(
&self,
params: &GetUpdatesParams,
) -> Result<MethodResponse<Vec<Update>>, Self::Error>
async fn get_updates( &self, params: &GetUpdatesParams, ) -> Result<MethodResponse<Vec<Update>>, Self::Error>
Call the getUpdates method.
Sourceasync fn send_message(
&self,
params: &SendMessageParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn send_message( &self, params: &SendMessageParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the sendMessage method.
Sourceasync fn set_webhook(
&self,
params: &SetWebhookParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn set_webhook( &self, params: &SetWebhookParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the setWebhook method.
Sourceasync fn delete_webhook(
&self,
params: &DeleteWebhookParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn delete_webhook( &self, params: &DeleteWebhookParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the deleteWebhook method.
Sourceasync fn get_webhook_info(
&self,
) -> Result<MethodResponse<WebhookInfo>, Self::Error>
async fn get_webhook_info( &self, ) -> Result<MethodResponse<WebhookInfo>, Self::Error>
Call the getWebhookInfo method.
Sourceasync fn forward_message(
&self,
params: &ForwardMessageParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn forward_message( &self, params: &ForwardMessageParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the forwardMessage method.
Sourceasync fn forward_messages(
&self,
params: &ForwardMessagesParams,
) -> Result<MethodResponse<Vec<MessageId>>, Self::Error>
async fn forward_messages( &self, params: &ForwardMessagesParams, ) -> Result<MethodResponse<Vec<MessageId>>, Self::Error>
Call the forwardMessages method.
Sourceasync fn copy_message(
&self,
params: &CopyMessageParams,
) -> Result<MethodResponse<MessageId>, Self::Error>
async fn copy_message( &self, params: &CopyMessageParams, ) -> Result<MethodResponse<MessageId>, Self::Error>
Call the copyMessage method.
Sourceasync fn copy_messages(
&self,
params: &CopyMessagesParams,
) -> Result<MethodResponse<Vec<MessageId>>, Self::Error>
async fn copy_messages( &self, params: &CopyMessagesParams, ) -> Result<MethodResponse<Vec<MessageId>>, Self::Error>
Call the copyMessages method.
Sourceasync fn send_photo(
&self,
params: &SendPhotoParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn send_photo( &self, params: &SendPhotoParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the sendPhoto method.
Sourceasync fn send_audio(
&self,
params: &SendAudioParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn send_audio( &self, params: &SendAudioParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the sendAudio method.
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,
Sourceasync fn send_document(
&self,
params: &SendDocumentParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn send_document( &self, params: &SendDocumentParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the sendDocument method.
Sourceasync fn send_video(
&self,
params: &SendVideoParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn send_video( &self, params: &SendVideoParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the sendVideo method.
Sourceasync fn send_animation(
&self,
params: &SendAnimationParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn send_animation( &self, params: &SendAnimationParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the sendAnimation method.
Sourceasync fn send_voice(
&self,
params: &SendVoiceParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn send_voice( &self, params: &SendVoiceParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the sendVoice method.
Sourceasync fn send_video_note(
&self,
params: &SendVideoNoteParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn send_video_note( &self, params: &SendVideoNoteParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the sendVideoNote method.
Sourceasync fn send_paid_media(
&self,
params: &SendPaidMediaParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn send_paid_media( &self, params: &SendPaidMediaParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the sendPaidMedia method.
Sourceasync fn send_location(
&self,
params: &SendLocationParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn send_location( &self, params: &SendLocationParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the sendLocation method.
Sourceasync fn edit_message_live_location(
&self,
params: &EditMessageLiveLocationParams,
) -> Result<MethodResponse<MessageOrBool>, Self::Error>
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.
Sourceasync fn stop_message_live_location(
&self,
params: &StopMessageLiveLocationParams,
) -> Result<MethodResponse<MessageOrBool>, Self::Error>
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.
Sourceasync fn send_checklist(
&self,
params: &SendChecklistParams,
) -> Result<MethodResponse<MessageOrBool>, Self::Error>
async fn send_checklist( &self, params: &SendChecklistParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error>
Call the sendChecklist method.
Sourceasync fn edit_message_checklist(
&self,
params: &EditMessageChecklistParams,
) -> Result<MethodResponse<MessageOrBool>, Self::Error>
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.
Sourceasync fn send_venue(
&self,
params: &SendVenueParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn send_venue( &self, params: &SendVenueParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the sendVenue method.
Sourceasync fn send_contact(
&self,
params: &SendContactParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn send_contact( &self, params: &SendContactParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the sendContact method.
Sourceasync fn send_poll(
&self,
params: &SendPollParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn send_poll( &self, params: &SendPollParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the sendPoll method.
Sourceasync fn send_dice(
&self,
params: &SendDiceParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn send_dice( &self, params: &SendDiceParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the sendDice method.
Sourceasync fn send_chat_action(
&self,
params: &SendChatActionParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn send_chat_action( &self, params: &SendChatActionParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the sendChatAction method.
Sourceasync fn set_message_reaction(
&self,
params: &SetMessageReactionParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn set_message_reaction( &self, params: &SetMessageReactionParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the setMessageReaction method.
Sourceasync fn get_user_profile_photos(
&self,
params: &GetUserProfilePhotosParams,
) -> Result<MethodResponse<UserProfilePhotos>, Self::Error>
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.
Sourceasync fn set_user_emoji_status(
&self,
params: &SetUserEmojiStatusParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn set_user_emoji_status( &self, params: &SetUserEmojiStatusParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the setUserEmojiStatus method.
Sourceasync fn get_file(
&self,
params: &GetFileParams,
) -> Result<MethodResponse<File>, Self::Error>
async fn get_file( &self, params: &GetFileParams, ) -> Result<MethodResponse<File>, Self::Error>
Call the getFile method.
Sourceasync fn ban_chat_member(
&self,
params: &BanChatMemberParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn ban_chat_member( &self, params: &BanChatMemberParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the banChatMember method.
Sourceasync fn unban_chat_member(
&self,
params: &UnbanChatMemberParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn unban_chat_member( &self, params: &UnbanChatMemberParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the unbanChatMember method.
Sourceasync fn restrict_chat_member(
&self,
params: &RestrictChatMemberParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn restrict_chat_member( &self, params: &RestrictChatMemberParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the restrictChatMember method.
Sourceasync fn promote_chat_member(
&self,
params: &PromoteChatMemberParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn promote_chat_member( &self, params: &PromoteChatMemberParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the promoteChatMember method.
Sourceasync fn set_chat_administrator_custom_title(
&self,
params: &SetChatAdministratorCustomTitleParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn ban_chat_sender_chat(
&self,
params: &BanChatSenderChatParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn ban_chat_sender_chat( &self, params: &BanChatSenderChatParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the banChatSenderChat method.
Sourceasync fn unban_chat_sender_chat(
&self,
params: &UnbanChatSenderChatParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn unban_chat_sender_chat( &self, params: &UnbanChatSenderChatParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the unbanChatSenderChat method.
Sourceasync fn set_chat_permissions(
&self,
params: &SetChatPermissionsParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn set_chat_permissions( &self, params: &SetChatPermissionsParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the setChatPermissions method.
Sourceasync fn export_chat_invite_link(
&self,
params: &ExportChatInviteLinkParams,
) -> Result<MethodResponse<String>, Self::Error>
async fn export_chat_invite_link( &self, params: &ExportChatInviteLinkParams, ) -> Result<MethodResponse<String>, Self::Error>
Call the exportChatInviteLink method.
See https://core.telegram.org/bots/api#exportchatinvitelink.
Sourceasync fn create_chat_invite_link(
&self,
params: &CreateChatInviteLinkParams,
) -> Result<MethodResponse<ChatInviteLink>, Self::Error>
async fn create_chat_invite_link( &self, params: &CreateChatInviteLinkParams, ) -> Result<MethodResponse<ChatInviteLink>, Self::Error>
Call the createChatInviteLink method.
See https://core.telegram.org/bots/api#createchatinvitelink.
Sourceasync fn edit_chat_invite_link(
&self,
params: &EditChatInviteLinkParams,
) -> Result<MethodResponse<ChatInviteLink>, Self::Error>
async fn edit_chat_invite_link( &self, params: &EditChatInviteLinkParams, ) -> Result<MethodResponse<ChatInviteLink>, Self::Error>
Call the editChatInviteLink method.
Sourceasync fn create_chat_subscription_invite_link(
&self,
params: &CreateChatSubscriptionInviteLinkParams,
) -> Result<MethodResponse<ChatInviteLink>, Self::Error>
async fn create_chat_subscription_invite_link( &self, params: &CreateChatSubscriptionInviteLinkParams, ) -> Result<MethodResponse<ChatInviteLink>, Self::Error>
Call the createChatSubscriptionInviteLink method.
See https://core.telegram.org/bots/api#createchatsubscriptioninvitelink.
Sourceasync fn edit_chat_subscription_invite_link(
&self,
params: &EditChatSubscriptionInviteLinkParams,
) -> Result<MethodResponse<ChatInviteLink>, Self::Error>
async fn edit_chat_subscription_invite_link( &self, params: &EditChatSubscriptionInviteLinkParams, ) -> Result<MethodResponse<ChatInviteLink>, Self::Error>
Call the editChatSubscriptionInviteLink method.
See https://core.telegram.org/bots/api#editchatsubscriptioninvitelink.
Sourceasync fn revoke_chat_invite_link(
&self,
params: &RevokeChatInviteLinkParams,
) -> Result<MethodResponse<ChatInviteLink>, Self::Error>
async fn revoke_chat_invite_link( &self, params: &RevokeChatInviteLinkParams, ) -> Result<MethodResponse<ChatInviteLink>, Self::Error>
Call the revokeChatInviteLink method.
See https://core.telegram.org/bots/api#revokechatinvitelink.
Sourceasync fn approve_chat_join_request(
&self,
params: &ApproveChatJoinRequestParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn decline_chat_join_request(
&self,
params: &DeclineChatJoinRequestParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
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,
Sourceasync fn delete_chat_photo(
&self,
params: &DeleteChatPhotoParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn delete_chat_photo( &self, params: &DeleteChatPhotoParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the deleteChatPhoto method.
Sourceasync fn set_chat_title(
&self,
params: &SetChatTitleParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn set_chat_title( &self, params: &SetChatTitleParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the setChatTitle method.
Sourceasync fn set_chat_description(
&self,
params: &SetChatDescriptionParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn set_chat_description( &self, params: &SetChatDescriptionParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the setChatDescription method.
Sourceasync fn pin_chat_message(
&self,
params: &PinChatMessageParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn pin_chat_message( &self, params: &PinChatMessageParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the pinChatMessage method.
Sourceasync fn unpin_chat_message(
&self,
params: &UnpinChatMessageParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn unpin_chat_message( &self, params: &UnpinChatMessageParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the unpinChatMessage method.
Sourceasync fn unpin_all_chat_messages(
&self,
params: &UnpinAllChatMessagesParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn leave_chat(
&self,
params: &LeaveChatParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn leave_chat( &self, params: &LeaveChatParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the leaveChat method.
Sourceasync fn get_chat(
&self,
params: &GetChatParams,
) -> Result<MethodResponse<ChatFullInfo>, Self::Error>
async fn get_chat( &self, params: &GetChatParams, ) -> Result<MethodResponse<ChatFullInfo>, Self::Error>
Call the getChat method.
Sourceasync fn get_chat_administrators(
&self,
params: &GetChatAdministratorsParams,
) -> Result<MethodResponse<Vec<ChatMember>>, Self::Error>
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.
Sourceasync fn get_chat_member_count(
&self,
params: &GetChatMemberCountParams,
) -> Result<MethodResponse<u32>, Self::Error>
async fn get_chat_member_count( &self, params: &GetChatMemberCountParams, ) -> Result<MethodResponse<u32>, Self::Error>
Call the getChatMemberCount method.
Sourceasync fn get_chat_member(
&self,
params: &GetChatMemberParams,
) -> Result<MethodResponse<ChatMember>, Self::Error>
async fn get_chat_member( &self, params: &GetChatMemberParams, ) -> Result<MethodResponse<ChatMember>, Self::Error>
Call the getChatMember method.
Sourceasync fn set_chat_sticker_set(
&self,
params: &SetChatStickerSetParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn set_chat_sticker_set( &self, params: &SetChatStickerSetParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the setChatStickerSet method.
Sourceasync fn delete_chat_sticker_set(
&self,
params: &DeleteChatStickerSetParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn get_forum_topic_icon_stickers(
&self,
) -> Result<MethodResponse<Vec<Sticker>>, Self::Error>
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.
Sourceasync fn create_forum_topic(
&self,
params: &CreateForumTopicParams,
) -> Result<MethodResponse<ForumTopic>, Self::Error>
async fn create_forum_topic( &self, params: &CreateForumTopicParams, ) -> Result<MethodResponse<ForumTopic>, Self::Error>
Call the createForumTopic method.
Sourceasync fn edit_forum_topic(
&self,
params: &EditForumTopicParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn edit_forum_topic( &self, params: &EditForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the editForumTopic method.
Sourceasync fn close_forum_topic(
&self,
params: &CloseForumTopicParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn close_forum_topic( &self, params: &CloseForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the closeForumTopic method.
Sourceasync fn reopen_forum_topic(
&self,
params: &ReopenForumTopicParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn reopen_forum_topic( &self, params: &ReopenForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the reopenForumTopic method.
Sourceasync fn delete_forum_topic(
&self,
params: &DeleteForumTopicParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn delete_forum_topic( &self, params: &DeleteForumTopicParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the deleteForumTopic method.
Sourceasync fn unpin_all_forum_topic_messages(
&self,
params: &UnpinAllForumTopicMessagesParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn edit_general_forum_topic(
&self,
params: &EditGeneralForumTopicParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn close_general_forum_topic(
&self,
params: &CloseGeneralForumTopicParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn reopen_general_forum_topic(
&self,
params: &ReopenGeneralForumTopicParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn hide_general_forum_topic(
&self,
params: &HideGeneralForumTopicParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn unhide_general_forum_topic(
&self,
params: &UnhideGeneralForumTopicParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn answer_callback_query(
&self,
params: &AnswerCallbackQueryParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn answer_callback_query( &self, params: &AnswerCallbackQueryParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the answerCallbackQuery method.
Sourceasync fn get_user_chat_boosts(
&self,
params: &GetUserChatBoostsParams,
) -> Result<MethodResponse<UserChatBoosts>, Self::Error>
async fn get_user_chat_boosts( &self, params: &GetUserChatBoostsParams, ) -> Result<MethodResponse<UserChatBoosts>, Self::Error>
Call the getUserChatBoosts method.
Sourceasync fn get_business_connection(
&self,
params: &GetBusinessConnectionParams,
) -> Result<MethodResponse<BusinessConnection>, Self::Error>
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.
Sourceasync fn get_my_commands(
&self,
params: &GetMyCommandsParams,
) -> Result<MethodResponse<Vec<BotCommand>>, Self::Error>
async fn get_my_commands( &self, params: &GetMyCommandsParams, ) -> Result<MethodResponse<Vec<BotCommand>>, Self::Error>
Call the getMyCommands method.
Sourceasync fn set_my_commands(
&self,
params: &SetMyCommandsParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn set_my_commands( &self, params: &SetMyCommandsParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the setMyCommands method.
Sourceasync fn delete_my_commands(
&self,
params: &DeleteMyCommandsParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn delete_my_commands( &self, params: &DeleteMyCommandsParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the deleteMyCommands method.
Sourceasync fn set_my_name(
&self,
params: &SetMyNameParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn set_my_name( &self, params: &SetMyNameParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the setMyName method.
Sourceasync fn get_my_name(
&self,
params: &GetMyNameParams,
) -> Result<MethodResponse<BotName>, Self::Error>
async fn get_my_name( &self, params: &GetMyNameParams, ) -> Result<MethodResponse<BotName>, Self::Error>
Call the getMyName method.
Sourceasync fn set_my_description(
&self,
params: &SetMyDescriptionParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn set_my_description( &self, params: &SetMyDescriptionParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the setMyDescription method.
Sourceasync fn get_my_description(
&self,
params: &GetMyDescriptionParams,
) -> Result<MethodResponse<BotDescription>, Self::Error>
async fn get_my_description( &self, params: &GetMyDescriptionParams, ) -> Result<MethodResponse<BotDescription>, Self::Error>
Call the getMyDescription method.
Sourceasync fn set_my_short_description(
&self,
params: &SetMyShortDescriptionParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn get_my_short_description(
&self,
params: &GetMyShortDescriptionParams,
) -> Result<MethodResponse<BotShortDescription>, Self::Error>
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.
Sourceasync fn answer_inline_query(
&self,
params: &AnswerInlineQueryParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn answer_inline_query( &self, params: &AnswerInlineQueryParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the answerInlineQuery method.
Sourceasync fn edit_message_text(
&self,
params: &EditMessageTextParams,
) -> Result<MethodResponse<MessageOrBool>, Self::Error>
async fn edit_message_text( &self, params: &EditMessageTextParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error>
Call the editMessageText method.
Sourceasync fn edit_message_caption(
&self,
params: &EditMessageCaptionParams,
) -> Result<MethodResponse<MessageOrBool>, Self::Error>
async fn edit_message_caption( &self, params: &EditMessageCaptionParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error>
Call the editMessageCaption method.
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,
Sourceasync fn edit_message_reply_markup(
&self,
params: &EditMessageReplyMarkupParams,
) -> Result<MethodResponse<MessageOrBool>, Self::Error>
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.
Sourceasync fn stop_poll(
&self,
params: &StopPollParams,
) -> Result<MethodResponse<Poll>, Self::Error>
async fn stop_poll( &self, params: &StopPollParams, ) -> Result<MethodResponse<Poll>, Self::Error>
Call the stopPoll method.
Sourceasync fn approve_suggested_post(
&self,
params: &ApproveSuggestedPostParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn decline_suggested_post(
&self,
params: &DeclineSuggestedPostParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn delete_message(
&self,
params: &DeleteMessageParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn delete_message( &self, params: &DeleteMessageParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the deleteMessage method.
Sourceasync fn delete_messages(
&self,
params: &DeleteMessagesParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn delete_messages( &self, params: &DeleteMessagesParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the deleteMessages method.
Sourceasync fn send_sticker(
&self,
params: &SendStickerParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn send_sticker( &self, params: &SendStickerParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the sendSticker method.
Sourceasync fn get_sticker_set(
&self,
params: &GetStickerSetParams,
) -> Result<MethodResponse<StickerSet>, Self::Error>
async fn get_sticker_set( &self, params: &GetStickerSetParams, ) -> Result<MethodResponse<StickerSet>, Self::Error>
Call the getStickerSet method.
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,
Sourceasync fn get_custom_emoji_stickers(
&self,
params: &GetCustomEmojiStickersParams,
) -> Result<MethodResponse<Vec<Sticker>>, Self::Error>
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.
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,
Sourceasync fn set_sticker_position_in_set(
&self,
params: &SetStickerPositionInSetParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn delete_sticker_from_set(
&self,
params: &DeleteStickerFromSetParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn replace_sticker_in_set(
&self,
params: &ReplaceStickerInSetParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn replace_sticker_in_set( &self, params: &ReplaceStickerInSetParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the replaceStickerInSet method.
Sourceasync fn set_sticker_emoji_list(
&self,
params: &SetStickerEmojiListParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn set_sticker_emoji_list( &self, params: &SetStickerEmojiListParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the setStickerEmojiList method.
Sourceasync fn set_sticker_keywords(
&self,
params: &SetStickerKeywordsParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn set_sticker_keywords( &self, params: &SetStickerKeywordsParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the setStickerKeywords method.
Sourceasync fn set_sticker_mask_position(
&self,
params: &SetStickerMaskPositionParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn set_sticker_set_title(
&self,
params: &SetStickerSetTitleParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn set_sticker_set_title( &self, params: &SetStickerSetTitleParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the setStickerSetTitle method.
Sourceasync fn set_sticker_set_thumbnail(
&self,
params: &SetStickerSetThumbnailParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn set_custom_emoji_sticker_set_thumbnail(
&self,
params: &SetCustomEmojiStickerSetThumbnailParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn delete_sticker_set(
&self,
params: &DeleteStickerSetParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn delete_sticker_set( &self, params: &DeleteStickerSetParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the deleteStickerSet method.
Sourceasync fn get_available_gifts(
&self,
) -> Result<MethodResponse<Gifts>, Self::Error>
async fn get_available_gifts( &self, ) -> Result<MethodResponse<Gifts>, Self::Error>
Call the getAvailableGifts method.
Sourceasync fn send_gift(
&self,
params: &SendGiftParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn send_gift( &self, params: &SendGiftParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the sendGift method.
Call the giftPremiumSubscription method.
See https://core.telegram.org/bots/api#giftpremiumsubscription.
Sourceasync fn verify_user(
&self,
params: &VerifyUserParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn verify_user( &self, params: &VerifyUserParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the verifyUser method.
Sourceasync fn verify_chat(
&self,
params: &VerifyChatParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn verify_chat( &self, params: &VerifyChatParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the verifyChat method.
Sourceasync fn remove_user_verification(
&self,
params: &RemoveUserVerificationParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn remove_chat_verification(
&self,
params: &RemoveChatVerificationParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn read_business_message(
&self,
params: &ReadBusinessMessageParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn read_business_message( &self, params: &ReadBusinessMessageParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the readBusinessMessage method.
Sourceasync fn delete_business_messages(
&self,
params: &DeleteBusinessMessagesParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn set_business_account_name(
&self,
params: &SetBusinessAccountNameParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn set_business_account_username(
&self,
params: &SetBusinessAccountUsernameParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn set_business_account_bio(
&self,
params: &SetBusinessAccountBioParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
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,
Sourceasync fn remove_business_account_profile_photo(
&self,
params: &RemoveBusinessAccountProfilePhotoParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn set_business_account_gift_settings(
&self,
params: &SetBusinessAccountGiftSettingsParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn get_business_account_star_balance(
&self,
params: &GetBusinessAccountStarBalanceParams,
) -> Result<MethodResponse<StarAmount>, Self::Error>
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.
Sourceasync fn transfer_business_account_stars(
&self,
params: &TransferBusinessAccountStarsParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn get_business_account_gifts(
&self,
params: &GetBusinessAccountGiftsParams,
) -> Result<MethodResponse<OwnedGifts>, Self::Error>
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.
Sourceasync fn convert_gift_to_stars(
&self,
params: &ConvertGiftToStarsParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn convert_gift_to_stars( &self, params: &ConvertGiftToStarsParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the convertGiftToStars method.
Sourceasync fn upgrade_gift(
&self,
params: &UpgradeGiftParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn upgrade_gift( &self, params: &UpgradeGiftParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the upgradeGift method.
Sourceasync fn transfer_gift(
&self,
params: &TransferGiftParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn transfer_gift( &self, params: &TransferGiftParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the transferGift method.
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,
Sourceasync fn delete_story(
&self,
params: &DeleteStoryParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn delete_story( &self, params: &DeleteStoryParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the deleteStory method.
Sourceasync fn send_invoice(
&self,
params: &SendInvoiceParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn send_invoice( &self, params: &SendInvoiceParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the sendInvoice method.
Sourceasync fn create_invoice_link(
&self,
params: &CreateInvoiceLinkParams,
) -> Result<MethodResponse<String>, Self::Error>
async fn create_invoice_link( &self, params: &CreateInvoiceLinkParams, ) -> Result<MethodResponse<String>, Self::Error>
Call the createInvoiceLink method.
Sourceasync fn answer_shipping_query(
&self,
params: &AnswerShippingQueryParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn answer_shipping_query( &self, params: &AnswerShippingQueryParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the answerShippingQuery method.
Sourceasync fn answer_pre_checkout_query(
&self,
params: &AnswerPreCheckoutQueryParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn get_my_star_balance(&self) -> Result<MethodResponse<u32>, Self::Error>
async fn get_my_star_balance(&self) -> Result<MethodResponse<u32>, Self::Error>
Call the getMyStarBalance method.
Sourceasync fn get_star_transactions(
&self,
params: &GetStarTransactionsParams,
) -> Result<MethodResponse<StarTransactions>, Self::Error>
async fn get_star_transactions( &self, params: &GetStarTransactionsParams, ) -> Result<MethodResponse<StarTransactions>, Self::Error>
Call the getStarTransactions method.
Sourceasync fn refund_star_payment(
&self,
params: &RefundStarPaymentParams,
) -> Result<MethodResponse<bool>, Self::Error>
async fn refund_star_payment( &self, params: &RefundStarPaymentParams, ) -> Result<MethodResponse<bool>, Self::Error>
Call the refundStarPayment method.
Sourceasync fn edit_user_star_subscription(
&self,
params: &EditUserStarSubscriptionParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn send_game(
&self,
params: &SendGameParams,
) -> Result<MethodResponse<Message>, Self::Error>
async fn send_game( &self, params: &SendGameParams, ) -> Result<MethodResponse<Message>, Self::Error>
Call the sendGame method.
Sourceasync fn set_game_score(
&self,
params: &SetGameScoreParams,
) -> Result<MethodResponse<MessageOrBool>, Self::Error>
async fn set_game_score( &self, params: &SetGameScoreParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error>
Call the setGameScore method.
Sourceasync fn get_game_high_scores(
&self,
params: &GetGameHighScoresParams,
) -> Result<MethodResponse<Vec<GameHighScore>>, Self::Error>
async fn get_game_high_scores( &self, params: &GetGameHighScoresParams, ) -> Result<MethodResponse<Vec<GameHighScore>>, Self::Error>
Call the getGameHighScores method.
Sourceasync fn set_my_default_administrator_rights(
&self,
params: &SetMyDefaultAdministratorRightsParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn get_my_default_administrator_rights(
&self,
params: &GetMyDefaultAdministratorRightsParams,
) -> Result<MethodResponse<ChatAdministratorRights>, Self::Error>
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.
Sourceasync fn answer_web_app_query(
&self,
params: &AnswerWebAppQueryParams,
) -> Result<MethodResponse<SentWebAppMessage>, Self::Error>
async fn answer_web_app_query( &self, params: &AnswerWebAppQueryParams, ) -> Result<MethodResponse<SentWebAppMessage>, Self::Error>
Call the answerWebAppQuery method.
Sourceasync fn save_prepared_inline_message(
&self,
params: &SavePreparedInlineMessageParams,
) -> Result<MethodResponse<PreparedInlineMessage>, Self::Error>
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.
Call the setChatMenuButton method.
Call the getChatMenuButton method.
Sourceasync fn unpin_all_general_forum_topic_messages(
&self,
params: &UnpinAllGeneralForumTopicMessagesParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
Sourceasync fn set_passport_data_errors(
&self,
params: &SetPassportDataErrorsParams,
) -> Result<MethodResponse<bool>, Self::Error>
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.
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.