Trait frankenstein::api_traits::telegram_api::TelegramApi
source · pub trait TelegramApi {
type Error;
Show 124 methods
// Required methods
fn request_with_form_data<T1: Serialize + Debug, T2: DeserializeOwned>(
&self,
method: &str,
params: T1,
files: Vec<(&str, PathBuf)>
) -> Result<T2, Self::Error>;
fn request<T1: Serialize + Debug, T2: DeserializeOwned>(
&self,
method: &str,
params: Option<T1>
) -> Result<T2, Self::Error>;
// 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_location(
&self,
params: &SendLocationParams
) -> Result<MethodResponse<Message>, Self::Error> { ... }
fn edit_message_live_location(
&self,
params: &EditMessageLiveLocationParams
) -> Result<EditMessageResponse, Self::Error> { ... }
fn stop_message_live_location(
&self,
params: &StopMessageLiveLocationParams
) -> Result<EditMessageResponse, 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 get_file(
&self,
params: &GetFileParams
) -> Result<MethodResponse<FileObject>, 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 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<Chat>, 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<EditMessageResponse, Self::Error> { ... }
fn edit_message_caption(
&self,
params: &EditMessageCaptionParams
) -> Result<EditMessageResponse, Self::Error> { ... }
fn edit_message_media(
&self,
params: &EditMessageMediaParams
) -> Result<EditMessageResponse, Self::Error> { ... }
fn edit_message_reply_markup(
&self,
params: &EditMessageReplyMarkupParams
) -> Result<EditMessageResponse, 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<FileObject>, 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 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 send_game(
&self,
params: &SendGameParams
) -> Result<MethodResponse<Message>, Self::Error> { ... }
fn set_game_score(
&self,
params: &SetGameScoreParams
) -> Result<EditMessageResponse, 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 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 request_without_body<T: DeserializeOwned>(
&self,
method: &str
) -> Result<T, Self::Error> { ... }
fn request_with_possible_form_data<T1: Serialize + Debug, T2: DeserializeOwned>(
&self,
method_name: &str,
params: &T1,
files: Vec<(&str, PathBuf)>
) -> Result<T2, Self::Error> { ... }
}
Required Associated Types§
Required Methods§
fn request_with_form_data<T1: Serialize + Debug, T2: DeserializeOwned>( &self, method: &str, params: T1, files: Vec<(&str, PathBuf)> ) -> Result<T2, Self::Error>
fn request<T1: Serialize + Debug, T2: DeserializeOwned>( &self, method: &str, params: Option<T1> ) -> Result<T2, Self::Error>
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_location( &self, params: &SendLocationParams ) -> Result<MethodResponse<Message>, Self::Error>
fn edit_message_live_location( &self, params: &EditMessageLiveLocationParams ) -> Result<EditMessageResponse, Self::Error>
fn stop_message_live_location( &self, params: &StopMessageLiveLocationParams ) -> Result<EditMessageResponse, 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 get_file( &self, params: &GetFileParams ) -> Result<MethodResponse<FileObject>, 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 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<Chat>, 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<EditMessageResponse, Self::Error>
fn edit_message_media( &self, params: &EditMessageMediaParams ) -> Result<EditMessageResponse, Self::Error>
fn edit_message_reply_markup( &self, params: &EditMessageReplyMarkupParams ) -> Result<EditMessageResponse, 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<FileObject>, 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 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 send_game( &self, params: &SendGameParams ) -> Result<MethodResponse<Message>, Self::Error>
fn set_game_score( &self, params: &SetGameScoreParams ) -> Result<EditMessageResponse, 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 unpin_all_general_forum_topic_messages( &self, params: UnpinAllGeneralForumTopicMessagesParams ) -> Result<MethodResponse<bool>, Self::Error>
fn request_without_body<T: DeserializeOwned>( &self, method: &str ) -> Result<T, Self::Error>
fn request_with_possible_form_data<T1: Serialize + Debug, T2: DeserializeOwned>( &self, method_name: &str, params: &T1, files: Vec<(&str, PathBuf)> ) -> Result<T2, Self::Error>
Object Safety§
This trait is not object safe.