Trait TelegramApi

Source
pub trait TelegramApi {
    type Error;

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

Required Associated Types§

Required Methods§

Source

fn request<Params, Output>( &self, method: &str, params: Option<Params>, ) -> Result<Output, Self::Error>
where Params: Serialize + Debug, Output: DeserializeOwned,

Source

fn request_with_form_data<Params, Output>( &self, method: &str, params: Params, files: Vec<(&str, PathBuf)>, ) -> Result<Output, Self::Error>
where Params: Serialize + Debug, Output: DeserializeOwned,

Provided Methods§

Source

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

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

Call the sendMessage method.

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

Source

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

Call the setWebhook method.

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

Source

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

Call the deleteWebhook method.

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

Source

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

Call the getWebhookInfo method.

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

Source

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

Call the getMe method.

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

Source

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

Call the logOut method.

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

Source

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

Call the close method.

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

Source

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

Call the forwardMessage method.

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

Source

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

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

Call the copyMessage method.

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

Source

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

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

Call the sendPhoto method.

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

Source

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( &self, params: &SendMediaGroupParams, ) -> Result<MethodResponse<Vec<Message>>, Self::Error>

Source

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

Call the sendDocument method.

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

Source

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

Call the sendVideo method.

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

Source

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

Call the sendAnimation method.

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

Source

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

Call the sendVoice method.

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

Source

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

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

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

Call the sendLocation method.

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

Source

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

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

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

Call the sendChecklist method.

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

Source

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

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

Call the sendVenue method.

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

Source

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

Call the sendContact method.

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

Source

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

Call the sendPoll method.

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

Source

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

Call the sendDice method.

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

Source

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

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

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

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

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

Call the getFile method.

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

Source

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

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

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

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

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

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

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

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

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

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( &self, params: &SetChatPhotoParams, ) -> Result<MethodResponse<bool>, Self::Error>

Source

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

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

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

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

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

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

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

Call the leaveChat method.

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

Source

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

Call the getChat method.

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

Source

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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( &self, params: &EditMessageMediaParams, ) -> Result<MethodResponse<MessageOrBool>, Self::Error>

Source

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

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

Call the stopPoll method.

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

Source

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

Call the deleteMessage method.

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

Source

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

Call the deleteMessages method.

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

Source

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

Call the sendSticker method.

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

Source

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( &self, params: &UploadStickerFileParams, ) -> Result<MethodResponse<File>, Self::Error>

Source

fn create_new_sticker_set( &self, params: &CreateNewStickerSetParams, ) -> Result<MethodResponse<bool>, Self::Error>

Source

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( &self, params: &AddStickerToSetParams, ) -> Result<MethodResponse<bool>, Self::Error>

Source

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

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

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

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

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

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

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

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

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

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

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

Call the getAvailableGifts method.

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

Source

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

Call the sendGift method.

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

Source

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

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

Call the verifyUser method.

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

Source

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

Call the verifyChat method.

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

Source

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

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

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

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

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

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

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( &self, params: &SetBusinessAccountProfilePhotoParams, ) -> Result<MethodResponse<bool>, Self::Error>

Source

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

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

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

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

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

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

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

Call the upgradeGift method.

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

Source

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( &self, params: &PostStoryParams, ) -> Result<MethodResponse<Story>, Self::Error>

Source

fn edit_story( &self, params: &EditStoryParams, ) -> Result<MethodResponse<Story>, Self::Error>

Source

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

Call the deleteStory method.

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

Source

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

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

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

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

Call the getMyStarBalance method.

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

Source

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

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

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

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

Call the sendGame method.

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

Source

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

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

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

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

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

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

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

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

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

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<Params, Output>( &self, method_name: &str, params: Params, files: Vec<(&str, PathBuf)>, ) -> Result<Output, Self::Error>
where Params: Serialize + Debug, Output: DeserializeOwned,

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 TelegramApi for Bot

Available on crate feature client-ureq only.