Trait teloxide_core::requests::Requester
source · pub trait Requester {
Show 257 associated items
type Err: Error + Send + AsResponseParameters;
type GetUpdates: Request<Payload = GetUpdates, Err = Self::Err>;
type SetWebhook: Request<Payload = SetWebhook, Err = Self::Err>;
type DeleteWebhook: Request<Payload = DeleteWebhook, Err = Self::Err>;
type GetWebhookInfo: Request<Payload = GetWebhookInfo, Err = Self::Err>;
type GetMe: Request<Payload = GetMe, Err = Self::Err>;
type LogOut: Request<Payload = LogOut, Err = Self::Err>;
type Close: Request<Payload = Close, Err = Self::Err>;
type SendMessage: Request<Payload = SendMessage, Err = Self::Err>;
type ForwardMessage: Request<Payload = ForwardMessage, Err = Self::Err>;
type ForwardMessages: Request<Payload = ForwardMessages, Err = Self::Err>;
type CopyMessage: Request<Payload = CopyMessage, Err = Self::Err>;
type CopyMessages: Request<Payload = CopyMessages, Err = Self::Err>;
type SendPhoto: Request<Payload = SendPhoto, Err = Self::Err>;
type SendAudio: Request<Payload = SendAudio, Err = Self::Err>;
type SendDocument: Request<Payload = SendDocument, Err = Self::Err>;
type SendVideo: Request<Payload = SendVideo, Err = Self::Err>;
type SendAnimation: Request<Payload = SendAnimation, Err = Self::Err>;
type SendVoice: Request<Payload = SendVoice, Err = Self::Err>;
type SendVideoNote: Request<Payload = SendVideoNote, Err = Self::Err>;
type SendMediaGroup: Request<Payload = SendMediaGroup, Err = Self::Err>;
type SendLocation: Request<Payload = SendLocation, Err = Self::Err>;
type EditMessageLiveLocation: Request<Payload = EditMessageLiveLocation, Err = Self::Err>;
type EditMessageLiveLocationInline: Request<Payload = EditMessageLiveLocationInline, Err = Self::Err>;
type StopMessageLiveLocation: Request<Payload = StopMessageLiveLocation, Err = Self::Err>;
type StopMessageLiveLocationInline: Request<Payload = StopMessageLiveLocationInline, Err = Self::Err>;
type SendVenue: Request<Payload = SendVenue, Err = Self::Err>;
type SendContact: Request<Payload = SendContact, Err = Self::Err>;
type SendPoll: Request<Payload = SendPoll, Err = Self::Err>;
type SendDice: Request<Payload = SendDice, Err = Self::Err>;
type SendChatAction: Request<Payload = SendChatAction, Err = Self::Err>;
type SetMessageReaction: Request<Payload = SetMessageReaction, Err = Self::Err>;
type GetUserProfilePhotos: Request<Payload = GetUserProfilePhotos, Err = Self::Err>;
type GetFile: Request<Payload = GetFile, Err = Self::Err>;
type BanChatMember: Request<Payload = BanChatMember, Err = Self::Err>;
type KickChatMember: Request<Payload = KickChatMember, Err = Self::Err>;
type UnbanChatMember: Request<Payload = UnbanChatMember, Err = Self::Err>;
type RestrictChatMember: Request<Payload = RestrictChatMember, Err = Self::Err>;
type PromoteChatMember: Request<Payload = PromoteChatMember, Err = Self::Err>;
type SetChatAdministratorCustomTitle: Request<Payload = SetChatAdministratorCustomTitle, Err = Self::Err>;
type BanChatSenderChat: Request<Payload = BanChatSenderChat, Err = Self::Err>;
type UnbanChatSenderChat: Request<Payload = UnbanChatSenderChat, Err = Self::Err>;
type SetChatPermissions: Request<Payload = SetChatPermissions, Err = Self::Err>;
type ExportChatInviteLink: Request<Payload = ExportChatInviteLink, Err = Self::Err>;
type CreateChatInviteLink: Request<Payload = CreateChatInviteLink, Err = Self::Err>;
type EditChatInviteLink: Request<Payload = EditChatInviteLink, Err = Self::Err>;
type RevokeChatInviteLink: Request<Payload = RevokeChatInviteLink, Err = Self::Err>;
type ApproveChatJoinRequest: Request<Payload = ApproveChatJoinRequest, Err = Self::Err>;
type DeclineChatJoinRequest: Request<Payload = DeclineChatJoinRequest, Err = Self::Err>;
type SetChatPhoto: Request<Payload = SetChatPhoto, Err = Self::Err>;
type DeleteChatPhoto: Request<Payload = DeleteChatPhoto, Err = Self::Err>;
type SetChatTitle: Request<Payload = SetChatTitle, Err = Self::Err>;
type SetChatDescription: Request<Payload = SetChatDescription, Err = Self::Err>;
type PinChatMessage: Request<Payload = PinChatMessage, Err = Self::Err>;
type UnpinChatMessage: Request<Payload = UnpinChatMessage, Err = Self::Err>;
type UnpinAllChatMessages: Request<Payload = UnpinAllChatMessages, Err = Self::Err>;
type LeaveChat: Request<Payload = LeaveChat, Err = Self::Err>;
type GetChat: Request<Payload = GetChat, Err = Self::Err>;
type GetChatAdministrators: Request<Payload = GetChatAdministrators, Err = Self::Err>;
type GetChatMemberCount: Request<Payload = GetChatMemberCount, Err = Self::Err>;
type GetChatMembersCount: Request<Payload = GetChatMembersCount, Err = Self::Err>;
type GetChatMember: Request<Payload = GetChatMember, Err = Self::Err>;
type SetChatStickerSet: Request<Payload = SetChatStickerSet, Err = Self::Err>;
type DeleteChatStickerSet: Request<Payload = DeleteChatStickerSet, Err = Self::Err>;
type GetForumTopicIconStickers: Request<Payload = GetForumTopicIconStickers, Err = Self::Err>;
type CreateForumTopic: Request<Payload = CreateForumTopic, Err = Self::Err>;
type EditForumTopic: Request<Payload = EditForumTopic, Err = Self::Err>;
type CloseForumTopic: Request<Payload = CloseForumTopic, Err = Self::Err>;
type ReopenForumTopic: Request<Payload = ReopenForumTopic, Err = Self::Err>;
type DeleteForumTopic: Request<Payload = DeleteForumTopic, Err = Self::Err>;
type UnpinAllForumTopicMessages: Request<Payload = UnpinAllForumTopicMessages, Err = Self::Err>;
type EditGeneralForumTopic: Request<Payload = EditGeneralForumTopic, Err = Self::Err>;
type CloseGeneralForumTopic: Request<Payload = CloseGeneralForumTopic, Err = Self::Err>;
type ReopenGeneralForumTopic: Request<Payload = ReopenGeneralForumTopic, Err = Self::Err>;
type HideGeneralForumTopic: Request<Payload = HideGeneralForumTopic, Err = Self::Err>;
type UnhideGeneralForumTopic: Request<Payload = UnhideGeneralForumTopic, Err = Self::Err>;
type UnpinAllGeneralForumTopicMessages: Request<Payload = UnpinAllGeneralForumTopicMessages, Err = Self::Err>;
type AnswerCallbackQuery: Request<Payload = AnswerCallbackQuery, Err = Self::Err>;
type GetUserChatBoosts: Request<Payload = GetUserChatBoosts, Err = Self::Err>;
type SetMyCommands: Request<Payload = SetMyCommands, Err = Self::Err>;
type GetMyCommands: Request<Payload = GetMyCommands, Err = Self::Err>;
type SetMyName: Request<Payload = SetMyName, Err = Self::Err>;
type GetMyName: Request<Payload = GetMyName, Err = Self::Err>;
type SetMyDescription: Request<Payload = SetMyDescription, Err = Self::Err>;
type GetMyDescription: Request<Payload = GetMyDescription, Err = Self::Err>;
type SetMyShortDescription: Request<Payload = SetMyShortDescription, Err = Self::Err>;
type GetMyShortDescription: Request<Payload = GetMyShortDescription, Err = Self::Err>;
type SetChatMenuButton: Request<Payload = SetChatMenuButton, Err = Self::Err>;
type GetChatMenuButton: Request<Payload = GetChatMenuButton, Err = Self::Err>;
type SetMyDefaultAdministratorRights: Request<Payload = SetMyDefaultAdministratorRights, Err = Self::Err>;
type GetMyDefaultAdministratorRights: Request<Payload = GetMyDefaultAdministratorRights, Err = Self::Err>;
type DeleteMyCommands: Request<Payload = DeleteMyCommands, Err = Self::Err>;
type AnswerInlineQuery: Request<Payload = AnswerInlineQuery, Err = Self::Err>;
type AnswerWebAppQuery: Request<Payload = AnswerWebAppQuery, Err = Self::Err>;
type EditMessageText: Request<Payload = EditMessageText, Err = Self::Err>;
type EditMessageTextInline: Request<Payload = EditMessageTextInline, Err = Self::Err>;
type EditMessageCaption: Request<Payload = EditMessageCaption, Err = Self::Err>;
type EditMessageCaptionInline: Request<Payload = EditMessageCaptionInline, Err = Self::Err>;
type EditMessageMedia: Request<Payload = EditMessageMedia, Err = Self::Err>;
type EditMessageMediaInline: Request<Payload = EditMessageMediaInline, Err = Self::Err>;
type EditMessageReplyMarkup: Request<Payload = EditMessageReplyMarkup, Err = Self::Err>;
type EditMessageReplyMarkupInline: Request<Payload = EditMessageReplyMarkupInline, Err = Self::Err>;
type StopPoll: Request<Payload = StopPoll, Err = Self::Err>;
type DeleteMessage: Request<Payload = DeleteMessage, Err = Self::Err>;
type DeleteMessages: Request<Payload = DeleteMessages, Err = Self::Err>;
type SendSticker: Request<Payload = SendSticker, Err = Self::Err>;
type GetStickerSet: Request<Payload = GetStickerSet, Err = Self::Err>;
type GetCustomEmojiStickers: Request<Payload = GetCustomEmojiStickers, Err = Self::Err>;
type UploadStickerFile: Request<Payload = UploadStickerFile, Err = Self::Err>;
type CreateNewStickerSet: Request<Payload = CreateNewStickerSet, Err = Self::Err>;
type AddStickerToSet: Request<Payload = AddStickerToSet, Err = Self::Err>;
type SetStickerPositionInSet: Request<Payload = SetStickerPositionInSet, Err = Self::Err>;
type DeleteStickerFromSet: Request<Payload = DeleteStickerFromSet, Err = Self::Err>;
type SetStickerSetThumbnail: Request<Payload = SetStickerSetThumbnail, Err = Self::Err>;
type SetCustomEmojiStickerSetThumbnail: Request<Payload = SetCustomEmojiStickerSetThumbnail, Err = Self::Err>;
type SetStickerSetTitle: Request<Payload = SetStickerSetTitle, Err = Self::Err>;
type DeleteStickerSet: Request<Payload = DeleteStickerSet, Err = Self::Err>;
type SetStickerEmojiList: Request<Payload = SetStickerEmojiList, Err = Self::Err>;
type SetStickerKeywords: Request<Payload = SetStickerKeywords, Err = Self::Err>;
type SetStickerMaskPosition: Request<Payload = SetStickerMaskPosition, Err = Self::Err>;
type SendInvoice: Request<Payload = SendInvoice, Err = Self::Err>;
type CreateInvoiceLink: Request<Payload = CreateInvoiceLink, Err = Self::Err>;
type AnswerShippingQuery: Request<Payload = AnswerShippingQuery, Err = Self::Err>;
type AnswerPreCheckoutQuery: Request<Payload = AnswerPreCheckoutQuery, Err = Self::Err>;
type SetPassportDataErrors: Request<Payload = SetPassportDataErrors, Err = Self::Err>;
type SendGame: Request<Payload = SendGame, Err = Self::Err>;
type SetGameScore: Request<Payload = SetGameScore, Err = Self::Err>;
type SetGameScoreInline: Request<Payload = SetGameScoreInline, Err = Self::Err>;
type GetGameHighScores: Request<Payload = GetGameHighScores, Err = Self::Err>;
// Required methods
fn get_updates(&self) -> Self::GetUpdates;
fn set_webhook(&self, url: Url) -> Self::SetWebhook;
fn delete_webhook(&self) -> Self::DeleteWebhook;
fn get_webhook_info(&self) -> Self::GetWebhookInfo;
fn get_me(&self) -> Self::GetMe;
fn log_out(&self) -> Self::LogOut;
fn close(&self) -> Self::Close;
fn send_message<C, T>(&self, chat_id: C, text: T) -> Self::SendMessage
where C: Into<Recipient>,
T: Into<String>;
fn forward_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId,
) -> Self::ForwardMessage
where C: Into<Recipient>,
F: Into<Recipient>;
fn forward_messages<C, F, M>(
&self,
chat_id: C,
from_chat_id: F,
message_ids: M,
) -> Self::ForwardMessages
where C: Into<Recipient>,
F: Into<Recipient>,
M: IntoIterator<Item = MessageId>;
fn copy_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId,
) -> Self::CopyMessage
where C: Into<Recipient>,
F: Into<Recipient>;
fn copy_messages<C, F, M>(
&self,
chat_id: C,
from_chat_id: F,
message_ids: M,
) -> Self::CopyMessages
where C: Into<Recipient>,
F: Into<Recipient>,
M: IntoIterator<Item = MessageId>;
fn send_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SendPhoto
where C: Into<Recipient>;
fn send_audio<C>(&self, chat_id: C, audio: InputFile) -> Self::SendAudio
where C: Into<Recipient>;
fn send_document<C>(
&self,
chat_id: C,
document: InputFile,
) -> Self::SendDocument
where C: Into<Recipient>;
fn send_video<C>(&self, chat_id: C, video: InputFile) -> Self::SendVideo
where C: Into<Recipient>;
fn send_animation<C>(
&self,
chat_id: C,
animation: InputFile,
) -> Self::SendAnimation
where C: Into<Recipient>;
fn send_voice<C>(&self, chat_id: C, voice: InputFile) -> Self::SendVoice
where C: Into<Recipient>;
fn send_video_note<C>(
&self,
chat_id: C,
video_note: InputFile,
) -> Self::SendVideoNote
where C: Into<Recipient>;
fn send_media_group<C, M>(
&self,
chat_id: C,
media: M,
) -> Self::SendMediaGroup
where C: Into<Recipient>,
M: IntoIterator<Item = InputMedia>;
fn send_location<C>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
) -> Self::SendLocation
where C: Into<Recipient>;
fn edit_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64,
) -> Self::EditMessageLiveLocation
where C: Into<Recipient>;
fn edit_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64,
) -> Self::EditMessageLiveLocationInline
where I: Into<String>;
fn stop_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::StopMessageLiveLocation
where C: Into<Recipient>;
fn stop_message_live_location_inline<I>(
&self,
inline_message_id: I,
) -> Self::StopMessageLiveLocationInline
where I: Into<String>;
fn send_venue<C, T, A>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
title: T,
address: A,
) -> Self::SendVenue
where C: Into<Recipient>,
T: Into<String>,
A: Into<String>;
fn send_contact<C, P, F>(
&self,
chat_id: C,
phone_number: P,
first_name: F,
) -> Self::SendContact
where C: Into<Recipient>,
P: Into<String>,
F: Into<String>;
fn send_poll<C, Q, O>(
&self,
chat_id: C,
question: Q,
options: O,
) -> Self::SendPoll
where C: Into<Recipient>,
Q: Into<String>,
O: IntoIterator<Item = String>;
fn send_dice<C>(&self, chat_id: C) -> Self::SendDice
where C: Into<Recipient>;
fn send_chat_action<C>(
&self,
chat_id: C,
action: ChatAction,
) -> Self::SendChatAction
where C: Into<Recipient>;
fn set_message_reaction<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::SetMessageReaction
where C: Into<Recipient>;
fn get_user_profile_photos(
&self,
user_id: UserId,
) -> Self::GetUserProfilePhotos;
fn get_file<F>(&self, file_id: F) -> Self::GetFile
where F: Into<String>;
fn ban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::BanChatMember
where C: Into<Recipient>;
fn kick_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::KickChatMember
where C: Into<Recipient>;
fn unban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::UnbanChatMember
where C: Into<Recipient>;
fn restrict_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
permissions: ChatPermissions,
) -> Self::RestrictChatMember
where C: Into<Recipient>;
fn promote_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::PromoteChatMember
where C: Into<Recipient>;
fn set_chat_administrator_custom_title<Ch, C>(
&self,
chat_id: Ch,
user_id: UserId,
custom_title: C,
) -> Self::SetChatAdministratorCustomTitle
where Ch: Into<Recipient>,
C: Into<String>;
fn ban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S,
) -> Self::BanChatSenderChat
where C: Into<Recipient>,
S: Into<ChatId>;
fn unban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S,
) -> Self::UnbanChatSenderChat
where C: Into<Recipient>,
S: Into<ChatId>;
fn set_chat_permissions<C>(
&self,
chat_id: C,
permissions: ChatPermissions,
) -> Self::SetChatPermissions
where C: Into<Recipient>;
fn export_chat_invite_link<C>(
&self,
chat_id: C,
) -> Self::ExportChatInviteLink
where C: Into<Recipient>;
fn create_chat_invite_link<C>(
&self,
chat_id: C,
) -> Self::CreateChatInviteLink
where C: Into<Recipient>;
fn edit_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I,
) -> Self::EditChatInviteLink
where C: Into<Recipient>,
I: Into<String>;
fn revoke_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I,
) -> Self::RevokeChatInviteLink
where C: Into<Recipient>,
I: Into<String>;
fn approve_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::ApproveChatJoinRequest
where C: Into<Recipient>;
fn decline_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::DeclineChatJoinRequest
where C: Into<Recipient>;
fn set_chat_photo<C>(
&self,
chat_id: C,
photo: InputFile,
) -> Self::SetChatPhoto
where C: Into<Recipient>;
fn delete_chat_photo<C>(&self, chat_id: C) -> Self::DeleteChatPhoto
where C: Into<Recipient>;
fn set_chat_title<C, T>(&self, chat_id: C, title: T) -> Self::SetChatTitle
where C: Into<Recipient>,
T: Into<String>;
fn set_chat_description<C>(&self, chat_id: C) -> Self::SetChatDescription
where C: Into<Recipient>;
fn pin_chat_message<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::PinChatMessage
where C: Into<Recipient>;
fn unpin_chat_message<C>(&self, chat_id: C) -> Self::UnpinChatMessage
where C: Into<Recipient>;
fn unpin_all_chat_messages<C>(
&self,
chat_id: C,
) -> Self::UnpinAllChatMessages
where C: Into<Recipient>;
fn leave_chat<C>(&self, chat_id: C) -> Self::LeaveChat
where C: Into<Recipient>;
fn get_chat<C>(&self, chat_id: C) -> Self::GetChat
where C: Into<Recipient>;
fn get_chat_administrators<C>(
&self,
chat_id: C,
) -> Self::GetChatAdministrators
where C: Into<Recipient>;
fn get_chat_member_count<C>(&self, chat_id: C) -> Self::GetChatMemberCount
where C: Into<Recipient>;
fn get_chat_members_count<C>(&self, chat_id: C) -> Self::GetChatMembersCount
where C: Into<Recipient>;
fn get_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::GetChatMember
where C: Into<Recipient>;
fn set_chat_sticker_set<C, S>(
&self,
chat_id: C,
sticker_set_name: S,
) -> Self::SetChatStickerSet
where C: Into<Recipient>,
S: Into<String>;
fn delete_chat_sticker_set<C>(
&self,
chat_id: C,
) -> Self::DeleteChatStickerSet
where C: Into<Recipient>;
fn get_forum_topic_icon_stickers(&self) -> Self::GetForumTopicIconStickers;
fn create_forum_topic<C, N, I>(
&self,
chat_id: C,
name: N,
icon_color: u32,
icon_custom_emoji_id: I,
) -> Self::CreateForumTopic
where C: Into<Recipient>,
N: Into<String>,
I: Into<String>;
fn edit_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::EditForumTopic
where C: Into<Recipient>;
fn close_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::CloseForumTopic
where C: Into<Recipient>;
fn reopen_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::ReopenForumTopic
where C: Into<Recipient>;
fn delete_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::DeleteForumTopic
where C: Into<Recipient>;
fn unpin_all_forum_topic_messages<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::UnpinAllForumTopicMessages
where C: Into<Recipient>;
fn edit_general_forum_topic<C, N>(
&self,
chat_id: C,
name: N,
) -> Self::EditGeneralForumTopic
where C: Into<Recipient>,
N: Into<String>;
fn close_general_forum_topic<C>(
&self,
chat_id: C,
) -> Self::CloseGeneralForumTopic
where C: Into<Recipient>;
fn reopen_general_forum_topic<C>(
&self,
chat_id: C,
) -> Self::ReopenGeneralForumTopic
where C: Into<Recipient>;
fn hide_general_forum_topic<C>(
&self,
chat_id: C,
) -> Self::HideGeneralForumTopic
where C: Into<Recipient>;
fn unhide_general_forum_topic<C>(
&self,
chat_id: C,
) -> Self::UnhideGeneralForumTopic
where C: Into<Recipient>;
fn unpin_all_general_forum_topic_messages<C>(
&self,
chat_id: C,
) -> Self::UnpinAllGeneralForumTopicMessages
where C: Into<Recipient>;
fn answer_callback_query<C>(
&self,
callback_query_id: C,
) -> Self::AnswerCallbackQuery
where C: Into<String>;
fn get_user_chat_boosts<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::GetUserChatBoosts
where C: Into<Recipient>;
fn set_my_commands<C>(&self, commands: C) -> Self::SetMyCommands
where C: IntoIterator<Item = BotCommand>;
fn get_my_commands(&self) -> Self::GetMyCommands;
fn set_my_name(&self) -> Self::SetMyName;
fn get_my_name(&self) -> Self::GetMyName;
fn set_my_description(&self) -> Self::SetMyDescription;
fn get_my_description(&self) -> Self::GetMyDescription;
fn set_my_short_description(&self) -> Self::SetMyShortDescription;
fn get_my_short_description(&self) -> Self::GetMyShortDescription;
fn set_chat_menu_button(&self) -> Self::SetChatMenuButton;
fn get_chat_menu_button(&self) -> Self::GetChatMenuButton;
fn set_my_default_administrator_rights(
&self,
) -> Self::SetMyDefaultAdministratorRights;
fn get_my_default_administrator_rights(
&self,
) -> Self::GetMyDefaultAdministratorRights;
fn delete_my_commands(&self) -> Self::DeleteMyCommands;
fn answer_inline_query<I, R>(
&self,
inline_query_id: I,
results: R,
) -> Self::AnswerInlineQuery
where I: Into<String>,
R: IntoIterator<Item = InlineQueryResult>;
fn answer_web_app_query<W>(
&self,
web_app_query_id: W,
result: InlineQueryResult,
) -> Self::AnswerWebAppQuery
where W: Into<String>;
fn edit_message_text<C, T>(
&self,
chat_id: C,
message_id: MessageId,
text: T,
) -> Self::EditMessageText
where C: Into<Recipient>,
T: Into<String>;
fn edit_message_text_inline<I, T>(
&self,
inline_message_id: I,
text: T,
) -> Self::EditMessageTextInline
where I: Into<String>,
T: Into<String>;
fn edit_message_caption<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::EditMessageCaption
where C: Into<Recipient>;
fn edit_message_caption_inline<I>(
&self,
inline_message_id: I,
) -> Self::EditMessageCaptionInline
where I: Into<String>;
fn edit_message_media<C>(
&self,
chat_id: C,
message_id: MessageId,
media: InputMedia,
) -> Self::EditMessageMedia
where C: Into<Recipient>;
fn edit_message_media_inline<I>(
&self,
inline_message_id: I,
media: InputMedia,
) -> Self::EditMessageMediaInline
where I: Into<String>;
fn edit_message_reply_markup<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::EditMessageReplyMarkup
where C: Into<Recipient>;
fn edit_message_reply_markup_inline<I>(
&self,
inline_message_id: I,
) -> Self::EditMessageReplyMarkupInline
where I: Into<String>;
fn stop_poll<C>(&self, chat_id: C, message_id: MessageId) -> Self::StopPoll
where C: Into<Recipient>;
fn delete_message<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::DeleteMessage
where C: Into<Recipient>;
fn delete_messages<C, M>(
&self,
chat_id: C,
message_ids: M,
) -> Self::DeleteMessages
where C: Into<Recipient>,
M: IntoIterator<Item = MessageId>;
fn send_sticker<C>(
&self,
chat_id: C,
sticker: InputFile,
) -> Self::SendSticker
where C: Into<Recipient>;
fn get_sticker_set<N>(&self, name: N) -> Self::GetStickerSet
where N: Into<String>;
fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C,
) -> Self::GetCustomEmojiStickers
where C: IntoIterator<Item = String>;
fn upload_sticker_file(
&self,
user_id: UserId,
sticker: InputFile,
sticker_format: StickerFormat,
) -> Self::UploadStickerFile;
fn create_new_sticker_set<N, T, S>(
&self,
user_id: UserId,
name: N,
title: T,
stickers: S,
sticker_format: StickerFormat,
) -> Self::CreateNewStickerSet
where N: Into<String>,
T: Into<String>,
S: IntoIterator<Item = InputSticker>;
fn add_sticker_to_set<N>(
&self,
user_id: UserId,
name: N,
sticker: InputSticker,
) -> Self::AddStickerToSet
where N: Into<String>;
fn set_sticker_position_in_set<S>(
&self,
sticker: S,
position: u32,
) -> Self::SetStickerPositionInSet
where S: Into<String>;
fn delete_sticker_from_set<S>(
&self,
sticker: S,
) -> Self::DeleteStickerFromSet
where S: Into<String>;
fn set_sticker_set_thumbnail<N>(
&self,
name: N,
user_id: UserId,
) -> Self::SetStickerSetThumbnail
where N: Into<String>;
fn set_custom_emoji_sticker_set_thumbnail<N>(
&self,
name: N,
) -> Self::SetCustomEmojiStickerSetThumbnail
where N: Into<String>;
fn set_sticker_set_title<N, T>(
&self,
name: N,
title: T,
) -> Self::SetStickerSetTitle
where N: Into<String>,
T: Into<String>;
fn delete_sticker_set<N>(&self, name: N) -> Self::DeleteStickerSet
where N: Into<String>;
fn set_sticker_emoji_list<S, E>(
&self,
sticker: S,
emoji_list: E,
) -> Self::SetStickerEmojiList
where S: Into<String>,
E: IntoIterator<Item = String>;
fn set_sticker_keywords<S>(&self, sticker: S) -> Self::SetStickerKeywords
where S: Into<String>;
fn set_sticker_mask_position<S>(
&self,
sticker: S,
) -> Self::SetStickerMaskPosition
where S: Into<String>;
fn send_invoice<Ch, T, D, Pa, P, C, Pri>(
&self,
chat_id: Ch,
title: T,
description: D,
payload: Pa,
provider_token: P,
currency: C,
prices: Pri,
) -> Self::SendInvoice
where Ch: Into<Recipient>,
T: Into<String>,
D: Into<String>,
Pa: Into<String>,
P: Into<String>,
C: Into<String>,
Pri: IntoIterator<Item = LabeledPrice>;
fn create_invoice_link<T, D, Pa, P, C, Pri>(
&self,
title: T,
description: D,
payload: Pa,
provider_token: P,
currency: C,
prices: Pri,
) -> Self::CreateInvoiceLink
where T: Into<String>,
D: Into<String>,
Pa: Into<String>,
P: Into<String>,
C: Into<String>,
Pri: IntoIterator<Item = LabeledPrice>;
fn answer_shipping_query<S>(
&self,
shipping_query_id: S,
ok: bool,
) -> Self::AnswerShippingQuery
where S: Into<String>;
fn answer_pre_checkout_query<P>(
&self,
pre_checkout_query_id: P,
ok: bool,
) -> Self::AnswerPreCheckoutQuery
where P: Into<String>;
fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E,
) -> Self::SetPassportDataErrors
where E: IntoIterator<Item = PassportElementError>;
fn send_game<C, G>(&self, chat_id: C, game_short_name: G) -> Self::SendGame
where C: Into<ChatId>,
G: Into<String>;
fn set_game_score(
&self,
user_id: UserId,
score: u64,
chat_id: u32,
message_id: MessageId,
) -> Self::SetGameScore;
fn set_game_score_inline<I>(
&self,
user_id: UserId,
score: u64,
inline_message_id: I,
) -> Self::SetGameScoreInline
where I: Into<String>;
fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T,
) -> Self::GetGameHighScores
where T: Into<TargetMessage>;
}
Expand description
Telegram Bot API client.
This trait is implemented by all bots & bot adaptors.
§Calling Telegram Bot API methods
To call Telegram’s methods you first need to get a Bot
instance or any
other type which implement this trait.
Then you can simply call the method you want and pass required parameters to
it. Optional parameters can be supplied by calling setters (like
parse_mode
in the example below). Lastly, you need to .await
the request
created in previous steps, to actually send it to telegram and wait for the
response.
use teloxide_core::{
prelude::*,
types::{ChatId, ParseMode},
};
// Bot implements `Requester`
let bot = Bot::new("TOKEN");
// Required parameters are supplied to the `Requester` methods:
bot.send_message(chat_id, "<b>Text</b>")
// Optional parameters can be supplied by calling setters
.parse_mode(ParseMode::Html)
// To send request to telegram you need to `.await` the request
.await?;
§Adaptors
Similarly to how Iterator
has iterator adaptors (FlatMap
,
Filter
, etc) that wrap an Iterator
and alter its behaviour, Teloxide
has a similar story with Requester
.
adaptors
module provides a handful of Requester
adaptors that can be
created via RequesterExt
methods. For example using .parse_mode(...)
on a bot will wrap it in DefaultParseMode
adaptor which sets the parse
mode to a default value:
use teloxide_core::{
prelude::*,
types::{ChatId, ParseMode},
};
let bot = Bot::new("TOKEN")
// Wrap the bot in an adaptor
.parse_mode(ParseMode::Html);
// This will use `ParseMode::Html`
bot.send_message(chat_id, "<b>Text</b>").await?;
// This will use `ParseMode::MarkdownV2`
bot.send_message(chat_id, "**Text**").parse_mode(ParseMode::MarkdownV2).await?;
Note that just as with iterators, adaptors change type:
let bot: Bot = Bot::new("TOKEN").parse_mode(ParseMode::Html);
let bot: DefaultParseMode<Bot> = Bot::new("TOKEN").parse_mode(ParseMode::Html);
Because of this it’s oftentimes more convinient to have a type alias:
type Bot = DefaultParseMode<Throttle<teloxide_core::Bot>>;
let bot: Bot = teloxide_core::Bot::new("TOKEN")
.throttle(<_>::default())
.parse_mode(ParseMode::Html);
Also note that most adaptors require specific cargo features to be enabled.
For example, to use Throttle
you need to enable throttle
feature in
your Cargo.toml
:
teloxide_core = { version = "...", features = ["throttle"] }
Refer to adaptor’s documentation for information about what features it requires.
§Using Requester
in a generic context
When writing helper function you may be indifferent to which exact type is
being used as a bot and instead only care that it implements Requester
trait. In this case you can use generic bounds to express this exact thing:
use teloxide_core::{
prelude::*,
types::{ChatId, Message},
};
async fn send_hi<R>(bot: R, chat: ChatId) -> Message
where
R: Requester,
{
bot.send_message(chat, "hi").await.expect("error")
}
// `send_hi` can be called with `Bot`, `DefaultParseMode<Bot>` and so on, and so forth
Required Associated Types§
sourcetype Err: Error + Send + AsResponseParameters
type Err: Error + Send + AsResponseParameters
Error type returned by all requests.
type GetUpdates: Request<Payload = GetUpdates, Err = Self::Err>
type SetWebhook: Request<Payload = SetWebhook, Err = Self::Err>
type DeleteWebhook: Request<Payload = DeleteWebhook, Err = Self::Err>
type GetWebhookInfo: Request<Payload = GetWebhookInfo, Err = Self::Err>
type GetMe: Request<Payload = GetMe, Err = Self::Err>
type LogOut: Request<Payload = LogOut, Err = Self::Err>
type Close: Request<Payload = Close, Err = Self::Err>
type SendMessage: Request<Payload = SendMessage, Err = Self::Err>
type ForwardMessage: Request<Payload = ForwardMessage, Err = Self::Err>
type ForwardMessages: Request<Payload = ForwardMessages, Err = Self::Err>
type CopyMessage: Request<Payload = CopyMessage, Err = Self::Err>
type CopyMessages: Request<Payload = CopyMessages, Err = Self::Err>
type SendPhoto: Request<Payload = SendPhoto, Err = Self::Err>
type SendAudio: Request<Payload = SendAudio, Err = Self::Err>
type SendDocument: Request<Payload = SendDocument, Err = Self::Err>
type SendVideo: Request<Payload = SendVideo, Err = Self::Err>
type SendAnimation: Request<Payload = SendAnimation, Err = Self::Err>
type SendVoice: Request<Payload = SendVoice, Err = Self::Err>
type SendVideoNote: Request<Payload = SendVideoNote, Err = Self::Err>
type SendMediaGroup: Request<Payload = SendMediaGroup, Err = Self::Err>
type SendLocation: Request<Payload = SendLocation, Err = Self::Err>
type EditMessageLiveLocation: Request<Payload = EditMessageLiveLocation, Err = Self::Err>
type EditMessageLiveLocationInline: Request<Payload = EditMessageLiveLocationInline, Err = Self::Err>
type StopMessageLiveLocation: Request<Payload = StopMessageLiveLocation, Err = Self::Err>
type StopMessageLiveLocationInline: Request<Payload = StopMessageLiveLocationInline, Err = Self::Err>
type SendVenue: Request<Payload = SendVenue, Err = Self::Err>
type SendContact: Request<Payload = SendContact, Err = Self::Err>
type SendPoll: Request<Payload = SendPoll, Err = Self::Err>
type SendDice: Request<Payload = SendDice, Err = Self::Err>
type SendChatAction: Request<Payload = SendChatAction, Err = Self::Err>
type SetMessageReaction: Request<Payload = SetMessageReaction, Err = Self::Err>
type GetUserProfilePhotos: Request<Payload = GetUserProfilePhotos, Err = Self::Err>
type GetFile: Request<Payload = GetFile, Err = Self::Err>
type BanChatMember: Request<Payload = BanChatMember, Err = Self::Err>
type KickChatMember: Request<Payload = KickChatMember, Err = Self::Err>
type UnbanChatMember: Request<Payload = UnbanChatMember, Err = Self::Err>
type RestrictChatMember: Request<Payload = RestrictChatMember, Err = Self::Err>
type PromoteChatMember: Request<Payload = PromoteChatMember, Err = Self::Err>
type SetChatAdministratorCustomTitle: Request<Payload = SetChatAdministratorCustomTitle, Err = Self::Err>
type BanChatSenderChat: Request<Payload = BanChatSenderChat, Err = Self::Err>
type UnbanChatSenderChat: Request<Payload = UnbanChatSenderChat, Err = Self::Err>
type SetChatPermissions: Request<Payload = SetChatPermissions, Err = Self::Err>
type ExportChatInviteLink: Request<Payload = ExportChatInviteLink, Err = Self::Err>
type CreateChatInviteLink: Request<Payload = CreateChatInviteLink, Err = Self::Err>
type EditChatInviteLink: Request<Payload = EditChatInviteLink, Err = Self::Err>
type RevokeChatInviteLink: Request<Payload = RevokeChatInviteLink, Err = Self::Err>
type ApproveChatJoinRequest: Request<Payload = ApproveChatJoinRequest, Err = Self::Err>
type DeclineChatJoinRequest: Request<Payload = DeclineChatJoinRequest, Err = Self::Err>
type SetChatPhoto: Request<Payload = SetChatPhoto, Err = Self::Err>
type DeleteChatPhoto: Request<Payload = DeleteChatPhoto, Err = Self::Err>
type SetChatTitle: Request<Payload = SetChatTitle, Err = Self::Err>
type SetChatDescription: Request<Payload = SetChatDescription, Err = Self::Err>
type PinChatMessage: Request<Payload = PinChatMessage, Err = Self::Err>
type UnpinChatMessage: Request<Payload = UnpinChatMessage, Err = Self::Err>
type UnpinAllChatMessages: Request<Payload = UnpinAllChatMessages, Err = Self::Err>
type LeaveChat: Request<Payload = LeaveChat, Err = Self::Err>
type GetChat: Request<Payload = GetChat, Err = Self::Err>
type GetChatAdministrators: Request<Payload = GetChatAdministrators, Err = Self::Err>
type GetChatMemberCount: Request<Payload = GetChatMemberCount, Err = Self::Err>
type GetChatMembersCount: Request<Payload = GetChatMembersCount, Err = Self::Err>
type GetChatMember: Request<Payload = GetChatMember, Err = Self::Err>
type SetChatStickerSet: Request<Payload = SetChatStickerSet, Err = Self::Err>
type DeleteChatStickerSet: Request<Payload = DeleteChatStickerSet, Err = Self::Err>
type GetForumTopicIconStickers: Request<Payload = GetForumTopicIconStickers, Err = Self::Err>
type CreateForumTopic: Request<Payload = CreateForumTopic, Err = Self::Err>
type EditForumTopic: Request<Payload = EditForumTopic, Err = Self::Err>
type CloseForumTopic: Request<Payload = CloseForumTopic, Err = Self::Err>
type ReopenForumTopic: Request<Payload = ReopenForumTopic, Err = Self::Err>
type DeleteForumTopic: Request<Payload = DeleteForumTopic, Err = Self::Err>
type UnpinAllForumTopicMessages: Request<Payload = UnpinAllForumTopicMessages, Err = Self::Err>
type EditGeneralForumTopic: Request<Payload = EditGeneralForumTopic, Err = Self::Err>
type CloseGeneralForumTopic: Request<Payload = CloseGeneralForumTopic, Err = Self::Err>
type ReopenGeneralForumTopic: Request<Payload = ReopenGeneralForumTopic, Err = Self::Err>
type HideGeneralForumTopic: Request<Payload = HideGeneralForumTopic, Err = Self::Err>
type UnhideGeneralForumTopic: Request<Payload = UnhideGeneralForumTopic, Err = Self::Err>
type UnpinAllGeneralForumTopicMessages: Request<Payload = UnpinAllGeneralForumTopicMessages, Err = Self::Err>
type AnswerCallbackQuery: Request<Payload = AnswerCallbackQuery, Err = Self::Err>
type GetUserChatBoosts: Request<Payload = GetUserChatBoosts, Err = Self::Err>
type SetMyCommands: Request<Payload = SetMyCommands, Err = Self::Err>
type GetMyCommands: Request<Payload = GetMyCommands, Err = Self::Err>
type SetMyName: Request<Payload = SetMyName, Err = Self::Err>
type GetMyName: Request<Payload = GetMyName, Err = Self::Err>
type SetMyDescription: Request<Payload = SetMyDescription, Err = Self::Err>
type GetMyDescription: Request<Payload = GetMyDescription, Err = Self::Err>
type SetMyShortDescription: Request<Payload = SetMyShortDescription, Err = Self::Err>
type GetMyShortDescription: Request<Payload = GetMyShortDescription, Err = Self::Err>
type SetChatMenuButton: Request<Payload = SetChatMenuButton, Err = Self::Err>
type GetChatMenuButton: Request<Payload = GetChatMenuButton, Err = Self::Err>
type SetMyDefaultAdministratorRights: Request<Payload = SetMyDefaultAdministratorRights, Err = Self::Err>
type GetMyDefaultAdministratorRights: Request<Payload = GetMyDefaultAdministratorRights, Err = Self::Err>
type DeleteMyCommands: Request<Payload = DeleteMyCommands, Err = Self::Err>
type AnswerInlineQuery: Request<Payload = AnswerInlineQuery, Err = Self::Err>
type AnswerWebAppQuery: Request<Payload = AnswerWebAppQuery, Err = Self::Err>
type EditMessageText: Request<Payload = EditMessageText, Err = Self::Err>
type EditMessageTextInline: Request<Payload = EditMessageTextInline, Err = Self::Err>
type EditMessageCaption: Request<Payload = EditMessageCaption, Err = Self::Err>
type EditMessageCaptionInline: Request<Payload = EditMessageCaptionInline, Err = Self::Err>
type EditMessageMedia: Request<Payload = EditMessageMedia, Err = Self::Err>
type EditMessageMediaInline: Request<Payload = EditMessageMediaInline, Err = Self::Err>
type EditMessageReplyMarkup: Request<Payload = EditMessageReplyMarkup, Err = Self::Err>
type EditMessageReplyMarkupInline: Request<Payload = EditMessageReplyMarkupInline, Err = Self::Err>
type StopPoll: Request<Payload = StopPoll, Err = Self::Err>
type DeleteMessage: Request<Payload = DeleteMessage, Err = Self::Err>
type DeleteMessages: Request<Payload = DeleteMessages, Err = Self::Err>
type SendSticker: Request<Payload = SendSticker, Err = Self::Err>
type GetStickerSet: Request<Payload = GetStickerSet, Err = Self::Err>
type GetCustomEmojiStickers: Request<Payload = GetCustomEmojiStickers, Err = Self::Err>
type UploadStickerFile: Request<Payload = UploadStickerFile, Err = Self::Err>
type CreateNewStickerSet: Request<Payload = CreateNewStickerSet, Err = Self::Err>
type AddStickerToSet: Request<Payload = AddStickerToSet, Err = Self::Err>
type SetStickerPositionInSet: Request<Payload = SetStickerPositionInSet, Err = Self::Err>
type DeleteStickerFromSet: Request<Payload = DeleteStickerFromSet, Err = Self::Err>
type SetStickerSetThumbnail: Request<Payload = SetStickerSetThumbnail, Err = Self::Err>
type SetCustomEmojiStickerSetThumbnail: Request<Payload = SetCustomEmojiStickerSetThumbnail, Err = Self::Err>
type SetStickerSetTitle: Request<Payload = SetStickerSetTitle, Err = Self::Err>
type DeleteStickerSet: Request<Payload = DeleteStickerSet, Err = Self::Err>
type SetStickerEmojiList: Request<Payload = SetStickerEmojiList, Err = Self::Err>
type SetStickerKeywords: Request<Payload = SetStickerKeywords, Err = Self::Err>
type SetStickerMaskPosition: Request<Payload = SetStickerMaskPosition, Err = Self::Err>
type SendInvoice: Request<Payload = SendInvoice, Err = Self::Err>
type CreateInvoiceLink: Request<Payload = CreateInvoiceLink, Err = Self::Err>
type AnswerShippingQuery: Request<Payload = AnswerShippingQuery, Err = Self::Err>
type AnswerPreCheckoutQuery: Request<Payload = AnswerPreCheckoutQuery, Err = Self::Err>
type SetPassportDataErrors: Request<Payload = SetPassportDataErrors, Err = Self::Err>
type SendGame: Request<Payload = SendGame, Err = Self::Err>
type SetGameScore: Request<Payload = SetGameScore, Err = Self::Err>
type SetGameScoreInline: Request<Payload = SetGameScoreInline, Err = Self::Err>
type GetGameHighScores: Request<Payload = GetGameHighScores, Err = Self::Err>
Required Methods§
sourcefn get_updates(&self) -> Self::GetUpdates
fn get_updates(&self) -> Self::GetUpdates
For Telegram documentation see GetUpdates
.
sourcefn set_webhook(&self, url: Url) -> Self::SetWebhook
fn set_webhook(&self, url: Url) -> Self::SetWebhook
For Telegram documentation see SetWebhook
.
sourcefn delete_webhook(&self) -> Self::DeleteWebhook
fn delete_webhook(&self) -> Self::DeleteWebhook
For Telegram documentation see DeleteWebhook
.
sourcefn get_webhook_info(&self) -> Self::GetWebhookInfo
fn get_webhook_info(&self) -> Self::GetWebhookInfo
For Telegram documentation see GetWebhookInfo
.
sourcefn send_message<C, T>(&self, chat_id: C, text: T) -> Self::SendMessage
fn send_message<C, T>(&self, chat_id: C, text: T) -> Self::SendMessage
For Telegram documentation see SendMessage
.
sourcefn forward_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId,
) -> Self::ForwardMessage
fn forward_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> Self::ForwardMessage
For Telegram documentation see ForwardMessage
.
sourcefn forward_messages<C, F, M>(
&self,
chat_id: C,
from_chat_id: F,
message_ids: M,
) -> Self::ForwardMessages
fn forward_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> Self::ForwardMessages
For Telegram documentation see ForwardMessages
.
sourcefn copy_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId,
) -> Self::CopyMessage
fn copy_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> Self::CopyMessage
For Telegram documentation see CopyMessage
.
sourcefn copy_messages<C, F, M>(
&self,
chat_id: C,
from_chat_id: F,
message_ids: M,
) -> Self::CopyMessages
fn copy_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> Self::CopyMessages
For Telegram documentation see CopyMessages
.
sourcefn send_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SendPhoto
fn send_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SendPhoto
For Telegram documentation see SendPhoto
.
sourcefn send_audio<C>(&self, chat_id: C, audio: InputFile) -> Self::SendAudio
fn send_audio<C>(&self, chat_id: C, audio: InputFile) -> Self::SendAudio
For Telegram documentation see SendAudio
.
sourcefn send_document<C>(
&self,
chat_id: C,
document: InputFile,
) -> Self::SendDocument
fn send_document<C>( &self, chat_id: C, document: InputFile, ) -> Self::SendDocument
For Telegram documentation see SendDocument
.
sourcefn send_video<C>(&self, chat_id: C, video: InputFile) -> Self::SendVideo
fn send_video<C>(&self, chat_id: C, video: InputFile) -> Self::SendVideo
For Telegram documentation see SendVideo
.
sourcefn send_animation<C>(
&self,
chat_id: C,
animation: InputFile,
) -> Self::SendAnimation
fn send_animation<C>( &self, chat_id: C, animation: InputFile, ) -> Self::SendAnimation
For Telegram documentation see SendAnimation
.
sourcefn send_voice<C>(&self, chat_id: C, voice: InputFile) -> Self::SendVoice
fn send_voice<C>(&self, chat_id: C, voice: InputFile) -> Self::SendVoice
For Telegram documentation see SendVoice
.
sourcefn send_video_note<C>(
&self,
chat_id: C,
video_note: InputFile,
) -> Self::SendVideoNote
fn send_video_note<C>( &self, chat_id: C, video_note: InputFile, ) -> Self::SendVideoNote
For Telegram documentation see SendVideoNote
.
sourcefn send_media_group<C, M>(&self, chat_id: C, media: M) -> Self::SendMediaGroup
fn send_media_group<C, M>(&self, chat_id: C, media: M) -> Self::SendMediaGroup
For Telegram documentation see SendMediaGroup
.
sourcefn send_location<C>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
) -> Self::SendLocation
fn send_location<C>( &self, chat_id: C, latitude: f64, longitude: f64, ) -> Self::SendLocation
For Telegram documentation see SendLocation
.
sourcefn edit_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64,
) -> Self::EditMessageLiveLocation
fn edit_message_live_location<C>( &self, chat_id: C, message_id: MessageId, latitude: f64, longitude: f64, ) -> Self::EditMessageLiveLocation
For Telegram documentation see EditMessageLiveLocation
.
sourcefn edit_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64,
) -> Self::EditMessageLiveLocationInline
fn edit_message_live_location_inline<I>( &self, inline_message_id: I, latitude: f64, longitude: f64, ) -> Self::EditMessageLiveLocationInline
For Telegram documentation see EditMessageLiveLocationInline
.
sourcefn stop_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::StopMessageLiveLocation
fn stop_message_live_location<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::StopMessageLiveLocation
For Telegram documentation see StopMessageLiveLocation
.
sourcefn stop_message_live_location_inline<I>(
&self,
inline_message_id: I,
) -> Self::StopMessageLiveLocationInline
fn stop_message_live_location_inline<I>( &self, inline_message_id: I, ) -> Self::StopMessageLiveLocationInline
For Telegram documentation see StopMessageLiveLocationInline
.
sourcefn send_venue<C, T, A>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
title: T,
address: A,
) -> Self::SendVenue
fn send_venue<C, T, A>( &self, chat_id: C, latitude: f64, longitude: f64, title: T, address: A, ) -> Self::SendVenue
For Telegram documentation see SendVenue
.
sourcefn send_contact<C, P, F>(
&self,
chat_id: C,
phone_number: P,
first_name: F,
) -> Self::SendContact
fn send_contact<C, P, F>( &self, chat_id: C, phone_number: P, first_name: F, ) -> Self::SendContact
For Telegram documentation see SendContact
.
sourcefn send_poll<C, Q, O>(
&self,
chat_id: C,
question: Q,
options: O,
) -> Self::SendPoll
fn send_poll<C, Q, O>( &self, chat_id: C, question: Q, options: O, ) -> Self::SendPoll
For Telegram documentation see SendPoll
.
sourcefn send_chat_action<C>(
&self,
chat_id: C,
action: ChatAction,
) -> Self::SendChatAction
fn send_chat_action<C>( &self, chat_id: C, action: ChatAction, ) -> Self::SendChatAction
For Telegram documentation see SendChatAction
.
sourcefn set_message_reaction<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::SetMessageReaction
fn set_message_reaction<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::SetMessageReaction
For Telegram documentation see SetMessageReaction
.
sourcefn get_user_profile_photos(&self, user_id: UserId) -> Self::GetUserProfilePhotos
fn get_user_profile_photos(&self, user_id: UserId) -> Self::GetUserProfilePhotos
For Telegram documentation see GetUserProfilePhotos
.
sourcefn ban_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::BanChatMember
fn ban_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::BanChatMember
For Telegram documentation see BanChatMember
.
sourcefn kick_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::KickChatMember
fn kick_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::KickChatMember
For Telegram documentation see KickChatMember
.
sourcefn unban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::UnbanChatMember
fn unban_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::UnbanChatMember
For Telegram documentation see UnbanChatMember
.
sourcefn restrict_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
permissions: ChatPermissions,
) -> Self::RestrictChatMember
fn restrict_chat_member<C>( &self, chat_id: C, user_id: UserId, permissions: ChatPermissions, ) -> Self::RestrictChatMember
For Telegram documentation see RestrictChatMember
.
sourcefn promote_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::PromoteChatMember
fn promote_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::PromoteChatMember
For Telegram documentation see PromoteChatMember
.
sourcefn set_chat_administrator_custom_title<Ch, C>(
&self,
chat_id: Ch,
user_id: UserId,
custom_title: C,
) -> Self::SetChatAdministratorCustomTitle
fn set_chat_administrator_custom_title<Ch, C>( &self, chat_id: Ch, user_id: UserId, custom_title: C, ) -> Self::SetChatAdministratorCustomTitle
For Telegram documentation see SetChatAdministratorCustomTitle
.
sourcefn ban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S,
) -> Self::BanChatSenderChat
fn ban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> Self::BanChatSenderChat
For Telegram documentation see BanChatSenderChat
.
sourcefn unban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S,
) -> Self::UnbanChatSenderChat
fn unban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> Self::UnbanChatSenderChat
For Telegram documentation see UnbanChatSenderChat
.
sourcefn set_chat_permissions<C>(
&self,
chat_id: C,
permissions: ChatPermissions,
) -> Self::SetChatPermissions
fn set_chat_permissions<C>( &self, chat_id: C, permissions: ChatPermissions, ) -> Self::SetChatPermissions
For Telegram documentation see SetChatPermissions
.
sourcefn export_chat_invite_link<C>(&self, chat_id: C) -> Self::ExportChatInviteLink
fn export_chat_invite_link<C>(&self, chat_id: C) -> Self::ExportChatInviteLink
For Telegram documentation see ExportChatInviteLink
.
sourcefn create_chat_invite_link<C>(&self, chat_id: C) -> Self::CreateChatInviteLink
fn create_chat_invite_link<C>(&self, chat_id: C) -> Self::CreateChatInviteLink
For Telegram documentation see CreateChatInviteLink
.
sourcefn edit_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I,
) -> Self::EditChatInviteLink
fn edit_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::EditChatInviteLink
For Telegram documentation see EditChatInviteLink
.
sourcefn revoke_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I,
) -> Self::RevokeChatInviteLink
fn revoke_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::RevokeChatInviteLink
For Telegram documentation see RevokeChatInviteLink
.
sourcefn approve_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::ApproveChatJoinRequest
fn approve_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> Self::ApproveChatJoinRequest
For Telegram documentation see ApproveChatJoinRequest
.
sourcefn decline_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::DeclineChatJoinRequest
fn decline_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> Self::DeclineChatJoinRequest
For Telegram documentation see DeclineChatJoinRequest
.
sourcefn set_chat_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SetChatPhoto
fn set_chat_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SetChatPhoto
For Telegram documentation see SetChatPhoto
.
sourcefn delete_chat_photo<C>(&self, chat_id: C) -> Self::DeleteChatPhoto
fn delete_chat_photo<C>(&self, chat_id: C) -> Self::DeleteChatPhoto
For Telegram documentation see DeleteChatPhoto
.
sourcefn set_chat_title<C, T>(&self, chat_id: C, title: T) -> Self::SetChatTitle
fn set_chat_title<C, T>(&self, chat_id: C, title: T) -> Self::SetChatTitle
For Telegram documentation see SetChatTitle
.
sourcefn set_chat_description<C>(&self, chat_id: C) -> Self::SetChatDescription
fn set_chat_description<C>(&self, chat_id: C) -> Self::SetChatDescription
For Telegram documentation see SetChatDescription
.
sourcefn pin_chat_message<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::PinChatMessage
fn pin_chat_message<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::PinChatMessage
For Telegram documentation see PinChatMessage
.
sourcefn unpin_chat_message<C>(&self, chat_id: C) -> Self::UnpinChatMessage
fn unpin_chat_message<C>(&self, chat_id: C) -> Self::UnpinChatMessage
For Telegram documentation see UnpinChatMessage
.
sourcefn unpin_all_chat_messages<C>(&self, chat_id: C) -> Self::UnpinAllChatMessages
fn unpin_all_chat_messages<C>(&self, chat_id: C) -> Self::UnpinAllChatMessages
For Telegram documentation see UnpinAllChatMessages
.
sourcefn leave_chat<C>(&self, chat_id: C) -> Self::LeaveChat
fn leave_chat<C>(&self, chat_id: C) -> Self::LeaveChat
For Telegram documentation see LeaveChat
.
sourcefn get_chat_administrators<C>(&self, chat_id: C) -> Self::GetChatAdministrators
fn get_chat_administrators<C>(&self, chat_id: C) -> Self::GetChatAdministrators
For Telegram documentation see GetChatAdministrators
.
sourcefn get_chat_member_count<C>(&self, chat_id: C) -> Self::GetChatMemberCount
fn get_chat_member_count<C>(&self, chat_id: C) -> Self::GetChatMemberCount
For Telegram documentation see GetChatMemberCount
.
sourcefn get_chat_members_count<C>(&self, chat_id: C) -> Self::GetChatMembersCount
fn get_chat_members_count<C>(&self, chat_id: C) -> Self::GetChatMembersCount
For Telegram documentation see GetChatMembersCount
.
sourcefn get_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::GetChatMember
fn get_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::GetChatMember
For Telegram documentation see GetChatMember
.
sourcefn set_chat_sticker_set<C, S>(
&self,
chat_id: C,
sticker_set_name: S,
) -> Self::SetChatStickerSet
fn set_chat_sticker_set<C, S>( &self, chat_id: C, sticker_set_name: S, ) -> Self::SetChatStickerSet
For Telegram documentation see SetChatStickerSet
.
sourcefn delete_chat_sticker_set<C>(&self, chat_id: C) -> Self::DeleteChatStickerSet
fn delete_chat_sticker_set<C>(&self, chat_id: C) -> Self::DeleteChatStickerSet
For Telegram documentation see DeleteChatStickerSet
.
sourcefn get_forum_topic_icon_stickers(&self) -> Self::GetForumTopicIconStickers
fn get_forum_topic_icon_stickers(&self) -> Self::GetForumTopicIconStickers
For Telegram documentation see GetForumTopicIconStickers
.
sourcefn create_forum_topic<C, N, I>(
&self,
chat_id: C,
name: N,
icon_color: u32,
icon_custom_emoji_id: I,
) -> Self::CreateForumTopic
fn create_forum_topic<C, N, I>( &self, chat_id: C, name: N, icon_color: u32, icon_custom_emoji_id: I, ) -> Self::CreateForumTopic
For Telegram documentation see CreateForumTopic
.
sourcefn edit_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::EditForumTopic
fn edit_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::EditForumTopic
For Telegram documentation see EditForumTopic
.
sourcefn close_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::CloseForumTopic
fn close_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::CloseForumTopic
For Telegram documentation see CloseForumTopic
.
sourcefn reopen_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::ReopenForumTopic
fn reopen_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::ReopenForumTopic
For Telegram documentation see ReopenForumTopic
.
sourcefn delete_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::DeleteForumTopic
fn delete_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::DeleteForumTopic
For Telegram documentation see DeleteForumTopic
.
sourcefn unpin_all_forum_topic_messages<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::UnpinAllForumTopicMessages
fn unpin_all_forum_topic_messages<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::UnpinAllForumTopicMessages
For Telegram documentation see UnpinAllForumTopicMessages
.
sourcefn edit_general_forum_topic<C, N>(
&self,
chat_id: C,
name: N,
) -> Self::EditGeneralForumTopic
fn edit_general_forum_topic<C, N>( &self, chat_id: C, name: N, ) -> Self::EditGeneralForumTopic
For Telegram documentation see EditGeneralForumTopic
.
sourcefn close_general_forum_topic<C>(
&self,
chat_id: C,
) -> Self::CloseGeneralForumTopic
fn close_general_forum_topic<C>( &self, chat_id: C, ) -> Self::CloseGeneralForumTopic
For Telegram documentation see CloseGeneralForumTopic
.
sourcefn reopen_general_forum_topic<C>(
&self,
chat_id: C,
) -> Self::ReopenGeneralForumTopic
fn reopen_general_forum_topic<C>( &self, chat_id: C, ) -> Self::ReopenGeneralForumTopic
For Telegram documentation see ReopenGeneralForumTopic
.
sourcefn hide_general_forum_topic<C>(&self, chat_id: C) -> Self::HideGeneralForumTopic
fn hide_general_forum_topic<C>(&self, chat_id: C) -> Self::HideGeneralForumTopic
For Telegram documentation see HideGeneralForumTopic
.
sourcefn unhide_general_forum_topic<C>(
&self,
chat_id: C,
) -> Self::UnhideGeneralForumTopic
fn unhide_general_forum_topic<C>( &self, chat_id: C, ) -> Self::UnhideGeneralForumTopic
For Telegram documentation see UnhideGeneralForumTopic
.
sourcefn unpin_all_general_forum_topic_messages<C>(
&self,
chat_id: C,
) -> Self::UnpinAllGeneralForumTopicMessages
fn unpin_all_general_forum_topic_messages<C>( &self, chat_id: C, ) -> Self::UnpinAllGeneralForumTopicMessages
For Telegram documentation see UnpinAllGeneralForumTopicMessages
.
sourcefn answer_callback_query<C>(
&self,
callback_query_id: C,
) -> Self::AnswerCallbackQuery
fn answer_callback_query<C>( &self, callback_query_id: C, ) -> Self::AnswerCallbackQuery
For Telegram documentation see AnswerCallbackQuery
.
sourcefn get_user_chat_boosts<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::GetUserChatBoosts
fn get_user_chat_boosts<C>( &self, chat_id: C, user_id: UserId, ) -> Self::GetUserChatBoosts
For Telegram documentation see GetUserChatBoosts
.
sourcefn set_my_commands<C>(&self, commands: C) -> Self::SetMyCommandswhere
C: IntoIterator<Item = BotCommand>,
fn set_my_commands<C>(&self, commands: C) -> Self::SetMyCommandswhere
C: IntoIterator<Item = BotCommand>,
For Telegram documentation see SetMyCommands
.
sourcefn get_my_commands(&self) -> Self::GetMyCommands
fn get_my_commands(&self) -> Self::GetMyCommands
For Telegram documentation see GetMyCommands
.
sourcefn set_my_name(&self) -> Self::SetMyName
fn set_my_name(&self) -> Self::SetMyName
For Telegram documentation see SetMyName
.
sourcefn get_my_name(&self) -> Self::GetMyName
fn get_my_name(&self) -> Self::GetMyName
For Telegram documentation see GetMyName
.
sourcefn set_my_description(&self) -> Self::SetMyDescription
fn set_my_description(&self) -> Self::SetMyDescription
For Telegram documentation see SetMyDescription
.
sourcefn get_my_description(&self) -> Self::GetMyDescription
fn get_my_description(&self) -> Self::GetMyDescription
For Telegram documentation see GetMyDescription
.
sourcefn set_my_short_description(&self) -> Self::SetMyShortDescription
fn set_my_short_description(&self) -> Self::SetMyShortDescription
For Telegram documentation see SetMyShortDescription
.
sourcefn get_my_short_description(&self) -> Self::GetMyShortDescription
fn get_my_short_description(&self) -> Self::GetMyShortDescription
For Telegram documentation see GetMyShortDescription
.
For Telegram documentation see SetChatMenuButton
.
For Telegram documentation see GetChatMenuButton
.
sourcefn set_my_default_administrator_rights(
&self,
) -> Self::SetMyDefaultAdministratorRights
fn set_my_default_administrator_rights( &self, ) -> Self::SetMyDefaultAdministratorRights
For Telegram documentation see SetMyDefaultAdministratorRights
.
sourcefn get_my_default_administrator_rights(
&self,
) -> Self::GetMyDefaultAdministratorRights
fn get_my_default_administrator_rights( &self, ) -> Self::GetMyDefaultAdministratorRights
For Telegram documentation see GetMyDefaultAdministratorRights
.
sourcefn delete_my_commands(&self) -> Self::DeleteMyCommands
fn delete_my_commands(&self) -> Self::DeleteMyCommands
For Telegram documentation see DeleteMyCommands
.
sourcefn answer_inline_query<I, R>(
&self,
inline_query_id: I,
results: R,
) -> Self::AnswerInlineQuery
fn answer_inline_query<I, R>( &self, inline_query_id: I, results: R, ) -> Self::AnswerInlineQuery
For Telegram documentation see AnswerInlineQuery
.
sourcefn answer_web_app_query<W>(
&self,
web_app_query_id: W,
result: InlineQueryResult,
) -> Self::AnswerWebAppQuery
fn answer_web_app_query<W>( &self, web_app_query_id: W, result: InlineQueryResult, ) -> Self::AnswerWebAppQuery
For Telegram documentation see AnswerWebAppQuery
.
sourcefn edit_message_text<C, T>(
&self,
chat_id: C,
message_id: MessageId,
text: T,
) -> Self::EditMessageText
fn edit_message_text<C, T>( &self, chat_id: C, message_id: MessageId, text: T, ) -> Self::EditMessageText
For Telegram documentation see EditMessageText
.
sourcefn edit_message_text_inline<I, T>(
&self,
inline_message_id: I,
text: T,
) -> Self::EditMessageTextInline
fn edit_message_text_inline<I, T>( &self, inline_message_id: I, text: T, ) -> Self::EditMessageTextInline
For Telegram documentation see EditMessageTextInline
.
For Telegram documentation see EditMessageCaption
.
For Telegram documentation see EditMessageCaptionInline
.
sourcefn edit_message_media<C>(
&self,
chat_id: C,
message_id: MessageId,
media: InputMedia,
) -> Self::EditMessageMedia
fn edit_message_media<C>( &self, chat_id: C, message_id: MessageId, media: InputMedia, ) -> Self::EditMessageMedia
For Telegram documentation see EditMessageMedia
.
sourcefn edit_message_media_inline<I>(
&self,
inline_message_id: I,
media: InputMedia,
) -> Self::EditMessageMediaInline
fn edit_message_media_inline<I>( &self, inline_message_id: I, media: InputMedia, ) -> Self::EditMessageMediaInline
For Telegram documentation see EditMessageMediaInline
.
sourcefn edit_message_reply_markup<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::EditMessageReplyMarkup
fn edit_message_reply_markup<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::EditMessageReplyMarkup
For Telegram documentation see EditMessageReplyMarkup
.
sourcefn edit_message_reply_markup_inline<I>(
&self,
inline_message_id: I,
) -> Self::EditMessageReplyMarkupInline
fn edit_message_reply_markup_inline<I>( &self, inline_message_id: I, ) -> Self::EditMessageReplyMarkupInline
For Telegram documentation see EditMessageReplyMarkupInline
.
sourcefn stop_poll<C>(&self, chat_id: C, message_id: MessageId) -> Self::StopPoll
fn stop_poll<C>(&self, chat_id: C, message_id: MessageId) -> Self::StopPoll
For Telegram documentation see StopPoll
.
sourcefn delete_message<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::DeleteMessage
fn delete_message<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::DeleteMessage
For Telegram documentation see DeleteMessage
.
sourcefn delete_messages<C, M>(
&self,
chat_id: C,
message_ids: M,
) -> Self::DeleteMessages
fn delete_messages<C, M>( &self, chat_id: C, message_ids: M, ) -> Self::DeleteMessages
For Telegram documentation see DeleteMessages
.
sourcefn send_sticker<C>(&self, chat_id: C, sticker: InputFile) -> Self::SendSticker
fn send_sticker<C>(&self, chat_id: C, sticker: InputFile) -> Self::SendSticker
For Telegram documentation see SendSticker
.
sourcefn get_sticker_set<N>(&self, name: N) -> Self::GetStickerSet
fn get_sticker_set<N>(&self, name: N) -> Self::GetStickerSet
For Telegram documentation see GetStickerSet
.
sourcefn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C,
) -> Self::GetCustomEmojiStickerswhere
C: IntoIterator<Item = String>,
fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C,
) -> Self::GetCustomEmojiStickerswhere
C: IntoIterator<Item = String>,
For Telegram documentation see GetCustomEmojiStickers
.
sourcefn upload_sticker_file(
&self,
user_id: UserId,
sticker: InputFile,
sticker_format: StickerFormat,
) -> Self::UploadStickerFile
fn upload_sticker_file( &self, user_id: UserId, sticker: InputFile, sticker_format: StickerFormat, ) -> Self::UploadStickerFile
For Telegram documentation see UploadStickerFile
.
sourcefn create_new_sticker_set<N, T, S>(
&self,
user_id: UserId,
name: N,
title: T,
stickers: S,
sticker_format: StickerFormat,
) -> Self::CreateNewStickerSet
fn create_new_sticker_set<N, T, S>( &self, user_id: UserId, name: N, title: T, stickers: S, sticker_format: StickerFormat, ) -> Self::CreateNewStickerSet
For Telegram documentation see CreateNewStickerSet
.
sourcefn add_sticker_to_set<N>(
&self,
user_id: UserId,
name: N,
sticker: InputSticker,
) -> Self::AddStickerToSet
fn add_sticker_to_set<N>( &self, user_id: UserId, name: N, sticker: InputSticker, ) -> Self::AddStickerToSet
For Telegram documentation see AddStickerToSet
.
sourcefn set_sticker_position_in_set<S>(
&self,
sticker: S,
position: u32,
) -> Self::SetStickerPositionInSet
fn set_sticker_position_in_set<S>( &self, sticker: S, position: u32, ) -> Self::SetStickerPositionInSet
For Telegram documentation see SetStickerPositionInSet
.
sourcefn delete_sticker_from_set<S>(&self, sticker: S) -> Self::DeleteStickerFromSet
fn delete_sticker_from_set<S>(&self, sticker: S) -> Self::DeleteStickerFromSet
For Telegram documentation see DeleteStickerFromSet
.
sourcefn set_sticker_set_thumbnail<N>(
&self,
name: N,
user_id: UserId,
) -> Self::SetStickerSetThumbnail
fn set_sticker_set_thumbnail<N>( &self, name: N, user_id: UserId, ) -> Self::SetStickerSetThumbnail
For Telegram documentation see SetStickerSetThumbnail
.
sourcefn set_custom_emoji_sticker_set_thumbnail<N>(
&self,
name: N,
) -> Self::SetCustomEmojiStickerSetThumbnail
fn set_custom_emoji_sticker_set_thumbnail<N>( &self, name: N, ) -> Self::SetCustomEmojiStickerSetThumbnail
For Telegram documentation see SetCustomEmojiStickerSetThumbnail
.
sourcefn set_sticker_set_title<N, T>(
&self,
name: N,
title: T,
) -> Self::SetStickerSetTitle
fn set_sticker_set_title<N, T>( &self, name: N, title: T, ) -> Self::SetStickerSetTitle
For Telegram documentation see SetStickerSetTitle
.
sourcefn delete_sticker_set<N>(&self, name: N) -> Self::DeleteStickerSet
fn delete_sticker_set<N>(&self, name: N) -> Self::DeleteStickerSet
For Telegram documentation see DeleteStickerSet
.
sourcefn set_sticker_emoji_list<S, E>(
&self,
sticker: S,
emoji_list: E,
) -> Self::SetStickerEmojiList
fn set_sticker_emoji_list<S, E>( &self, sticker: S, emoji_list: E, ) -> Self::SetStickerEmojiList
For Telegram documentation see SetStickerEmojiList
.
sourcefn set_sticker_keywords<S>(&self, sticker: S) -> Self::SetStickerKeywords
fn set_sticker_keywords<S>(&self, sticker: S) -> Self::SetStickerKeywords
For Telegram documentation see SetStickerKeywords
.
sourcefn set_sticker_mask_position<S>(
&self,
sticker: S,
) -> Self::SetStickerMaskPosition
fn set_sticker_mask_position<S>( &self, sticker: S, ) -> Self::SetStickerMaskPosition
For Telegram documentation see SetStickerMaskPosition
.
sourcefn send_invoice<Ch, T, D, Pa, P, C, Pri>(
&self,
chat_id: Ch,
title: T,
description: D,
payload: Pa,
provider_token: P,
currency: C,
prices: Pri,
) -> Self::SendInvoice
fn send_invoice<Ch, T, D, Pa, P, C, Pri>( &self, chat_id: Ch, title: T, description: D, payload: Pa, provider_token: P, currency: C, prices: Pri, ) -> Self::SendInvoice
For Telegram documentation see SendInvoice
.
sourcefn create_invoice_link<T, D, Pa, P, C, Pri>(
&self,
title: T,
description: D,
payload: Pa,
provider_token: P,
currency: C,
prices: Pri,
) -> Self::CreateInvoiceLink
fn create_invoice_link<T, D, Pa, P, C, Pri>( &self, title: T, description: D, payload: Pa, provider_token: P, currency: C, prices: Pri, ) -> Self::CreateInvoiceLink
For Telegram documentation see CreateInvoiceLink
.
sourcefn answer_shipping_query<S>(
&self,
shipping_query_id: S,
ok: bool,
) -> Self::AnswerShippingQuery
fn answer_shipping_query<S>( &self, shipping_query_id: S, ok: bool, ) -> Self::AnswerShippingQuery
For Telegram documentation see AnswerShippingQuery
.
sourcefn answer_pre_checkout_query<P>(
&self,
pre_checkout_query_id: P,
ok: bool,
) -> Self::AnswerPreCheckoutQuery
fn answer_pre_checkout_query<P>( &self, pre_checkout_query_id: P, ok: bool, ) -> Self::AnswerPreCheckoutQuery
For Telegram documentation see AnswerPreCheckoutQuery
.
sourcefn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E,
) -> Self::SetPassportDataErrorswhere
E: IntoIterator<Item = PassportElementError>,
fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E,
) -> Self::SetPassportDataErrorswhere
E: IntoIterator<Item = PassportElementError>,
For Telegram documentation see SetPassportDataErrors
.
sourcefn send_game<C, G>(&self, chat_id: C, game_short_name: G) -> Self::SendGame
fn send_game<C, G>(&self, chat_id: C, game_short_name: G) -> Self::SendGame
For Telegram documentation see SendGame
.
sourcefn set_game_score(
&self,
user_id: UserId,
score: u64,
chat_id: u32,
message_id: MessageId,
) -> Self::SetGameScore
fn set_game_score( &self, user_id: UserId, score: u64, chat_id: u32, message_id: MessageId, ) -> Self::SetGameScore
For Telegram documentation see SetGameScore
.
sourcefn set_game_score_inline<I>(
&self,
user_id: UserId,
score: u64,
inline_message_id: I,
) -> Self::SetGameScoreInline
fn set_game_score_inline<I>( &self, user_id: UserId, score: u64, inline_message_id: I, ) -> Self::SetGameScoreInline
For Telegram documentation see SetGameScoreInline
.
sourcefn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T,
) -> Self::GetGameHighScoreswhere
T: Into<TargetMessage>,
fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T,
) -> Self::GetGameHighScoreswhere
T: Into<TargetMessage>,
For Telegram documentation see GetGameHighScores
.
Object Safety§
Implementations on Foreign Types§
source§impl<B> Requester for &Bwhere
B: Requester,
impl<B> Requester for &Bwhere
B: Requester,
type Err = <B as Requester>::Err
type GetMe = <B as Requester>::GetMe
fn get_me(&self) -> Self::GetMe
type LogOut = <B as Requester>::LogOut
fn log_out(&self) -> Self::LogOut
type Close = <B as Requester>::Close
fn close(&self) -> Self::Close
type GetUpdates = <B as Requester>::GetUpdates
fn get_updates(&self) -> Self::GetUpdates
type SetWebhook = <B as Requester>::SetWebhook
fn set_webhook(&self, url: Url) -> Self::SetWebhook
type DeleteWebhook = <B as Requester>::DeleteWebhook
fn delete_webhook(&self) -> Self::DeleteWebhook
type GetWebhookInfo = <B as Requester>::GetWebhookInfo
fn get_webhook_info(&self) -> Self::GetWebhookInfo
type ForwardMessage = <B as Requester>::ForwardMessage
fn forward_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> Self::ForwardMessage
type ForwardMessages = <B as Requester>::ForwardMessages
fn forward_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> Self::ForwardMessages
type CopyMessage = <B as Requester>::CopyMessage
fn copy_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> Self::CopyMessage
type CopyMessages = <B as Requester>::CopyMessages
fn copy_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> Self::CopyMessages
type SendMessage = <B as Requester>::SendMessage
fn send_message<C, T>(&self, chat_id: C, text: T) -> Self::SendMessage
type SendPhoto = <B as Requester>::SendPhoto
fn send_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SendPhoto
type SendAudio = <B as Requester>::SendAudio
fn send_audio<C>(&self, chat_id: C, audio: InputFile) -> Self::SendAudio
type SendDocument = <B as Requester>::SendDocument
fn send_document<C>( &self, chat_id: C, document: InputFile, ) -> Self::SendDocument
type SendVideo = <B as Requester>::SendVideo
fn send_video<C>(&self, chat_id: C, video: InputFile) -> Self::SendVideo
type SendAnimation = <B as Requester>::SendAnimation
fn send_animation<C>( &self, chat_id: C, animation: InputFile, ) -> Self::SendAnimation
type SendVoice = <B as Requester>::SendVoice
fn send_voice<C>(&self, chat_id: C, voice: InputFile) -> Self::SendVoice
type SendVideoNote = <B as Requester>::SendVideoNote
fn send_video_note<C>( &self, chat_id: C, video_note: InputFile, ) -> Self::SendVideoNote
type SendMediaGroup = <B as Requester>::SendMediaGroup
fn send_media_group<C, M>(&self, chat_id: C, media: M) -> Self::SendMediaGroup
type SendLocation = <B as Requester>::SendLocation
fn send_location<C>( &self, chat_id: C, latitude: f64, longitude: f64, ) -> Self::SendLocation
type EditMessageLiveLocation = <B as Requester>::EditMessageLiveLocation
fn edit_message_live_location<C>( &self, chat_id: C, message_id: MessageId, latitude: f64, longitude: f64, ) -> Self::EditMessageLiveLocation
type EditMessageLiveLocationInline = <B as Requester>::EditMessageLiveLocationInline
fn edit_message_live_location_inline<I>( &self, inline_message_id: I, latitude: f64, longitude: f64, ) -> Self::EditMessageLiveLocationInline
type StopMessageLiveLocation = <B as Requester>::StopMessageLiveLocation
fn stop_message_live_location<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::StopMessageLiveLocation
type StopMessageLiveLocationInline = <B as Requester>::StopMessageLiveLocationInline
fn stop_message_live_location_inline<I>( &self, inline_message_id: I, ) -> Self::StopMessageLiveLocationInline
type SendVenue = <B as Requester>::SendVenue
fn send_venue<C, T, A>( &self, chat_id: C, latitude: f64, longitude: f64, title: T, address: A, ) -> Self::SendVenue
type SendContact = <B as Requester>::SendContact
fn send_contact<C, P, F>( &self, chat_id: C, phone_number: P, first_name: F, ) -> Self::SendContact
type SendPoll = <B as Requester>::SendPoll
fn send_poll<C, Q, O>( &self, chat_id: C, question: Q, options: O, ) -> Self::SendPoll
type SendDice = <B as Requester>::SendDice
fn send_dice<C>(&self, chat_id: C) -> Self::SendDice
type SendChatAction = <B as Requester>::SendChatAction
fn send_chat_action<C>( &self, chat_id: C, action: ChatAction, ) -> Self::SendChatAction
type SetMessageReaction = <B as Requester>::SetMessageReaction
fn set_message_reaction<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::SetMessageReaction
type GetUserProfilePhotos = <B as Requester>::GetUserProfilePhotos
fn get_user_profile_photos(&self, user_id: UserId) -> Self::GetUserProfilePhotos
type GetFile = <B as Requester>::GetFile
fn get_file<F>(&self, file_id: F) -> Self::GetFile
type KickChatMember = <B as Requester>::KickChatMember
fn kick_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::KickChatMember
type BanChatMember = <B as Requester>::BanChatMember
fn ban_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::BanChatMember
type UnbanChatMember = <B as Requester>::UnbanChatMember
fn unban_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::UnbanChatMember
type RestrictChatMember = <B as Requester>::RestrictChatMember
fn restrict_chat_member<C>( &self, chat_id: C, user_id: UserId, permissions: ChatPermissions, ) -> Self::RestrictChatMember
type PromoteChatMember = <B as Requester>::PromoteChatMember
fn promote_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::PromoteChatMember
type SetChatAdministratorCustomTitle = <B as Requester>::SetChatAdministratorCustomTitle
fn set_chat_administrator_custom_title<Ch, C>( &self, chat_id: Ch, user_id: UserId, custom_title: C, ) -> Self::SetChatAdministratorCustomTitle
type BanChatSenderChat = <B as Requester>::BanChatSenderChat
fn ban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> Self::BanChatSenderChat
type UnbanChatSenderChat = <B as Requester>::UnbanChatSenderChat
fn unban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> Self::UnbanChatSenderChat
type SetChatPermissions = <B as Requester>::SetChatPermissions
fn set_chat_permissions<C>( &self, chat_id: C, permissions: ChatPermissions, ) -> Self::SetChatPermissions
type ExportChatInviteLink = <B as Requester>::ExportChatInviteLink
fn export_chat_invite_link<C>(&self, chat_id: C) -> Self::ExportChatInviteLink
type CreateChatInviteLink = <B as Requester>::CreateChatInviteLink
fn create_chat_invite_link<C>(&self, chat_id: C) -> Self::CreateChatInviteLink
type EditChatInviteLink = <B as Requester>::EditChatInviteLink
fn edit_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::EditChatInviteLink
type RevokeChatInviteLink = <B as Requester>::RevokeChatInviteLink
fn revoke_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::RevokeChatInviteLink
type SetChatPhoto = <B as Requester>::SetChatPhoto
fn set_chat_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SetChatPhoto
type DeleteChatPhoto = <B as Requester>::DeleteChatPhoto
fn delete_chat_photo<C>(&self, chat_id: C) -> Self::DeleteChatPhoto
type SetChatTitle = <B as Requester>::SetChatTitle
fn set_chat_title<C, T>(&self, chat_id: C, title: T) -> Self::SetChatTitle
type SetChatDescription = <B as Requester>::SetChatDescription
fn set_chat_description<C>(&self, chat_id: C) -> Self::SetChatDescription
type PinChatMessage = <B as Requester>::PinChatMessage
fn pin_chat_message<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::PinChatMessage
type UnpinChatMessage = <B as Requester>::UnpinChatMessage
fn unpin_chat_message<C>(&self, chat_id: C) -> Self::UnpinChatMessage
type UnpinAllChatMessages = <B as Requester>::UnpinAllChatMessages
fn unpin_all_chat_messages<C>(&self, chat_id: C) -> Self::UnpinAllChatMessages
type LeaveChat = <B as Requester>::LeaveChat
fn leave_chat<C>(&self, chat_id: C) -> Self::LeaveChat
type GetChat = <B as Requester>::GetChat
fn get_chat<C>(&self, chat_id: C) -> Self::GetChat
type GetChatAdministrators = <B as Requester>::GetChatAdministrators
fn get_chat_administrators<C>(&self, chat_id: C) -> Self::GetChatAdministrators
type GetChatMembersCount = <B as Requester>::GetChatMembersCount
fn get_chat_members_count<C>(&self, chat_id: C) -> Self::GetChatMembersCount
type GetChatMemberCount = <B as Requester>::GetChatMemberCount
fn get_chat_member_count<C>(&self, chat_id: C) -> Self::GetChatMemberCount
type GetChatMember = <B as Requester>::GetChatMember
fn get_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::GetChatMember
type SetChatStickerSet = <B as Requester>::SetChatStickerSet
fn set_chat_sticker_set<C, S>( &self, chat_id: C, sticker_set_name: S, ) -> Self::SetChatStickerSet
type DeleteChatStickerSet = <B as Requester>::DeleteChatStickerSet
fn delete_chat_sticker_set<C>(&self, chat_id: C) -> Self::DeleteChatStickerSet
type GetForumTopicIconStickers = <B as Requester>::GetForumTopicIconStickers
fn get_forum_topic_icon_stickers(&self) -> Self::GetForumTopicIconStickers
type CreateForumTopic = <B as Requester>::CreateForumTopic
fn create_forum_topic<C, N, I>( &self, chat_id: C, name: N, icon_color: u32, icon_custom_emoji_id: I, ) -> Self::CreateForumTopic
type EditForumTopic = <B as Requester>::EditForumTopic
fn edit_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::EditForumTopic
type CloseForumTopic = <B as Requester>::CloseForumTopic
fn close_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::CloseForumTopic
type ReopenForumTopic = <B as Requester>::ReopenForumTopic
fn reopen_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::ReopenForumTopic
type DeleteForumTopic = <B as Requester>::DeleteForumTopic
fn delete_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::DeleteForumTopic
type UnpinAllForumTopicMessages = <B as Requester>::UnpinAllForumTopicMessages
fn unpin_all_forum_topic_messages<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::UnpinAllForumTopicMessages
type EditGeneralForumTopic = <B as Requester>::EditGeneralForumTopic
fn edit_general_forum_topic<C, N>( &self, chat_id: C, name: N, ) -> Self::EditGeneralForumTopic
type CloseGeneralForumTopic = <B as Requester>::CloseGeneralForumTopic
fn close_general_forum_topic<C>( &self, chat_id: C, ) -> Self::CloseGeneralForumTopic
type ReopenGeneralForumTopic = <B as Requester>::ReopenGeneralForumTopic
fn reopen_general_forum_topic<C>( &self, chat_id: C, ) -> Self::ReopenGeneralForumTopic
type HideGeneralForumTopic = <B as Requester>::HideGeneralForumTopic
fn hide_general_forum_topic<C>(&self, chat_id: C) -> Self::HideGeneralForumTopic
type UnhideGeneralForumTopic = <B as Requester>::UnhideGeneralForumTopic
fn unhide_general_forum_topic<C>( &self, chat_id: C, ) -> Self::UnhideGeneralForumTopic
type UnpinAllGeneralForumTopicMessages = <B as Requester>::UnpinAllGeneralForumTopicMessages
fn unpin_all_general_forum_topic_messages<C>( &self, chat_id: C, ) -> Self::UnpinAllGeneralForumTopicMessages
type AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery
fn answer_callback_query<C>( &self, callback_query_id: C, ) -> Self::AnswerCallbackQuery
type GetUserChatBoosts = <B as Requester>::GetUserChatBoosts
fn get_user_chat_boosts<C>( &self, chat_id: C, user_id: UserId, ) -> Self::GetUserChatBoosts
type SetMyCommands = <B as Requester>::SetMyCommands
fn set_my_commands<C>(&self, commands: C) -> Self::SetMyCommandswhere
C: IntoIterator<Item = BotCommand>,
type GetMyCommands = <B as Requester>::GetMyCommands
fn get_my_commands(&self) -> Self::GetMyCommands
type SetMyName = <B as Requester>::SetMyName
fn set_my_name(&self) -> Self::SetMyName
type GetMyName = <B as Requester>::GetMyName
fn get_my_name(&self) -> Self::GetMyName
type SetMyDescription = <B as Requester>::SetMyDescription
fn set_my_description(&self) -> Self::SetMyDescription
type GetMyDescription = <B as Requester>::GetMyDescription
fn get_my_description(&self) -> Self::GetMyDescription
type SetMyShortDescription = <B as Requester>::SetMyShortDescription
fn set_my_short_description(&self) -> Self::SetMyShortDescription
type GetMyShortDescription = <B as Requester>::GetMyShortDescription
fn get_my_short_description(&self) -> Self::GetMyShortDescription
type SetChatMenuButton = <B as Requester>::SetChatMenuButton
type GetChatMenuButton = <B as Requester>::GetChatMenuButton
type SetMyDefaultAdministratorRights = <B as Requester>::SetMyDefaultAdministratorRights
fn set_my_default_administrator_rights( &self, ) -> Self::SetMyDefaultAdministratorRights
type GetMyDefaultAdministratorRights = <B as Requester>::GetMyDefaultAdministratorRights
fn get_my_default_administrator_rights( &self, ) -> Self::GetMyDefaultAdministratorRights
type DeleteMyCommands = <B as Requester>::DeleteMyCommands
fn delete_my_commands(&self) -> Self::DeleteMyCommands
type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery
fn answer_inline_query<I, R>( &self, inline_query_id: I, results: R, ) -> Self::AnswerInlineQuery
type AnswerWebAppQuery = <B as Requester>::AnswerWebAppQuery
fn answer_web_app_query<W>( &self, web_app_query_id: W, result: InlineQueryResult, ) -> Self::AnswerWebAppQuery
type EditMessageText = <B as Requester>::EditMessageText
fn edit_message_text<C, T>( &self, chat_id: C, message_id: MessageId, text: T, ) -> Self::EditMessageText
type EditMessageTextInline = <B as Requester>::EditMessageTextInline
fn edit_message_text_inline<I, T>( &self, inline_message_id: I, text: T, ) -> Self::EditMessageTextInline
type EditMessageCaption = <B as Requester>::EditMessageCaption
type EditMessageCaptionInline = <B as Requester>::EditMessageCaptionInline
type EditMessageMedia = <B as Requester>::EditMessageMedia
fn edit_message_media<C>( &self, chat_id: C, message_id: MessageId, media: InputMedia, ) -> Self::EditMessageMedia
type EditMessageMediaInline = <B as Requester>::EditMessageMediaInline
fn edit_message_media_inline<I>( &self, inline_message_id: I, media: InputMedia, ) -> Self::EditMessageMediaInline
type EditMessageReplyMarkup = <B as Requester>::EditMessageReplyMarkup
fn edit_message_reply_markup<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::EditMessageReplyMarkup
type EditMessageReplyMarkupInline = <B as Requester>::EditMessageReplyMarkupInline
fn edit_message_reply_markup_inline<I>( &self, inline_message_id: I, ) -> Self::EditMessageReplyMarkupInline
type StopPoll = <B as Requester>::StopPoll
fn stop_poll<C>(&self, chat_id: C, message_id: MessageId) -> Self::StopPoll
type DeleteMessage = <B as Requester>::DeleteMessage
fn delete_message<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::DeleteMessage
type DeleteMessages = <B as Requester>::DeleteMessages
fn delete_messages<C, M>( &self, chat_id: C, message_ids: M, ) -> Self::DeleteMessages
type SendSticker = <B as Requester>::SendSticker
fn send_sticker<C>(&self, chat_id: C, sticker: InputFile) -> Self::SendSticker
type GetStickerSet = <B as Requester>::GetStickerSet
fn get_sticker_set<N>(&self, name: N) -> Self::GetStickerSet
type GetCustomEmojiStickers = <B as Requester>::GetCustomEmojiStickers
fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C,
) -> Self::GetCustomEmojiStickerswhere
C: IntoIterator<Item = String>,
type UploadStickerFile = <B as Requester>::UploadStickerFile
fn upload_sticker_file( &self, user_id: UserId, sticker: InputFile, sticker_format: StickerFormat, ) -> Self::UploadStickerFile
type CreateNewStickerSet = <B as Requester>::CreateNewStickerSet
fn create_new_sticker_set<N, T, S>( &self, user_id: UserId, name: N, title: T, stickers: S, sticker_format: StickerFormat, ) -> Self::CreateNewStickerSet
type AddStickerToSet = <B as Requester>::AddStickerToSet
fn add_sticker_to_set<N>( &self, user_id: UserId, name: N, sticker: InputSticker, ) -> Self::AddStickerToSet
type SetStickerPositionInSet = <B as Requester>::SetStickerPositionInSet
fn set_sticker_position_in_set<S>( &self, sticker: S, position: u32, ) -> Self::SetStickerPositionInSet
type DeleteStickerFromSet = <B as Requester>::DeleteStickerFromSet
fn delete_sticker_from_set<S>(&self, sticker: S) -> Self::DeleteStickerFromSet
type SetStickerSetThumbnail = <B as Requester>::SetStickerSetThumbnail
fn set_sticker_set_thumbnail<N>( &self, name: N, user_id: UserId, ) -> Self::SetStickerSetThumbnail
type SetCustomEmojiStickerSetThumbnail = <B as Requester>::SetCustomEmojiStickerSetThumbnail
fn set_custom_emoji_sticker_set_thumbnail<N>( &self, name: N, ) -> Self::SetCustomEmojiStickerSetThumbnail
type SetStickerSetTitle = <B as Requester>::SetStickerSetTitle
fn set_sticker_set_title<N, T>( &self, name: N, title: T, ) -> Self::SetStickerSetTitle
type DeleteStickerSet = <B as Requester>::DeleteStickerSet
fn delete_sticker_set<N>(&self, name: N) -> Self::DeleteStickerSet
type SetStickerEmojiList = <B as Requester>::SetStickerEmojiList
fn set_sticker_emoji_list<S, E>( &self, sticker: S, emoji_list: E, ) -> Self::SetStickerEmojiList
type SetStickerKeywords = <B as Requester>::SetStickerKeywords
fn set_sticker_keywords<S>(&self, sticker: S) -> Self::SetStickerKeywords
type SetStickerMaskPosition = <B as Requester>::SetStickerMaskPosition
fn set_sticker_mask_position<S>( &self, sticker: S, ) -> Self::SetStickerMaskPosition
type SendInvoice = <B as Requester>::SendInvoice
fn send_invoice<Ch, T, D, Pa, P, C, Pri>( &self, chat_id: Ch, title: T, description: D, payload: Pa, provider_token: P, currency: C, prices: Pri, ) -> Self::SendInvoice
type CreateInvoiceLink = <B as Requester>::CreateInvoiceLink
fn create_invoice_link<T, D, Pa, P, C, Pri>( &self, title: T, description: D, payload: Pa, provider_token: P, currency: C, prices: Pri, ) -> Self::CreateInvoiceLink
type AnswerShippingQuery = <B as Requester>::AnswerShippingQuery
fn answer_shipping_query<S>( &self, shipping_query_id: S, ok: bool, ) -> Self::AnswerShippingQuery
type AnswerPreCheckoutQuery = <B as Requester>::AnswerPreCheckoutQuery
fn answer_pre_checkout_query<P>( &self, pre_checkout_query_id: P, ok: bool, ) -> Self::AnswerPreCheckoutQuery
type SetPassportDataErrors = <B as Requester>::SetPassportDataErrors
fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E,
) -> Self::SetPassportDataErrorswhere
E: IntoIterator<Item = PassportElementError>,
type SendGame = <B as Requester>::SendGame
fn send_game<C, G>(&self, chat_id: C, game_short_name: G) -> Self::SendGame
type SetGameScore = <B as Requester>::SetGameScore
fn set_game_score( &self, user_id: UserId, score: u64, chat_id: u32, message_id: MessageId, ) -> Self::SetGameScore
type SetGameScoreInline = <B as Requester>::SetGameScoreInline
fn set_game_score_inline<I>( &self, user_id: UserId, score: u64, inline_message_id: I, ) -> Self::SetGameScoreInline
type GetGameHighScores = <B as Requester>::GetGameHighScores
fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T,
) -> Self::GetGameHighScoreswhere
T: Into<TargetMessage>,
type ApproveChatJoinRequest = <B as Requester>::ApproveChatJoinRequest
fn approve_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> Self::ApproveChatJoinRequest
type DeclineChatJoinRequest = <B as Requester>::DeclineChatJoinRequest
fn decline_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> Self::DeclineChatJoinRequest
source§impl<B> Requester for &mut Bwhere
B: Requester,
impl<B> Requester for &mut Bwhere
B: Requester,
type Err = <B as Requester>::Err
type GetMe = <B as Requester>::GetMe
fn get_me(&self) -> Self::GetMe
type LogOut = <B as Requester>::LogOut
fn log_out(&self) -> Self::LogOut
type Close = <B as Requester>::Close
fn close(&self) -> Self::Close
type GetUpdates = <B as Requester>::GetUpdates
fn get_updates(&self) -> Self::GetUpdates
type SetWebhook = <B as Requester>::SetWebhook
fn set_webhook(&self, url: Url) -> Self::SetWebhook
type DeleteWebhook = <B as Requester>::DeleteWebhook
fn delete_webhook(&self) -> Self::DeleteWebhook
type GetWebhookInfo = <B as Requester>::GetWebhookInfo
fn get_webhook_info(&self) -> Self::GetWebhookInfo
type ForwardMessage = <B as Requester>::ForwardMessage
fn forward_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> Self::ForwardMessage
type ForwardMessages = <B as Requester>::ForwardMessages
fn forward_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> Self::ForwardMessages
type CopyMessage = <B as Requester>::CopyMessage
fn copy_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> Self::CopyMessage
type CopyMessages = <B as Requester>::CopyMessages
fn copy_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> Self::CopyMessages
type SendMessage = <B as Requester>::SendMessage
fn send_message<C, T>(&self, chat_id: C, text: T) -> Self::SendMessage
type SendPhoto = <B as Requester>::SendPhoto
fn send_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SendPhoto
type SendAudio = <B as Requester>::SendAudio
fn send_audio<C>(&self, chat_id: C, audio: InputFile) -> Self::SendAudio
type SendDocument = <B as Requester>::SendDocument
fn send_document<C>( &self, chat_id: C, document: InputFile, ) -> Self::SendDocument
type SendVideo = <B as Requester>::SendVideo
fn send_video<C>(&self, chat_id: C, video: InputFile) -> Self::SendVideo
type SendAnimation = <B as Requester>::SendAnimation
fn send_animation<C>( &self, chat_id: C, animation: InputFile, ) -> Self::SendAnimation
type SendVoice = <B as Requester>::SendVoice
fn send_voice<C>(&self, chat_id: C, voice: InputFile) -> Self::SendVoice
type SendVideoNote = <B as Requester>::SendVideoNote
fn send_video_note<C>( &self, chat_id: C, video_note: InputFile, ) -> Self::SendVideoNote
type SendMediaGroup = <B as Requester>::SendMediaGroup
fn send_media_group<C, M>(&self, chat_id: C, media: M) -> Self::SendMediaGroup
type SendLocation = <B as Requester>::SendLocation
fn send_location<C>( &self, chat_id: C, latitude: f64, longitude: f64, ) -> Self::SendLocation
type EditMessageLiveLocation = <B as Requester>::EditMessageLiveLocation
fn edit_message_live_location<C>( &self, chat_id: C, message_id: MessageId, latitude: f64, longitude: f64, ) -> Self::EditMessageLiveLocation
type EditMessageLiveLocationInline = <B as Requester>::EditMessageLiveLocationInline
fn edit_message_live_location_inline<I>( &self, inline_message_id: I, latitude: f64, longitude: f64, ) -> Self::EditMessageLiveLocationInline
type StopMessageLiveLocation = <B as Requester>::StopMessageLiveLocation
fn stop_message_live_location<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::StopMessageLiveLocation
type StopMessageLiveLocationInline = <B as Requester>::StopMessageLiveLocationInline
fn stop_message_live_location_inline<I>( &self, inline_message_id: I, ) -> Self::StopMessageLiveLocationInline
type SendVenue = <B as Requester>::SendVenue
fn send_venue<C, T, A>( &self, chat_id: C, latitude: f64, longitude: f64, title: T, address: A, ) -> Self::SendVenue
type SendContact = <B as Requester>::SendContact
fn send_contact<C, P, F>( &self, chat_id: C, phone_number: P, first_name: F, ) -> Self::SendContact
type SendPoll = <B as Requester>::SendPoll
fn send_poll<C, Q, O>( &self, chat_id: C, question: Q, options: O, ) -> Self::SendPoll
type SendDice = <B as Requester>::SendDice
fn send_dice<C>(&self, chat_id: C) -> Self::SendDice
type SendChatAction = <B as Requester>::SendChatAction
fn send_chat_action<C>( &self, chat_id: C, action: ChatAction, ) -> Self::SendChatAction
type SetMessageReaction = <B as Requester>::SetMessageReaction
fn set_message_reaction<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::SetMessageReaction
type GetUserProfilePhotos = <B as Requester>::GetUserProfilePhotos
fn get_user_profile_photos(&self, user_id: UserId) -> Self::GetUserProfilePhotos
type GetFile = <B as Requester>::GetFile
fn get_file<F>(&self, file_id: F) -> Self::GetFile
type KickChatMember = <B as Requester>::KickChatMember
fn kick_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::KickChatMember
type BanChatMember = <B as Requester>::BanChatMember
fn ban_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::BanChatMember
type UnbanChatMember = <B as Requester>::UnbanChatMember
fn unban_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::UnbanChatMember
type RestrictChatMember = <B as Requester>::RestrictChatMember
fn restrict_chat_member<C>( &self, chat_id: C, user_id: UserId, permissions: ChatPermissions, ) -> Self::RestrictChatMember
type PromoteChatMember = <B as Requester>::PromoteChatMember
fn promote_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::PromoteChatMember
type SetChatAdministratorCustomTitle = <B as Requester>::SetChatAdministratorCustomTitle
fn set_chat_administrator_custom_title<Ch, C>( &self, chat_id: Ch, user_id: UserId, custom_title: C, ) -> Self::SetChatAdministratorCustomTitle
type BanChatSenderChat = <B as Requester>::BanChatSenderChat
fn ban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> Self::BanChatSenderChat
type UnbanChatSenderChat = <B as Requester>::UnbanChatSenderChat
fn unban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> Self::UnbanChatSenderChat
type SetChatPermissions = <B as Requester>::SetChatPermissions
fn set_chat_permissions<C>( &self, chat_id: C, permissions: ChatPermissions, ) -> Self::SetChatPermissions
type ExportChatInviteLink = <B as Requester>::ExportChatInviteLink
fn export_chat_invite_link<C>(&self, chat_id: C) -> Self::ExportChatInviteLink
type CreateChatInviteLink = <B as Requester>::CreateChatInviteLink
fn create_chat_invite_link<C>(&self, chat_id: C) -> Self::CreateChatInviteLink
type EditChatInviteLink = <B as Requester>::EditChatInviteLink
fn edit_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::EditChatInviteLink
type RevokeChatInviteLink = <B as Requester>::RevokeChatInviteLink
fn revoke_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::RevokeChatInviteLink
type SetChatPhoto = <B as Requester>::SetChatPhoto
fn set_chat_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SetChatPhoto
type DeleteChatPhoto = <B as Requester>::DeleteChatPhoto
fn delete_chat_photo<C>(&self, chat_id: C) -> Self::DeleteChatPhoto
type SetChatTitle = <B as Requester>::SetChatTitle
fn set_chat_title<C, T>(&self, chat_id: C, title: T) -> Self::SetChatTitle
type SetChatDescription = <B as Requester>::SetChatDescription
fn set_chat_description<C>(&self, chat_id: C) -> Self::SetChatDescription
type PinChatMessage = <B as Requester>::PinChatMessage
fn pin_chat_message<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::PinChatMessage
type UnpinChatMessage = <B as Requester>::UnpinChatMessage
fn unpin_chat_message<C>(&self, chat_id: C) -> Self::UnpinChatMessage
type UnpinAllChatMessages = <B as Requester>::UnpinAllChatMessages
fn unpin_all_chat_messages<C>(&self, chat_id: C) -> Self::UnpinAllChatMessages
type LeaveChat = <B as Requester>::LeaveChat
fn leave_chat<C>(&self, chat_id: C) -> Self::LeaveChat
type GetChat = <B as Requester>::GetChat
fn get_chat<C>(&self, chat_id: C) -> Self::GetChat
type GetChatAdministrators = <B as Requester>::GetChatAdministrators
fn get_chat_administrators<C>(&self, chat_id: C) -> Self::GetChatAdministrators
type GetChatMembersCount = <B as Requester>::GetChatMembersCount
fn get_chat_members_count<C>(&self, chat_id: C) -> Self::GetChatMembersCount
type GetChatMemberCount = <B as Requester>::GetChatMemberCount
fn get_chat_member_count<C>(&self, chat_id: C) -> Self::GetChatMemberCount
type GetChatMember = <B as Requester>::GetChatMember
fn get_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::GetChatMember
type SetChatStickerSet = <B as Requester>::SetChatStickerSet
fn set_chat_sticker_set<C, S>( &self, chat_id: C, sticker_set_name: S, ) -> Self::SetChatStickerSet
type DeleteChatStickerSet = <B as Requester>::DeleteChatStickerSet
fn delete_chat_sticker_set<C>(&self, chat_id: C) -> Self::DeleteChatStickerSet
type GetForumTopicIconStickers = <B as Requester>::GetForumTopicIconStickers
fn get_forum_topic_icon_stickers(&self) -> Self::GetForumTopicIconStickers
type CreateForumTopic = <B as Requester>::CreateForumTopic
fn create_forum_topic<C, N, I>( &self, chat_id: C, name: N, icon_color: u32, icon_custom_emoji_id: I, ) -> Self::CreateForumTopic
type EditForumTopic = <B as Requester>::EditForumTopic
fn edit_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::EditForumTopic
type CloseForumTopic = <B as Requester>::CloseForumTopic
fn close_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::CloseForumTopic
type ReopenForumTopic = <B as Requester>::ReopenForumTopic
fn reopen_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::ReopenForumTopic
type DeleteForumTopic = <B as Requester>::DeleteForumTopic
fn delete_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::DeleteForumTopic
type UnpinAllForumTopicMessages = <B as Requester>::UnpinAllForumTopicMessages
fn unpin_all_forum_topic_messages<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::UnpinAllForumTopicMessages
type EditGeneralForumTopic = <B as Requester>::EditGeneralForumTopic
fn edit_general_forum_topic<C, N>( &self, chat_id: C, name: N, ) -> Self::EditGeneralForumTopic
type CloseGeneralForumTopic = <B as Requester>::CloseGeneralForumTopic
fn close_general_forum_topic<C>( &self, chat_id: C, ) -> Self::CloseGeneralForumTopic
type ReopenGeneralForumTopic = <B as Requester>::ReopenGeneralForumTopic
fn reopen_general_forum_topic<C>( &self, chat_id: C, ) -> Self::ReopenGeneralForumTopic
type HideGeneralForumTopic = <B as Requester>::HideGeneralForumTopic
fn hide_general_forum_topic<C>(&self, chat_id: C) -> Self::HideGeneralForumTopic
type UnhideGeneralForumTopic = <B as Requester>::UnhideGeneralForumTopic
fn unhide_general_forum_topic<C>( &self, chat_id: C, ) -> Self::UnhideGeneralForumTopic
type UnpinAllGeneralForumTopicMessages = <B as Requester>::UnpinAllGeneralForumTopicMessages
fn unpin_all_general_forum_topic_messages<C>( &self, chat_id: C, ) -> Self::UnpinAllGeneralForumTopicMessages
type AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery
fn answer_callback_query<C>( &self, callback_query_id: C, ) -> Self::AnswerCallbackQuery
type GetUserChatBoosts = <B as Requester>::GetUserChatBoosts
fn get_user_chat_boosts<C>( &self, chat_id: C, user_id: UserId, ) -> Self::GetUserChatBoosts
type SetMyCommands = <B as Requester>::SetMyCommands
fn set_my_commands<C>(&self, commands: C) -> Self::SetMyCommandswhere
C: IntoIterator<Item = BotCommand>,
type GetMyCommands = <B as Requester>::GetMyCommands
fn get_my_commands(&self) -> Self::GetMyCommands
type SetMyName = <B as Requester>::SetMyName
fn set_my_name(&self) -> Self::SetMyName
type GetMyName = <B as Requester>::GetMyName
fn get_my_name(&self) -> Self::GetMyName
type SetMyDescription = <B as Requester>::SetMyDescription
fn set_my_description(&self) -> Self::SetMyDescription
type GetMyDescription = <B as Requester>::GetMyDescription
fn get_my_description(&self) -> Self::GetMyDescription
type SetMyShortDescription = <B as Requester>::SetMyShortDescription
fn set_my_short_description(&self) -> Self::SetMyShortDescription
type GetMyShortDescription = <B as Requester>::GetMyShortDescription
fn get_my_short_description(&self) -> Self::GetMyShortDescription
type SetChatMenuButton = <B as Requester>::SetChatMenuButton
type GetChatMenuButton = <B as Requester>::GetChatMenuButton
type SetMyDefaultAdministratorRights = <B as Requester>::SetMyDefaultAdministratorRights
fn set_my_default_administrator_rights( &self, ) -> Self::SetMyDefaultAdministratorRights
type GetMyDefaultAdministratorRights = <B as Requester>::GetMyDefaultAdministratorRights
fn get_my_default_administrator_rights( &self, ) -> Self::GetMyDefaultAdministratorRights
type DeleteMyCommands = <B as Requester>::DeleteMyCommands
fn delete_my_commands(&self) -> Self::DeleteMyCommands
type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery
fn answer_inline_query<I, R>( &self, inline_query_id: I, results: R, ) -> Self::AnswerInlineQuery
type AnswerWebAppQuery = <B as Requester>::AnswerWebAppQuery
fn answer_web_app_query<W>( &self, web_app_query_id: W, result: InlineQueryResult, ) -> Self::AnswerWebAppQuery
type EditMessageText = <B as Requester>::EditMessageText
fn edit_message_text<C, T>( &self, chat_id: C, message_id: MessageId, text: T, ) -> Self::EditMessageText
type EditMessageTextInline = <B as Requester>::EditMessageTextInline
fn edit_message_text_inline<I, T>( &self, inline_message_id: I, text: T, ) -> Self::EditMessageTextInline
type EditMessageCaption = <B as Requester>::EditMessageCaption
type EditMessageCaptionInline = <B as Requester>::EditMessageCaptionInline
type EditMessageMedia = <B as Requester>::EditMessageMedia
fn edit_message_media<C>( &self, chat_id: C, message_id: MessageId, media: InputMedia, ) -> Self::EditMessageMedia
type EditMessageMediaInline = <B as Requester>::EditMessageMediaInline
fn edit_message_media_inline<I>( &self, inline_message_id: I, media: InputMedia, ) -> Self::EditMessageMediaInline
type EditMessageReplyMarkup = <B as Requester>::EditMessageReplyMarkup
fn edit_message_reply_markup<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::EditMessageReplyMarkup
type EditMessageReplyMarkupInline = <B as Requester>::EditMessageReplyMarkupInline
fn edit_message_reply_markup_inline<I>( &self, inline_message_id: I, ) -> Self::EditMessageReplyMarkupInline
type StopPoll = <B as Requester>::StopPoll
fn stop_poll<C>(&self, chat_id: C, message_id: MessageId) -> Self::StopPoll
type DeleteMessage = <B as Requester>::DeleteMessage
fn delete_message<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::DeleteMessage
type DeleteMessages = <B as Requester>::DeleteMessages
fn delete_messages<C, M>( &self, chat_id: C, message_ids: M, ) -> Self::DeleteMessages
type SendSticker = <B as Requester>::SendSticker
fn send_sticker<C>(&self, chat_id: C, sticker: InputFile) -> Self::SendSticker
type GetStickerSet = <B as Requester>::GetStickerSet
fn get_sticker_set<N>(&self, name: N) -> Self::GetStickerSet
type GetCustomEmojiStickers = <B as Requester>::GetCustomEmojiStickers
fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C,
) -> Self::GetCustomEmojiStickerswhere
C: IntoIterator<Item = String>,
type UploadStickerFile = <B as Requester>::UploadStickerFile
fn upload_sticker_file( &self, user_id: UserId, sticker: InputFile, sticker_format: StickerFormat, ) -> Self::UploadStickerFile
type CreateNewStickerSet = <B as Requester>::CreateNewStickerSet
fn create_new_sticker_set<N, T, S>( &self, user_id: UserId, name: N, title: T, stickers: S, sticker_format: StickerFormat, ) -> Self::CreateNewStickerSet
type AddStickerToSet = <B as Requester>::AddStickerToSet
fn add_sticker_to_set<N>( &self, user_id: UserId, name: N, sticker: InputSticker, ) -> Self::AddStickerToSet
type SetStickerPositionInSet = <B as Requester>::SetStickerPositionInSet
fn set_sticker_position_in_set<S>( &self, sticker: S, position: u32, ) -> Self::SetStickerPositionInSet
type DeleteStickerFromSet = <B as Requester>::DeleteStickerFromSet
fn delete_sticker_from_set<S>(&self, sticker: S) -> Self::DeleteStickerFromSet
type SetStickerSetThumbnail = <B as Requester>::SetStickerSetThumbnail
fn set_sticker_set_thumbnail<N>( &self, name: N, user_id: UserId, ) -> Self::SetStickerSetThumbnail
type SetCustomEmojiStickerSetThumbnail = <B as Requester>::SetCustomEmojiStickerSetThumbnail
fn set_custom_emoji_sticker_set_thumbnail<N>( &self, name: N, ) -> Self::SetCustomEmojiStickerSetThumbnail
type SetStickerSetTitle = <B as Requester>::SetStickerSetTitle
fn set_sticker_set_title<N, T>( &self, name: N, title: T, ) -> Self::SetStickerSetTitle
type DeleteStickerSet = <B as Requester>::DeleteStickerSet
fn delete_sticker_set<N>(&self, name: N) -> Self::DeleteStickerSet
type SetStickerEmojiList = <B as Requester>::SetStickerEmojiList
fn set_sticker_emoji_list<S, E>( &self, sticker: S, emoji_list: E, ) -> Self::SetStickerEmojiList
type SetStickerKeywords = <B as Requester>::SetStickerKeywords
fn set_sticker_keywords<S>(&self, sticker: S) -> Self::SetStickerKeywords
type SetStickerMaskPosition = <B as Requester>::SetStickerMaskPosition
fn set_sticker_mask_position<S>( &self, sticker: S, ) -> Self::SetStickerMaskPosition
type SendInvoice = <B as Requester>::SendInvoice
fn send_invoice<Ch, T, D, Pa, P, C, Pri>( &self, chat_id: Ch, title: T, description: D, payload: Pa, provider_token: P, currency: C, prices: Pri, ) -> Self::SendInvoice
type CreateInvoiceLink = <B as Requester>::CreateInvoiceLink
fn create_invoice_link<T, D, Pa, P, C, Pri>( &self, title: T, description: D, payload: Pa, provider_token: P, currency: C, prices: Pri, ) -> Self::CreateInvoiceLink
type AnswerShippingQuery = <B as Requester>::AnswerShippingQuery
fn answer_shipping_query<S>( &self, shipping_query_id: S, ok: bool, ) -> Self::AnswerShippingQuery
type AnswerPreCheckoutQuery = <B as Requester>::AnswerPreCheckoutQuery
fn answer_pre_checkout_query<P>( &self, pre_checkout_query_id: P, ok: bool, ) -> Self::AnswerPreCheckoutQuery
type SetPassportDataErrors = <B as Requester>::SetPassportDataErrors
fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E,
) -> Self::SetPassportDataErrorswhere
E: IntoIterator<Item = PassportElementError>,
type SendGame = <B as Requester>::SendGame
fn send_game<C, G>(&self, chat_id: C, game_short_name: G) -> Self::SendGame
type SetGameScore = <B as Requester>::SetGameScore
fn set_game_score( &self, user_id: UserId, score: u64, chat_id: u32, message_id: MessageId, ) -> Self::SetGameScore
type SetGameScoreInline = <B as Requester>::SetGameScoreInline
fn set_game_score_inline<I>( &self, user_id: UserId, score: u64, inline_message_id: I, ) -> Self::SetGameScoreInline
type GetGameHighScores = <B as Requester>::GetGameHighScores
fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T,
) -> Self::GetGameHighScoreswhere
T: Into<TargetMessage>,
type ApproveChatJoinRequest = <B as Requester>::ApproveChatJoinRequest
fn approve_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> Self::ApproveChatJoinRequest
type DeclineChatJoinRequest = <B as Requester>::DeclineChatJoinRequest
fn decline_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> Self::DeclineChatJoinRequest
source§impl<B> Requester for Box<B>where
B: Requester,
impl<B> Requester for Box<B>where
B: Requester,
type Err = <B as Requester>::Err
type GetMe = <B as Requester>::GetMe
fn get_me(&self) -> Self::GetMe
type LogOut = <B as Requester>::LogOut
fn log_out(&self) -> Self::LogOut
type Close = <B as Requester>::Close
fn close(&self) -> Self::Close
type GetUpdates = <B as Requester>::GetUpdates
fn get_updates(&self) -> Self::GetUpdates
type SetWebhook = <B as Requester>::SetWebhook
fn set_webhook(&self, url: Url) -> Self::SetWebhook
type DeleteWebhook = <B as Requester>::DeleteWebhook
fn delete_webhook(&self) -> Self::DeleteWebhook
type GetWebhookInfo = <B as Requester>::GetWebhookInfo
fn get_webhook_info(&self) -> Self::GetWebhookInfo
type ForwardMessage = <B as Requester>::ForwardMessage
fn forward_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> Self::ForwardMessage
type ForwardMessages = <B as Requester>::ForwardMessages
fn forward_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> Self::ForwardMessages
type CopyMessage = <B as Requester>::CopyMessage
fn copy_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> Self::CopyMessage
type CopyMessages = <B as Requester>::CopyMessages
fn copy_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> Self::CopyMessages
type SendMessage = <B as Requester>::SendMessage
fn send_message<C, T>(&self, chat_id: C, text: T) -> Self::SendMessage
type SendPhoto = <B as Requester>::SendPhoto
fn send_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SendPhoto
type SendAudio = <B as Requester>::SendAudio
fn send_audio<C>(&self, chat_id: C, audio: InputFile) -> Self::SendAudio
type SendDocument = <B as Requester>::SendDocument
fn send_document<C>( &self, chat_id: C, document: InputFile, ) -> Self::SendDocument
type SendVideo = <B as Requester>::SendVideo
fn send_video<C>(&self, chat_id: C, video: InputFile) -> Self::SendVideo
type SendAnimation = <B as Requester>::SendAnimation
fn send_animation<C>( &self, chat_id: C, animation: InputFile, ) -> Self::SendAnimation
type SendVoice = <B as Requester>::SendVoice
fn send_voice<C>(&self, chat_id: C, voice: InputFile) -> Self::SendVoice
type SendVideoNote = <B as Requester>::SendVideoNote
fn send_video_note<C>( &self, chat_id: C, video_note: InputFile, ) -> Self::SendVideoNote
type SendMediaGroup = <B as Requester>::SendMediaGroup
fn send_media_group<C, M>(&self, chat_id: C, media: M) -> Self::SendMediaGroup
type SendLocation = <B as Requester>::SendLocation
fn send_location<C>( &self, chat_id: C, latitude: f64, longitude: f64, ) -> Self::SendLocation
type EditMessageLiveLocation = <B as Requester>::EditMessageLiveLocation
fn edit_message_live_location<C>( &self, chat_id: C, message_id: MessageId, latitude: f64, longitude: f64, ) -> Self::EditMessageLiveLocation
type EditMessageLiveLocationInline = <B as Requester>::EditMessageLiveLocationInline
fn edit_message_live_location_inline<I>( &self, inline_message_id: I, latitude: f64, longitude: f64, ) -> Self::EditMessageLiveLocationInline
type StopMessageLiveLocation = <B as Requester>::StopMessageLiveLocation
fn stop_message_live_location<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::StopMessageLiveLocation
type StopMessageLiveLocationInline = <B as Requester>::StopMessageLiveLocationInline
fn stop_message_live_location_inline<I>( &self, inline_message_id: I, ) -> Self::StopMessageLiveLocationInline
type SendVenue = <B as Requester>::SendVenue
fn send_venue<C, T, A>( &self, chat_id: C, latitude: f64, longitude: f64, title: T, address: A, ) -> Self::SendVenue
type SendContact = <B as Requester>::SendContact
fn send_contact<C, P, F>( &self, chat_id: C, phone_number: P, first_name: F, ) -> Self::SendContact
type SendPoll = <B as Requester>::SendPoll
fn send_poll<C, Q, O>( &self, chat_id: C, question: Q, options: O, ) -> Self::SendPoll
type SendDice = <B as Requester>::SendDice
fn send_dice<C>(&self, chat_id: C) -> Self::SendDice
type SendChatAction = <B as Requester>::SendChatAction
fn send_chat_action<C>( &self, chat_id: C, action: ChatAction, ) -> Self::SendChatAction
type SetMessageReaction = <B as Requester>::SetMessageReaction
fn set_message_reaction<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::SetMessageReaction
type GetUserProfilePhotos = <B as Requester>::GetUserProfilePhotos
fn get_user_profile_photos(&self, user_id: UserId) -> Self::GetUserProfilePhotos
type GetFile = <B as Requester>::GetFile
fn get_file<F>(&self, file_id: F) -> Self::GetFile
type KickChatMember = <B as Requester>::KickChatMember
fn kick_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::KickChatMember
type BanChatMember = <B as Requester>::BanChatMember
fn ban_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::BanChatMember
type UnbanChatMember = <B as Requester>::UnbanChatMember
fn unban_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::UnbanChatMember
type RestrictChatMember = <B as Requester>::RestrictChatMember
fn restrict_chat_member<C>( &self, chat_id: C, user_id: UserId, permissions: ChatPermissions, ) -> Self::RestrictChatMember
type PromoteChatMember = <B as Requester>::PromoteChatMember
fn promote_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::PromoteChatMember
type SetChatAdministratorCustomTitle = <B as Requester>::SetChatAdministratorCustomTitle
fn set_chat_administrator_custom_title<Ch, C>( &self, chat_id: Ch, user_id: UserId, custom_title: C, ) -> Self::SetChatAdministratorCustomTitle
type BanChatSenderChat = <B as Requester>::BanChatSenderChat
fn ban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> Self::BanChatSenderChat
type UnbanChatSenderChat = <B as Requester>::UnbanChatSenderChat
fn unban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> Self::UnbanChatSenderChat
type SetChatPermissions = <B as Requester>::SetChatPermissions
fn set_chat_permissions<C>( &self, chat_id: C, permissions: ChatPermissions, ) -> Self::SetChatPermissions
type ExportChatInviteLink = <B as Requester>::ExportChatInviteLink
fn export_chat_invite_link<C>(&self, chat_id: C) -> Self::ExportChatInviteLink
type CreateChatInviteLink = <B as Requester>::CreateChatInviteLink
fn create_chat_invite_link<C>(&self, chat_id: C) -> Self::CreateChatInviteLink
type EditChatInviteLink = <B as Requester>::EditChatInviteLink
fn edit_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::EditChatInviteLink
type RevokeChatInviteLink = <B as Requester>::RevokeChatInviteLink
fn revoke_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::RevokeChatInviteLink
type SetChatPhoto = <B as Requester>::SetChatPhoto
fn set_chat_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SetChatPhoto
type DeleteChatPhoto = <B as Requester>::DeleteChatPhoto
fn delete_chat_photo<C>(&self, chat_id: C) -> Self::DeleteChatPhoto
type SetChatTitle = <B as Requester>::SetChatTitle
fn set_chat_title<C, T>(&self, chat_id: C, title: T) -> Self::SetChatTitle
type SetChatDescription = <B as Requester>::SetChatDescription
fn set_chat_description<C>(&self, chat_id: C) -> Self::SetChatDescription
type PinChatMessage = <B as Requester>::PinChatMessage
fn pin_chat_message<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::PinChatMessage
type UnpinChatMessage = <B as Requester>::UnpinChatMessage
fn unpin_chat_message<C>(&self, chat_id: C) -> Self::UnpinChatMessage
type UnpinAllChatMessages = <B as Requester>::UnpinAllChatMessages
fn unpin_all_chat_messages<C>(&self, chat_id: C) -> Self::UnpinAllChatMessages
type LeaveChat = <B as Requester>::LeaveChat
fn leave_chat<C>(&self, chat_id: C) -> Self::LeaveChat
type GetChat = <B as Requester>::GetChat
fn get_chat<C>(&self, chat_id: C) -> Self::GetChat
type GetChatAdministrators = <B as Requester>::GetChatAdministrators
fn get_chat_administrators<C>(&self, chat_id: C) -> Self::GetChatAdministrators
type GetChatMembersCount = <B as Requester>::GetChatMembersCount
fn get_chat_members_count<C>(&self, chat_id: C) -> Self::GetChatMembersCount
type GetChatMemberCount = <B as Requester>::GetChatMemberCount
fn get_chat_member_count<C>(&self, chat_id: C) -> Self::GetChatMemberCount
type GetChatMember = <B as Requester>::GetChatMember
fn get_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::GetChatMember
type SetChatStickerSet = <B as Requester>::SetChatStickerSet
fn set_chat_sticker_set<C, S>( &self, chat_id: C, sticker_set_name: S, ) -> Self::SetChatStickerSet
type DeleteChatStickerSet = <B as Requester>::DeleteChatStickerSet
fn delete_chat_sticker_set<C>(&self, chat_id: C) -> Self::DeleteChatStickerSet
type GetForumTopicIconStickers = <B as Requester>::GetForumTopicIconStickers
fn get_forum_topic_icon_stickers(&self) -> Self::GetForumTopicIconStickers
type CreateForumTopic = <B as Requester>::CreateForumTopic
fn create_forum_topic<C, N, I>( &self, chat_id: C, name: N, icon_color: u32, icon_custom_emoji_id: I, ) -> Self::CreateForumTopic
type EditForumTopic = <B as Requester>::EditForumTopic
fn edit_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::EditForumTopic
type CloseForumTopic = <B as Requester>::CloseForumTopic
fn close_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::CloseForumTopic
type ReopenForumTopic = <B as Requester>::ReopenForumTopic
fn reopen_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::ReopenForumTopic
type DeleteForumTopic = <B as Requester>::DeleteForumTopic
fn delete_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::DeleteForumTopic
type UnpinAllForumTopicMessages = <B as Requester>::UnpinAllForumTopicMessages
fn unpin_all_forum_topic_messages<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::UnpinAllForumTopicMessages
type EditGeneralForumTopic = <B as Requester>::EditGeneralForumTopic
fn edit_general_forum_topic<C, N>( &self, chat_id: C, name: N, ) -> Self::EditGeneralForumTopic
type CloseGeneralForumTopic = <B as Requester>::CloseGeneralForumTopic
fn close_general_forum_topic<C>( &self, chat_id: C, ) -> Self::CloseGeneralForumTopic
type ReopenGeneralForumTopic = <B as Requester>::ReopenGeneralForumTopic
fn reopen_general_forum_topic<C>( &self, chat_id: C, ) -> Self::ReopenGeneralForumTopic
type HideGeneralForumTopic = <B as Requester>::HideGeneralForumTopic
fn hide_general_forum_topic<C>(&self, chat_id: C) -> Self::HideGeneralForumTopic
type UnhideGeneralForumTopic = <B as Requester>::UnhideGeneralForumTopic
fn unhide_general_forum_topic<C>( &self, chat_id: C, ) -> Self::UnhideGeneralForumTopic
type UnpinAllGeneralForumTopicMessages = <B as Requester>::UnpinAllGeneralForumTopicMessages
fn unpin_all_general_forum_topic_messages<C>( &self, chat_id: C, ) -> Self::UnpinAllGeneralForumTopicMessages
type AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery
fn answer_callback_query<C>( &self, callback_query_id: C, ) -> Self::AnswerCallbackQuery
type GetUserChatBoosts = <B as Requester>::GetUserChatBoosts
fn get_user_chat_boosts<C>( &self, chat_id: C, user_id: UserId, ) -> Self::GetUserChatBoosts
type SetMyCommands = <B as Requester>::SetMyCommands
fn set_my_commands<C>(&self, commands: C) -> Self::SetMyCommandswhere
C: IntoIterator<Item = BotCommand>,
type GetMyCommands = <B as Requester>::GetMyCommands
fn get_my_commands(&self) -> Self::GetMyCommands
type SetMyName = <B as Requester>::SetMyName
fn set_my_name(&self) -> Self::SetMyName
type GetMyName = <B as Requester>::GetMyName
fn get_my_name(&self) -> Self::GetMyName
type SetMyDescription = <B as Requester>::SetMyDescription
fn set_my_description(&self) -> Self::SetMyDescription
type GetMyDescription = <B as Requester>::GetMyDescription
fn get_my_description(&self) -> Self::GetMyDescription
type SetMyShortDescription = <B as Requester>::SetMyShortDescription
fn set_my_short_description(&self) -> Self::SetMyShortDescription
type GetMyShortDescription = <B as Requester>::GetMyShortDescription
fn get_my_short_description(&self) -> Self::GetMyShortDescription
type SetChatMenuButton = <B as Requester>::SetChatMenuButton
type GetChatMenuButton = <B as Requester>::GetChatMenuButton
type SetMyDefaultAdministratorRights = <B as Requester>::SetMyDefaultAdministratorRights
fn set_my_default_administrator_rights( &self, ) -> Self::SetMyDefaultAdministratorRights
type GetMyDefaultAdministratorRights = <B as Requester>::GetMyDefaultAdministratorRights
fn get_my_default_administrator_rights( &self, ) -> Self::GetMyDefaultAdministratorRights
type DeleteMyCommands = <B as Requester>::DeleteMyCommands
fn delete_my_commands(&self) -> Self::DeleteMyCommands
type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery
fn answer_inline_query<I, R>( &self, inline_query_id: I, results: R, ) -> Self::AnswerInlineQuery
type AnswerWebAppQuery = <B as Requester>::AnswerWebAppQuery
fn answer_web_app_query<W>( &self, web_app_query_id: W, result: InlineQueryResult, ) -> Self::AnswerWebAppQuery
type EditMessageText = <B as Requester>::EditMessageText
fn edit_message_text<C, T>( &self, chat_id: C, message_id: MessageId, text: T, ) -> Self::EditMessageText
type EditMessageTextInline = <B as Requester>::EditMessageTextInline
fn edit_message_text_inline<I, T>( &self, inline_message_id: I, text: T, ) -> Self::EditMessageTextInline
type EditMessageCaption = <B as Requester>::EditMessageCaption
type EditMessageCaptionInline = <B as Requester>::EditMessageCaptionInline
type EditMessageMedia = <B as Requester>::EditMessageMedia
fn edit_message_media<C>( &self, chat_id: C, message_id: MessageId, media: InputMedia, ) -> Self::EditMessageMedia
type EditMessageMediaInline = <B as Requester>::EditMessageMediaInline
fn edit_message_media_inline<I>( &self, inline_message_id: I, media: InputMedia, ) -> Self::EditMessageMediaInline
type EditMessageReplyMarkup = <B as Requester>::EditMessageReplyMarkup
fn edit_message_reply_markup<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::EditMessageReplyMarkup
type EditMessageReplyMarkupInline = <B as Requester>::EditMessageReplyMarkupInline
fn edit_message_reply_markup_inline<I>( &self, inline_message_id: I, ) -> Self::EditMessageReplyMarkupInline
type StopPoll = <B as Requester>::StopPoll
fn stop_poll<C>(&self, chat_id: C, message_id: MessageId) -> Self::StopPoll
type DeleteMessage = <B as Requester>::DeleteMessage
fn delete_message<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::DeleteMessage
type DeleteMessages = <B as Requester>::DeleteMessages
fn delete_messages<C, M>( &self, chat_id: C, message_ids: M, ) -> Self::DeleteMessages
type SendSticker = <B as Requester>::SendSticker
fn send_sticker<C>(&self, chat_id: C, sticker: InputFile) -> Self::SendSticker
type GetStickerSet = <B as Requester>::GetStickerSet
fn get_sticker_set<N>(&self, name: N) -> Self::GetStickerSet
type GetCustomEmojiStickers = <B as Requester>::GetCustomEmojiStickers
fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C,
) -> Self::GetCustomEmojiStickerswhere
C: IntoIterator<Item = String>,
type UploadStickerFile = <B as Requester>::UploadStickerFile
fn upload_sticker_file( &self, user_id: UserId, sticker: InputFile, sticker_format: StickerFormat, ) -> Self::UploadStickerFile
type CreateNewStickerSet = <B as Requester>::CreateNewStickerSet
fn create_new_sticker_set<N, T, S>( &self, user_id: UserId, name: N, title: T, stickers: S, sticker_format: StickerFormat, ) -> Self::CreateNewStickerSet
type AddStickerToSet = <B as Requester>::AddStickerToSet
fn add_sticker_to_set<N>( &self, user_id: UserId, name: N, sticker: InputSticker, ) -> Self::AddStickerToSet
type SetStickerPositionInSet = <B as Requester>::SetStickerPositionInSet
fn set_sticker_position_in_set<S>( &self, sticker: S, position: u32, ) -> Self::SetStickerPositionInSet
type DeleteStickerFromSet = <B as Requester>::DeleteStickerFromSet
fn delete_sticker_from_set<S>(&self, sticker: S) -> Self::DeleteStickerFromSet
type SetStickerSetThumbnail = <B as Requester>::SetStickerSetThumbnail
fn set_sticker_set_thumbnail<N>( &self, name: N, user_id: UserId, ) -> Self::SetStickerSetThumbnail
type SetCustomEmojiStickerSetThumbnail = <B as Requester>::SetCustomEmojiStickerSetThumbnail
fn set_custom_emoji_sticker_set_thumbnail<N>( &self, name: N, ) -> Self::SetCustomEmojiStickerSetThumbnail
type SetStickerSetTitle = <B as Requester>::SetStickerSetTitle
fn set_sticker_set_title<N, T>( &self, name: N, title: T, ) -> Self::SetStickerSetTitle
type DeleteStickerSet = <B as Requester>::DeleteStickerSet
fn delete_sticker_set<N>(&self, name: N) -> Self::DeleteStickerSet
type SetStickerEmojiList = <B as Requester>::SetStickerEmojiList
fn set_sticker_emoji_list<S, E>( &self, sticker: S, emoji_list: E, ) -> Self::SetStickerEmojiList
type SetStickerKeywords = <B as Requester>::SetStickerKeywords
fn set_sticker_keywords<S>(&self, sticker: S) -> Self::SetStickerKeywords
type SetStickerMaskPosition = <B as Requester>::SetStickerMaskPosition
fn set_sticker_mask_position<S>( &self, sticker: S, ) -> Self::SetStickerMaskPosition
type SendInvoice = <B as Requester>::SendInvoice
fn send_invoice<Ch, T, D, Pa, P, C, Pri>( &self, chat_id: Ch, title: T, description: D, payload: Pa, provider_token: P, currency: C, prices: Pri, ) -> Self::SendInvoice
type CreateInvoiceLink = <B as Requester>::CreateInvoiceLink
fn create_invoice_link<T, D, Pa, P, C, Pri>( &self, title: T, description: D, payload: Pa, provider_token: P, currency: C, prices: Pri, ) -> Self::CreateInvoiceLink
type AnswerShippingQuery = <B as Requester>::AnswerShippingQuery
fn answer_shipping_query<S>( &self, shipping_query_id: S, ok: bool, ) -> Self::AnswerShippingQuery
type AnswerPreCheckoutQuery = <B as Requester>::AnswerPreCheckoutQuery
fn answer_pre_checkout_query<P>( &self, pre_checkout_query_id: P, ok: bool, ) -> Self::AnswerPreCheckoutQuery
type SetPassportDataErrors = <B as Requester>::SetPassportDataErrors
fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E,
) -> Self::SetPassportDataErrorswhere
E: IntoIterator<Item = PassportElementError>,
type SendGame = <B as Requester>::SendGame
fn send_game<C, G>(&self, chat_id: C, game_short_name: G) -> Self::SendGame
type SetGameScore = <B as Requester>::SetGameScore
fn set_game_score( &self, user_id: UserId, score: u64, chat_id: u32, message_id: MessageId, ) -> Self::SetGameScore
type SetGameScoreInline = <B as Requester>::SetGameScoreInline
fn set_game_score_inline<I>( &self, user_id: UserId, score: u64, inline_message_id: I, ) -> Self::SetGameScoreInline
type GetGameHighScores = <B as Requester>::GetGameHighScores
fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T,
) -> Self::GetGameHighScoreswhere
T: Into<TargetMessage>,
type ApproveChatJoinRequest = <B as Requester>::ApproveChatJoinRequest
fn approve_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> Self::ApproveChatJoinRequest
type DeclineChatJoinRequest = <B as Requester>::DeclineChatJoinRequest
fn decline_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> Self::DeclineChatJoinRequest
source§impl<B> Requester for Rc<B>where
B: Requester,
impl<B> Requester for Rc<B>where
B: Requester,
type Err = <B as Requester>::Err
type GetMe = <B as Requester>::GetMe
fn get_me(&self) -> Self::GetMe
type LogOut = <B as Requester>::LogOut
fn log_out(&self) -> Self::LogOut
type Close = <B as Requester>::Close
fn close(&self) -> Self::Close
type GetUpdates = <B as Requester>::GetUpdates
fn get_updates(&self) -> Self::GetUpdates
type SetWebhook = <B as Requester>::SetWebhook
fn set_webhook(&self, url: Url) -> Self::SetWebhook
type DeleteWebhook = <B as Requester>::DeleteWebhook
fn delete_webhook(&self) -> Self::DeleteWebhook
type GetWebhookInfo = <B as Requester>::GetWebhookInfo
fn get_webhook_info(&self) -> Self::GetWebhookInfo
type ForwardMessage = <B as Requester>::ForwardMessage
fn forward_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> Self::ForwardMessage
type ForwardMessages = <B as Requester>::ForwardMessages
fn forward_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> Self::ForwardMessages
type CopyMessage = <B as Requester>::CopyMessage
fn copy_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> Self::CopyMessage
type CopyMessages = <B as Requester>::CopyMessages
fn copy_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> Self::CopyMessages
type SendMessage = <B as Requester>::SendMessage
fn send_message<C, T>(&self, chat_id: C, text: T) -> Self::SendMessage
type SendPhoto = <B as Requester>::SendPhoto
fn send_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SendPhoto
type SendAudio = <B as Requester>::SendAudio
fn send_audio<C>(&self, chat_id: C, audio: InputFile) -> Self::SendAudio
type SendDocument = <B as Requester>::SendDocument
fn send_document<C>( &self, chat_id: C, document: InputFile, ) -> Self::SendDocument
type SendVideo = <B as Requester>::SendVideo
fn send_video<C>(&self, chat_id: C, video: InputFile) -> Self::SendVideo
type SendAnimation = <B as Requester>::SendAnimation
fn send_animation<C>( &self, chat_id: C, animation: InputFile, ) -> Self::SendAnimation
type SendVoice = <B as Requester>::SendVoice
fn send_voice<C>(&self, chat_id: C, voice: InputFile) -> Self::SendVoice
type SendVideoNote = <B as Requester>::SendVideoNote
fn send_video_note<C>( &self, chat_id: C, video_note: InputFile, ) -> Self::SendVideoNote
type SendMediaGroup = <B as Requester>::SendMediaGroup
fn send_media_group<C, M>(&self, chat_id: C, media: M) -> Self::SendMediaGroup
type SendLocation = <B as Requester>::SendLocation
fn send_location<C>( &self, chat_id: C, latitude: f64, longitude: f64, ) -> Self::SendLocation
type EditMessageLiveLocation = <B as Requester>::EditMessageLiveLocation
fn edit_message_live_location<C>( &self, chat_id: C, message_id: MessageId, latitude: f64, longitude: f64, ) -> Self::EditMessageLiveLocation
type EditMessageLiveLocationInline = <B as Requester>::EditMessageLiveLocationInline
fn edit_message_live_location_inline<I>( &self, inline_message_id: I, latitude: f64, longitude: f64, ) -> Self::EditMessageLiveLocationInline
type StopMessageLiveLocation = <B as Requester>::StopMessageLiveLocation
fn stop_message_live_location<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::StopMessageLiveLocation
type StopMessageLiveLocationInline = <B as Requester>::StopMessageLiveLocationInline
fn stop_message_live_location_inline<I>( &self, inline_message_id: I, ) -> Self::StopMessageLiveLocationInline
type SendVenue = <B as Requester>::SendVenue
fn send_venue<C, T, A>( &self, chat_id: C, latitude: f64, longitude: f64, title: T, address: A, ) -> Self::SendVenue
type SendContact = <B as Requester>::SendContact
fn send_contact<C, P, F>( &self, chat_id: C, phone_number: P, first_name: F, ) -> Self::SendContact
type SendPoll = <B as Requester>::SendPoll
fn send_poll<C, Q, O>( &self, chat_id: C, question: Q, options: O, ) -> Self::SendPoll
type SendDice = <B as Requester>::SendDice
fn send_dice<C>(&self, chat_id: C) -> Self::SendDice
type SendChatAction = <B as Requester>::SendChatAction
fn send_chat_action<C>( &self, chat_id: C, action: ChatAction, ) -> Self::SendChatAction
type SetMessageReaction = <B as Requester>::SetMessageReaction
fn set_message_reaction<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::SetMessageReaction
type GetUserProfilePhotos = <B as Requester>::GetUserProfilePhotos
fn get_user_profile_photos(&self, user_id: UserId) -> Self::GetUserProfilePhotos
type GetFile = <B as Requester>::GetFile
fn get_file<F>(&self, file_id: F) -> Self::GetFile
type KickChatMember = <B as Requester>::KickChatMember
fn kick_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::KickChatMember
type BanChatMember = <B as Requester>::BanChatMember
fn ban_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::BanChatMember
type UnbanChatMember = <B as Requester>::UnbanChatMember
fn unban_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::UnbanChatMember
type RestrictChatMember = <B as Requester>::RestrictChatMember
fn restrict_chat_member<C>( &self, chat_id: C, user_id: UserId, permissions: ChatPermissions, ) -> Self::RestrictChatMember
type PromoteChatMember = <B as Requester>::PromoteChatMember
fn promote_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::PromoteChatMember
type SetChatAdministratorCustomTitle = <B as Requester>::SetChatAdministratorCustomTitle
fn set_chat_administrator_custom_title<Ch, C>( &self, chat_id: Ch, user_id: UserId, custom_title: C, ) -> Self::SetChatAdministratorCustomTitle
type BanChatSenderChat = <B as Requester>::BanChatSenderChat
fn ban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> Self::BanChatSenderChat
type UnbanChatSenderChat = <B as Requester>::UnbanChatSenderChat
fn unban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> Self::UnbanChatSenderChat
type SetChatPermissions = <B as Requester>::SetChatPermissions
fn set_chat_permissions<C>( &self, chat_id: C, permissions: ChatPermissions, ) -> Self::SetChatPermissions
type ExportChatInviteLink = <B as Requester>::ExportChatInviteLink
fn export_chat_invite_link<C>(&self, chat_id: C) -> Self::ExportChatInviteLink
type CreateChatInviteLink = <B as Requester>::CreateChatInviteLink
fn create_chat_invite_link<C>(&self, chat_id: C) -> Self::CreateChatInviteLink
type EditChatInviteLink = <B as Requester>::EditChatInviteLink
fn edit_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::EditChatInviteLink
type RevokeChatInviteLink = <B as Requester>::RevokeChatInviteLink
fn revoke_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::RevokeChatInviteLink
type SetChatPhoto = <B as Requester>::SetChatPhoto
fn set_chat_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SetChatPhoto
type DeleteChatPhoto = <B as Requester>::DeleteChatPhoto
fn delete_chat_photo<C>(&self, chat_id: C) -> Self::DeleteChatPhoto
type SetChatTitle = <B as Requester>::SetChatTitle
fn set_chat_title<C, T>(&self, chat_id: C, title: T) -> Self::SetChatTitle
type SetChatDescription = <B as Requester>::SetChatDescription
fn set_chat_description<C>(&self, chat_id: C) -> Self::SetChatDescription
type PinChatMessage = <B as Requester>::PinChatMessage
fn pin_chat_message<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::PinChatMessage
type UnpinChatMessage = <B as Requester>::UnpinChatMessage
fn unpin_chat_message<C>(&self, chat_id: C) -> Self::UnpinChatMessage
type UnpinAllChatMessages = <B as Requester>::UnpinAllChatMessages
fn unpin_all_chat_messages<C>(&self, chat_id: C) -> Self::UnpinAllChatMessages
type LeaveChat = <B as Requester>::LeaveChat
fn leave_chat<C>(&self, chat_id: C) -> Self::LeaveChat
type GetChat = <B as Requester>::GetChat
fn get_chat<C>(&self, chat_id: C) -> Self::GetChat
type GetChatAdministrators = <B as Requester>::GetChatAdministrators
fn get_chat_administrators<C>(&self, chat_id: C) -> Self::GetChatAdministrators
type GetChatMembersCount = <B as Requester>::GetChatMembersCount
fn get_chat_members_count<C>(&self, chat_id: C) -> Self::GetChatMembersCount
type GetChatMemberCount = <B as Requester>::GetChatMemberCount
fn get_chat_member_count<C>(&self, chat_id: C) -> Self::GetChatMemberCount
type GetChatMember = <B as Requester>::GetChatMember
fn get_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::GetChatMember
type SetChatStickerSet = <B as Requester>::SetChatStickerSet
fn set_chat_sticker_set<C, S>( &self, chat_id: C, sticker_set_name: S, ) -> Self::SetChatStickerSet
type DeleteChatStickerSet = <B as Requester>::DeleteChatStickerSet
fn delete_chat_sticker_set<C>(&self, chat_id: C) -> Self::DeleteChatStickerSet
type GetForumTopicIconStickers = <B as Requester>::GetForumTopicIconStickers
fn get_forum_topic_icon_stickers(&self) -> Self::GetForumTopicIconStickers
type CreateForumTopic = <B as Requester>::CreateForumTopic
fn create_forum_topic<C, N, I>( &self, chat_id: C, name: N, icon_color: u32, icon_custom_emoji_id: I, ) -> Self::CreateForumTopic
type EditForumTopic = <B as Requester>::EditForumTopic
fn edit_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::EditForumTopic
type CloseForumTopic = <B as Requester>::CloseForumTopic
fn close_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::CloseForumTopic
type ReopenForumTopic = <B as Requester>::ReopenForumTopic
fn reopen_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::ReopenForumTopic
type DeleteForumTopic = <B as Requester>::DeleteForumTopic
fn delete_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::DeleteForumTopic
type UnpinAllForumTopicMessages = <B as Requester>::UnpinAllForumTopicMessages
fn unpin_all_forum_topic_messages<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::UnpinAllForumTopicMessages
type EditGeneralForumTopic = <B as Requester>::EditGeneralForumTopic
fn edit_general_forum_topic<C, N>( &self, chat_id: C, name: N, ) -> Self::EditGeneralForumTopic
type CloseGeneralForumTopic = <B as Requester>::CloseGeneralForumTopic
fn close_general_forum_topic<C>( &self, chat_id: C, ) -> Self::CloseGeneralForumTopic
type ReopenGeneralForumTopic = <B as Requester>::ReopenGeneralForumTopic
fn reopen_general_forum_topic<C>( &self, chat_id: C, ) -> Self::ReopenGeneralForumTopic
type HideGeneralForumTopic = <B as Requester>::HideGeneralForumTopic
fn hide_general_forum_topic<C>(&self, chat_id: C) -> Self::HideGeneralForumTopic
type UnhideGeneralForumTopic = <B as Requester>::UnhideGeneralForumTopic
fn unhide_general_forum_topic<C>( &self, chat_id: C, ) -> Self::UnhideGeneralForumTopic
type UnpinAllGeneralForumTopicMessages = <B as Requester>::UnpinAllGeneralForumTopicMessages
fn unpin_all_general_forum_topic_messages<C>( &self, chat_id: C, ) -> Self::UnpinAllGeneralForumTopicMessages
type AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery
fn answer_callback_query<C>( &self, callback_query_id: C, ) -> Self::AnswerCallbackQuery
type GetUserChatBoosts = <B as Requester>::GetUserChatBoosts
fn get_user_chat_boosts<C>( &self, chat_id: C, user_id: UserId, ) -> Self::GetUserChatBoosts
type SetMyCommands = <B as Requester>::SetMyCommands
fn set_my_commands<C>(&self, commands: C) -> Self::SetMyCommandswhere
C: IntoIterator<Item = BotCommand>,
type GetMyCommands = <B as Requester>::GetMyCommands
fn get_my_commands(&self) -> Self::GetMyCommands
type SetMyName = <B as Requester>::SetMyName
fn set_my_name(&self) -> Self::SetMyName
type GetMyName = <B as Requester>::GetMyName
fn get_my_name(&self) -> Self::GetMyName
type SetMyDescription = <B as Requester>::SetMyDescription
fn set_my_description(&self) -> Self::SetMyDescription
type GetMyDescription = <B as Requester>::GetMyDescription
fn get_my_description(&self) -> Self::GetMyDescription
type SetMyShortDescription = <B as Requester>::SetMyShortDescription
fn set_my_short_description(&self) -> Self::SetMyShortDescription
type GetMyShortDescription = <B as Requester>::GetMyShortDescription
fn get_my_short_description(&self) -> Self::GetMyShortDescription
type SetChatMenuButton = <B as Requester>::SetChatMenuButton
type GetChatMenuButton = <B as Requester>::GetChatMenuButton
type SetMyDefaultAdministratorRights = <B as Requester>::SetMyDefaultAdministratorRights
fn set_my_default_administrator_rights( &self, ) -> Self::SetMyDefaultAdministratorRights
type GetMyDefaultAdministratorRights = <B as Requester>::GetMyDefaultAdministratorRights
fn get_my_default_administrator_rights( &self, ) -> Self::GetMyDefaultAdministratorRights
type DeleteMyCommands = <B as Requester>::DeleteMyCommands
fn delete_my_commands(&self) -> Self::DeleteMyCommands
type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery
fn answer_inline_query<I, R>( &self, inline_query_id: I, results: R, ) -> Self::AnswerInlineQuery
type AnswerWebAppQuery = <B as Requester>::AnswerWebAppQuery
fn answer_web_app_query<W>( &self, web_app_query_id: W, result: InlineQueryResult, ) -> Self::AnswerWebAppQuery
type EditMessageText = <B as Requester>::EditMessageText
fn edit_message_text<C, T>( &self, chat_id: C, message_id: MessageId, text: T, ) -> Self::EditMessageText
type EditMessageTextInline = <B as Requester>::EditMessageTextInline
fn edit_message_text_inline<I, T>( &self, inline_message_id: I, text: T, ) -> Self::EditMessageTextInline
type EditMessageCaption = <B as Requester>::EditMessageCaption
type EditMessageCaptionInline = <B as Requester>::EditMessageCaptionInline
type EditMessageMedia = <B as Requester>::EditMessageMedia
fn edit_message_media<C>( &self, chat_id: C, message_id: MessageId, media: InputMedia, ) -> Self::EditMessageMedia
type EditMessageMediaInline = <B as Requester>::EditMessageMediaInline
fn edit_message_media_inline<I>( &self, inline_message_id: I, media: InputMedia, ) -> Self::EditMessageMediaInline
type EditMessageReplyMarkup = <B as Requester>::EditMessageReplyMarkup
fn edit_message_reply_markup<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::EditMessageReplyMarkup
type EditMessageReplyMarkupInline = <B as Requester>::EditMessageReplyMarkupInline
fn edit_message_reply_markup_inline<I>( &self, inline_message_id: I, ) -> Self::EditMessageReplyMarkupInline
type StopPoll = <B as Requester>::StopPoll
fn stop_poll<C>(&self, chat_id: C, message_id: MessageId) -> Self::StopPoll
type DeleteMessage = <B as Requester>::DeleteMessage
fn delete_message<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::DeleteMessage
type DeleteMessages = <B as Requester>::DeleteMessages
fn delete_messages<C, M>( &self, chat_id: C, message_ids: M, ) -> Self::DeleteMessages
type SendSticker = <B as Requester>::SendSticker
fn send_sticker<C>(&self, chat_id: C, sticker: InputFile) -> Self::SendSticker
type GetStickerSet = <B as Requester>::GetStickerSet
fn get_sticker_set<N>(&self, name: N) -> Self::GetStickerSet
type GetCustomEmojiStickers = <B as Requester>::GetCustomEmojiStickers
fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C,
) -> Self::GetCustomEmojiStickerswhere
C: IntoIterator<Item = String>,
type UploadStickerFile = <B as Requester>::UploadStickerFile
fn upload_sticker_file( &self, user_id: UserId, sticker: InputFile, sticker_format: StickerFormat, ) -> Self::UploadStickerFile
type CreateNewStickerSet = <B as Requester>::CreateNewStickerSet
fn create_new_sticker_set<N, T, S>( &self, user_id: UserId, name: N, title: T, stickers: S, sticker_format: StickerFormat, ) -> Self::CreateNewStickerSet
type AddStickerToSet = <B as Requester>::AddStickerToSet
fn add_sticker_to_set<N>( &self, user_id: UserId, name: N, sticker: InputSticker, ) -> Self::AddStickerToSet
type SetStickerPositionInSet = <B as Requester>::SetStickerPositionInSet
fn set_sticker_position_in_set<S>( &self, sticker: S, position: u32, ) -> Self::SetStickerPositionInSet
type DeleteStickerFromSet = <B as Requester>::DeleteStickerFromSet
fn delete_sticker_from_set<S>(&self, sticker: S) -> Self::DeleteStickerFromSet
type SetStickerSetThumbnail = <B as Requester>::SetStickerSetThumbnail
fn set_sticker_set_thumbnail<N>( &self, name: N, user_id: UserId, ) -> Self::SetStickerSetThumbnail
type SetCustomEmojiStickerSetThumbnail = <B as Requester>::SetCustomEmojiStickerSetThumbnail
fn set_custom_emoji_sticker_set_thumbnail<N>( &self, name: N, ) -> Self::SetCustomEmojiStickerSetThumbnail
type SetStickerSetTitle = <B as Requester>::SetStickerSetTitle
fn set_sticker_set_title<N, T>( &self, name: N, title: T, ) -> Self::SetStickerSetTitle
type DeleteStickerSet = <B as Requester>::DeleteStickerSet
fn delete_sticker_set<N>(&self, name: N) -> Self::DeleteStickerSet
type SetStickerEmojiList = <B as Requester>::SetStickerEmojiList
fn set_sticker_emoji_list<S, E>( &self, sticker: S, emoji_list: E, ) -> Self::SetStickerEmojiList
type SetStickerKeywords = <B as Requester>::SetStickerKeywords
fn set_sticker_keywords<S>(&self, sticker: S) -> Self::SetStickerKeywords
type SetStickerMaskPosition = <B as Requester>::SetStickerMaskPosition
fn set_sticker_mask_position<S>( &self, sticker: S, ) -> Self::SetStickerMaskPosition
type SendInvoice = <B as Requester>::SendInvoice
fn send_invoice<Ch, T, D, Pa, P, C, Pri>( &self, chat_id: Ch, title: T, description: D, payload: Pa, provider_token: P, currency: C, prices: Pri, ) -> Self::SendInvoice
type CreateInvoiceLink = <B as Requester>::CreateInvoiceLink
fn create_invoice_link<T, D, Pa, P, C, Pri>( &self, title: T, description: D, payload: Pa, provider_token: P, currency: C, prices: Pri, ) -> Self::CreateInvoiceLink
type AnswerShippingQuery = <B as Requester>::AnswerShippingQuery
fn answer_shipping_query<S>( &self, shipping_query_id: S, ok: bool, ) -> Self::AnswerShippingQuery
type AnswerPreCheckoutQuery = <B as Requester>::AnswerPreCheckoutQuery
fn answer_pre_checkout_query<P>( &self, pre_checkout_query_id: P, ok: bool, ) -> Self::AnswerPreCheckoutQuery
type SetPassportDataErrors = <B as Requester>::SetPassportDataErrors
fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E,
) -> Self::SetPassportDataErrorswhere
E: IntoIterator<Item = PassportElementError>,
type SendGame = <B as Requester>::SendGame
fn send_game<C, G>(&self, chat_id: C, game_short_name: G) -> Self::SendGame
type SetGameScore = <B as Requester>::SetGameScore
fn set_game_score( &self, user_id: UserId, score: u64, chat_id: u32, message_id: MessageId, ) -> Self::SetGameScore
type SetGameScoreInline = <B as Requester>::SetGameScoreInline
fn set_game_score_inline<I>( &self, user_id: UserId, score: u64, inline_message_id: I, ) -> Self::SetGameScoreInline
type GetGameHighScores = <B as Requester>::GetGameHighScores
fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T,
) -> Self::GetGameHighScoreswhere
T: Into<TargetMessage>,
type ApproveChatJoinRequest = <B as Requester>::ApproveChatJoinRequest
fn approve_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> Self::ApproveChatJoinRequest
type DeclineChatJoinRequest = <B as Requester>::DeclineChatJoinRequest
fn decline_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> Self::DeclineChatJoinRequest
source§impl<B> Requester for Arc<B>where
B: Requester,
impl<B> Requester for Arc<B>where
B: Requester,
type Err = <B as Requester>::Err
type GetMe = <B as Requester>::GetMe
fn get_me(&self) -> Self::GetMe
type LogOut = <B as Requester>::LogOut
fn log_out(&self) -> Self::LogOut
type Close = <B as Requester>::Close
fn close(&self) -> Self::Close
type GetUpdates = <B as Requester>::GetUpdates
fn get_updates(&self) -> Self::GetUpdates
type SetWebhook = <B as Requester>::SetWebhook
fn set_webhook(&self, url: Url) -> Self::SetWebhook
type DeleteWebhook = <B as Requester>::DeleteWebhook
fn delete_webhook(&self) -> Self::DeleteWebhook
type GetWebhookInfo = <B as Requester>::GetWebhookInfo
fn get_webhook_info(&self) -> Self::GetWebhookInfo
type ForwardMessage = <B as Requester>::ForwardMessage
fn forward_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> Self::ForwardMessage
type ForwardMessages = <B as Requester>::ForwardMessages
fn forward_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> Self::ForwardMessages
type CopyMessage = <B as Requester>::CopyMessage
fn copy_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> Self::CopyMessage
type CopyMessages = <B as Requester>::CopyMessages
fn copy_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> Self::CopyMessages
type SendMessage = <B as Requester>::SendMessage
fn send_message<C, T>(&self, chat_id: C, text: T) -> Self::SendMessage
type SendPhoto = <B as Requester>::SendPhoto
fn send_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SendPhoto
type SendAudio = <B as Requester>::SendAudio
fn send_audio<C>(&self, chat_id: C, audio: InputFile) -> Self::SendAudio
type SendDocument = <B as Requester>::SendDocument
fn send_document<C>( &self, chat_id: C, document: InputFile, ) -> Self::SendDocument
type SendVideo = <B as Requester>::SendVideo
fn send_video<C>(&self, chat_id: C, video: InputFile) -> Self::SendVideo
type SendAnimation = <B as Requester>::SendAnimation
fn send_animation<C>( &self, chat_id: C, animation: InputFile, ) -> Self::SendAnimation
type SendVoice = <B as Requester>::SendVoice
fn send_voice<C>(&self, chat_id: C, voice: InputFile) -> Self::SendVoice
type SendVideoNote = <B as Requester>::SendVideoNote
fn send_video_note<C>( &self, chat_id: C, video_note: InputFile, ) -> Self::SendVideoNote
type SendMediaGroup = <B as Requester>::SendMediaGroup
fn send_media_group<C, M>(&self, chat_id: C, media: M) -> Self::SendMediaGroup
type SendLocation = <B as Requester>::SendLocation
fn send_location<C>( &self, chat_id: C, latitude: f64, longitude: f64, ) -> Self::SendLocation
type EditMessageLiveLocation = <B as Requester>::EditMessageLiveLocation
fn edit_message_live_location<C>( &self, chat_id: C, message_id: MessageId, latitude: f64, longitude: f64, ) -> Self::EditMessageLiveLocation
type EditMessageLiveLocationInline = <B as Requester>::EditMessageLiveLocationInline
fn edit_message_live_location_inline<I>( &self, inline_message_id: I, latitude: f64, longitude: f64, ) -> Self::EditMessageLiveLocationInline
type StopMessageLiveLocation = <B as Requester>::StopMessageLiveLocation
fn stop_message_live_location<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::StopMessageLiveLocation
type StopMessageLiveLocationInline = <B as Requester>::StopMessageLiveLocationInline
fn stop_message_live_location_inline<I>( &self, inline_message_id: I, ) -> Self::StopMessageLiveLocationInline
type SendVenue = <B as Requester>::SendVenue
fn send_venue<C, T, A>( &self, chat_id: C, latitude: f64, longitude: f64, title: T, address: A, ) -> Self::SendVenue
type SendContact = <B as Requester>::SendContact
fn send_contact<C, P, F>( &self, chat_id: C, phone_number: P, first_name: F, ) -> Self::SendContact
type SendPoll = <B as Requester>::SendPoll
fn send_poll<C, Q, O>( &self, chat_id: C, question: Q, options: O, ) -> Self::SendPoll
type SendDice = <B as Requester>::SendDice
fn send_dice<C>(&self, chat_id: C) -> Self::SendDice
type SendChatAction = <B as Requester>::SendChatAction
fn send_chat_action<C>( &self, chat_id: C, action: ChatAction, ) -> Self::SendChatAction
type SetMessageReaction = <B as Requester>::SetMessageReaction
fn set_message_reaction<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::SetMessageReaction
type GetUserProfilePhotos = <B as Requester>::GetUserProfilePhotos
fn get_user_profile_photos(&self, user_id: UserId) -> Self::GetUserProfilePhotos
type GetFile = <B as Requester>::GetFile
fn get_file<F>(&self, file_id: F) -> Self::GetFile
type KickChatMember = <B as Requester>::KickChatMember
fn kick_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::KickChatMember
type BanChatMember = <B as Requester>::BanChatMember
fn ban_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::BanChatMember
type UnbanChatMember = <B as Requester>::UnbanChatMember
fn unban_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::UnbanChatMember
type RestrictChatMember = <B as Requester>::RestrictChatMember
fn restrict_chat_member<C>( &self, chat_id: C, user_id: UserId, permissions: ChatPermissions, ) -> Self::RestrictChatMember
type PromoteChatMember = <B as Requester>::PromoteChatMember
fn promote_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::PromoteChatMember
type SetChatAdministratorCustomTitle = <B as Requester>::SetChatAdministratorCustomTitle
fn set_chat_administrator_custom_title<Ch, C>( &self, chat_id: Ch, user_id: UserId, custom_title: C, ) -> Self::SetChatAdministratorCustomTitle
type BanChatSenderChat = <B as Requester>::BanChatSenderChat
fn ban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> Self::BanChatSenderChat
type UnbanChatSenderChat = <B as Requester>::UnbanChatSenderChat
fn unban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> Self::UnbanChatSenderChat
type SetChatPermissions = <B as Requester>::SetChatPermissions
fn set_chat_permissions<C>( &self, chat_id: C, permissions: ChatPermissions, ) -> Self::SetChatPermissions
type ExportChatInviteLink = <B as Requester>::ExportChatInviteLink
fn export_chat_invite_link<C>(&self, chat_id: C) -> Self::ExportChatInviteLink
type CreateChatInviteLink = <B as Requester>::CreateChatInviteLink
fn create_chat_invite_link<C>(&self, chat_id: C) -> Self::CreateChatInviteLink
type EditChatInviteLink = <B as Requester>::EditChatInviteLink
fn edit_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::EditChatInviteLink
type RevokeChatInviteLink = <B as Requester>::RevokeChatInviteLink
fn revoke_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::RevokeChatInviteLink
type SetChatPhoto = <B as Requester>::SetChatPhoto
fn set_chat_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SetChatPhoto
type DeleteChatPhoto = <B as Requester>::DeleteChatPhoto
fn delete_chat_photo<C>(&self, chat_id: C) -> Self::DeleteChatPhoto
type SetChatTitle = <B as Requester>::SetChatTitle
fn set_chat_title<C, T>(&self, chat_id: C, title: T) -> Self::SetChatTitle
type SetChatDescription = <B as Requester>::SetChatDescription
fn set_chat_description<C>(&self, chat_id: C) -> Self::SetChatDescription
type PinChatMessage = <B as Requester>::PinChatMessage
fn pin_chat_message<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::PinChatMessage
type UnpinChatMessage = <B as Requester>::UnpinChatMessage
fn unpin_chat_message<C>(&self, chat_id: C) -> Self::UnpinChatMessage
type UnpinAllChatMessages = <B as Requester>::UnpinAllChatMessages
fn unpin_all_chat_messages<C>(&self, chat_id: C) -> Self::UnpinAllChatMessages
type LeaveChat = <B as Requester>::LeaveChat
fn leave_chat<C>(&self, chat_id: C) -> Self::LeaveChat
type GetChat = <B as Requester>::GetChat
fn get_chat<C>(&self, chat_id: C) -> Self::GetChat
type GetChatAdministrators = <B as Requester>::GetChatAdministrators
fn get_chat_administrators<C>(&self, chat_id: C) -> Self::GetChatAdministrators
type GetChatMembersCount = <B as Requester>::GetChatMembersCount
fn get_chat_members_count<C>(&self, chat_id: C) -> Self::GetChatMembersCount
type GetChatMemberCount = <B as Requester>::GetChatMemberCount
fn get_chat_member_count<C>(&self, chat_id: C) -> Self::GetChatMemberCount
type GetChatMember = <B as Requester>::GetChatMember
fn get_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::GetChatMember
type SetChatStickerSet = <B as Requester>::SetChatStickerSet
fn set_chat_sticker_set<C, S>( &self, chat_id: C, sticker_set_name: S, ) -> Self::SetChatStickerSet
type DeleteChatStickerSet = <B as Requester>::DeleteChatStickerSet
fn delete_chat_sticker_set<C>(&self, chat_id: C) -> Self::DeleteChatStickerSet
type GetForumTopicIconStickers = <B as Requester>::GetForumTopicIconStickers
fn get_forum_topic_icon_stickers(&self) -> Self::GetForumTopicIconStickers
type CreateForumTopic = <B as Requester>::CreateForumTopic
fn create_forum_topic<C, N, I>( &self, chat_id: C, name: N, icon_color: u32, icon_custom_emoji_id: I, ) -> Self::CreateForumTopic
type EditForumTopic = <B as Requester>::EditForumTopic
fn edit_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::EditForumTopic
type CloseForumTopic = <B as Requester>::CloseForumTopic
fn close_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::CloseForumTopic
type ReopenForumTopic = <B as Requester>::ReopenForumTopic
fn reopen_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::ReopenForumTopic
type DeleteForumTopic = <B as Requester>::DeleteForumTopic
fn delete_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::DeleteForumTopic
type UnpinAllForumTopicMessages = <B as Requester>::UnpinAllForumTopicMessages
fn unpin_all_forum_topic_messages<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::UnpinAllForumTopicMessages
type EditGeneralForumTopic = <B as Requester>::EditGeneralForumTopic
fn edit_general_forum_topic<C, N>( &self, chat_id: C, name: N, ) -> Self::EditGeneralForumTopic
type CloseGeneralForumTopic = <B as Requester>::CloseGeneralForumTopic
fn close_general_forum_topic<C>( &self, chat_id: C, ) -> Self::CloseGeneralForumTopic
type ReopenGeneralForumTopic = <B as Requester>::ReopenGeneralForumTopic
fn reopen_general_forum_topic<C>( &self, chat_id: C, ) -> Self::ReopenGeneralForumTopic
type HideGeneralForumTopic = <B as Requester>::HideGeneralForumTopic
fn hide_general_forum_topic<C>(&self, chat_id: C) -> Self::HideGeneralForumTopic
type UnhideGeneralForumTopic = <B as Requester>::UnhideGeneralForumTopic
fn unhide_general_forum_topic<C>( &self, chat_id: C, ) -> Self::UnhideGeneralForumTopic
type UnpinAllGeneralForumTopicMessages = <B as Requester>::UnpinAllGeneralForumTopicMessages
fn unpin_all_general_forum_topic_messages<C>( &self, chat_id: C, ) -> Self::UnpinAllGeneralForumTopicMessages
type AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery
fn answer_callback_query<C>( &self, callback_query_id: C, ) -> Self::AnswerCallbackQuery
type GetUserChatBoosts = <B as Requester>::GetUserChatBoosts
fn get_user_chat_boosts<C>( &self, chat_id: C, user_id: UserId, ) -> Self::GetUserChatBoosts
type SetMyCommands = <B as Requester>::SetMyCommands
fn set_my_commands<C>(&self, commands: C) -> Self::SetMyCommandswhere
C: IntoIterator<Item = BotCommand>,
type GetMyCommands = <B as Requester>::GetMyCommands
fn get_my_commands(&self) -> Self::GetMyCommands
type SetMyName = <B as Requester>::SetMyName
fn set_my_name(&self) -> Self::SetMyName
type GetMyName = <B as Requester>::GetMyName
fn get_my_name(&self) -> Self::GetMyName
type SetMyDescription = <B as Requester>::SetMyDescription
fn set_my_description(&self) -> Self::SetMyDescription
type GetMyDescription = <B as Requester>::GetMyDescription
fn get_my_description(&self) -> Self::GetMyDescription
type SetMyShortDescription = <B as Requester>::SetMyShortDescription
fn set_my_short_description(&self) -> Self::SetMyShortDescription
type GetMyShortDescription = <B as Requester>::GetMyShortDescription
fn get_my_short_description(&self) -> Self::GetMyShortDescription
type SetChatMenuButton = <B as Requester>::SetChatMenuButton
type GetChatMenuButton = <B as Requester>::GetChatMenuButton
type SetMyDefaultAdministratorRights = <B as Requester>::SetMyDefaultAdministratorRights
fn set_my_default_administrator_rights( &self, ) -> Self::SetMyDefaultAdministratorRights
type GetMyDefaultAdministratorRights = <B as Requester>::GetMyDefaultAdministratorRights
fn get_my_default_administrator_rights( &self, ) -> Self::GetMyDefaultAdministratorRights
type DeleteMyCommands = <B as Requester>::DeleteMyCommands
fn delete_my_commands(&self) -> Self::DeleteMyCommands
type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery
fn answer_inline_query<I, R>( &self, inline_query_id: I, results: R, ) -> Self::AnswerInlineQuery
type AnswerWebAppQuery = <B as Requester>::AnswerWebAppQuery
fn answer_web_app_query<W>( &self, web_app_query_id: W, result: InlineQueryResult, ) -> Self::AnswerWebAppQuery
type EditMessageText = <B as Requester>::EditMessageText
fn edit_message_text<C, T>( &self, chat_id: C, message_id: MessageId, text: T, ) -> Self::EditMessageText
type EditMessageTextInline = <B as Requester>::EditMessageTextInline
fn edit_message_text_inline<I, T>( &self, inline_message_id: I, text: T, ) -> Self::EditMessageTextInline
type EditMessageCaption = <B as Requester>::EditMessageCaption
type EditMessageCaptionInline = <B as Requester>::EditMessageCaptionInline
type EditMessageMedia = <B as Requester>::EditMessageMedia
fn edit_message_media<C>( &self, chat_id: C, message_id: MessageId, media: InputMedia, ) -> Self::EditMessageMedia
type EditMessageMediaInline = <B as Requester>::EditMessageMediaInline
fn edit_message_media_inline<I>( &self, inline_message_id: I, media: InputMedia, ) -> Self::EditMessageMediaInline
type EditMessageReplyMarkup = <B as Requester>::EditMessageReplyMarkup
fn edit_message_reply_markup<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::EditMessageReplyMarkup
type EditMessageReplyMarkupInline = <B as Requester>::EditMessageReplyMarkupInline
fn edit_message_reply_markup_inline<I>( &self, inline_message_id: I, ) -> Self::EditMessageReplyMarkupInline
type StopPoll = <B as Requester>::StopPoll
fn stop_poll<C>(&self, chat_id: C, message_id: MessageId) -> Self::StopPoll
type DeleteMessage = <B as Requester>::DeleteMessage
fn delete_message<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::DeleteMessage
type DeleteMessages = <B as Requester>::DeleteMessages
fn delete_messages<C, M>( &self, chat_id: C, message_ids: M, ) -> Self::DeleteMessages
type SendSticker = <B as Requester>::SendSticker
fn send_sticker<C>(&self, chat_id: C, sticker: InputFile) -> Self::SendSticker
type GetStickerSet = <B as Requester>::GetStickerSet
fn get_sticker_set<N>(&self, name: N) -> Self::GetStickerSet
type GetCustomEmojiStickers = <B as Requester>::GetCustomEmojiStickers
fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C,
) -> Self::GetCustomEmojiStickerswhere
C: IntoIterator<Item = String>,
type UploadStickerFile = <B as Requester>::UploadStickerFile
fn upload_sticker_file( &self, user_id: UserId, sticker: InputFile, sticker_format: StickerFormat, ) -> Self::UploadStickerFile
type CreateNewStickerSet = <B as Requester>::CreateNewStickerSet
fn create_new_sticker_set<N, T, S>( &self, user_id: UserId, name: N, title: T, stickers: S, sticker_format: StickerFormat, ) -> Self::CreateNewStickerSet
type AddStickerToSet = <B as Requester>::AddStickerToSet
fn add_sticker_to_set<N>( &self, user_id: UserId, name: N, sticker: InputSticker, ) -> Self::AddStickerToSet
type SetStickerPositionInSet = <B as Requester>::SetStickerPositionInSet
fn set_sticker_position_in_set<S>( &self, sticker: S, position: u32, ) -> Self::SetStickerPositionInSet
type DeleteStickerFromSet = <B as Requester>::DeleteStickerFromSet
fn delete_sticker_from_set<S>(&self, sticker: S) -> Self::DeleteStickerFromSet
type SetStickerSetThumbnail = <B as Requester>::SetStickerSetThumbnail
fn set_sticker_set_thumbnail<N>( &self, name: N, user_id: UserId, ) -> Self::SetStickerSetThumbnail
type SetCustomEmojiStickerSetThumbnail = <B as Requester>::SetCustomEmojiStickerSetThumbnail
fn set_custom_emoji_sticker_set_thumbnail<N>( &self, name: N, ) -> Self::SetCustomEmojiStickerSetThumbnail
type SetStickerSetTitle = <B as Requester>::SetStickerSetTitle
fn set_sticker_set_title<N, T>( &self, name: N, title: T, ) -> Self::SetStickerSetTitle
type DeleteStickerSet = <B as Requester>::DeleteStickerSet
fn delete_sticker_set<N>(&self, name: N) -> Self::DeleteStickerSet
type SetStickerEmojiList = <B as Requester>::SetStickerEmojiList
fn set_sticker_emoji_list<S, E>( &self, sticker: S, emoji_list: E, ) -> Self::SetStickerEmojiList
type SetStickerKeywords = <B as Requester>::SetStickerKeywords
fn set_sticker_keywords<S>(&self, sticker: S) -> Self::SetStickerKeywords
type SetStickerMaskPosition = <B as Requester>::SetStickerMaskPosition
fn set_sticker_mask_position<S>( &self, sticker: S, ) -> Self::SetStickerMaskPosition
type SendInvoice = <B as Requester>::SendInvoice
fn send_invoice<Ch, T, D, Pa, P, C, Pri>( &self, chat_id: Ch, title: T, description: D, payload: Pa, provider_token: P, currency: C, prices: Pri, ) -> Self::SendInvoice
type CreateInvoiceLink = <B as Requester>::CreateInvoiceLink
fn create_invoice_link<T, D, Pa, P, C, Pri>( &self, title: T, description: D, payload: Pa, provider_token: P, currency: C, prices: Pri, ) -> Self::CreateInvoiceLink
type AnswerShippingQuery = <B as Requester>::AnswerShippingQuery
fn answer_shipping_query<S>( &self, shipping_query_id: S, ok: bool, ) -> Self::AnswerShippingQuery
type AnswerPreCheckoutQuery = <B as Requester>::AnswerPreCheckoutQuery
fn answer_pre_checkout_query<P>( &self, pre_checkout_query_id: P, ok: bool, ) -> Self::AnswerPreCheckoutQuery
type SetPassportDataErrors = <B as Requester>::SetPassportDataErrors
fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E,
) -> Self::SetPassportDataErrorswhere
E: IntoIterator<Item = PassportElementError>,
type SendGame = <B as Requester>::SendGame
fn send_game<C, G>(&self, chat_id: C, game_short_name: G) -> Self::SendGame
type SetGameScore = <B as Requester>::SetGameScore
fn set_game_score( &self, user_id: UserId, score: u64, chat_id: u32, message_id: MessageId, ) -> Self::SetGameScore
type SetGameScoreInline = <B as Requester>::SetGameScoreInline
fn set_game_score_inline<I>( &self, user_id: UserId, score: u64, inline_message_id: I, ) -> Self::SetGameScoreInline
type GetGameHighScores = <B as Requester>::GetGameHighScores
fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T,
) -> Self::GetGameHighScoreswhere
T: Into<TargetMessage>,
type ApproveChatJoinRequest = <B as Requester>::ApproveChatJoinRequest
fn approve_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> Self::ApproveChatJoinRequest
type DeclineChatJoinRequest = <B as Requester>::DeclineChatJoinRequest
fn decline_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> Self::DeclineChatJoinRequest
Implementors§
source§impl Requester for Bot
impl Requester for Bot
type Err = RequestError
type GetUpdates = JsonRequest<GetUpdates>
type SetWebhook = MultipartRequest<SetWebhook>
type DeleteWebhook = JsonRequest<DeleteWebhook>
type GetWebhookInfo = JsonRequest<GetWebhookInfo>
type GetMe = JsonRequest<GetMe>
type SendMessage = JsonRequest<SendMessage>
type ForwardMessage = JsonRequest<ForwardMessage>
type ForwardMessages = JsonRequest<ForwardMessages>
type SendPhoto = MultipartRequest<SendPhoto>
type SendAudio = MultipartRequest<SendAudio>
type SendDocument = MultipartRequest<SendDocument>
type SendVideo = MultipartRequest<SendVideo>
type SendAnimation = MultipartRequest<SendAnimation>
type SendVoice = MultipartRequest<SendVoice>
type SendVideoNote = MultipartRequest<SendVideoNote>
type SendMediaGroup = MultipartRequest<SendMediaGroup>
type SendLocation = JsonRequest<SendLocation>
type EditMessageLiveLocation = JsonRequest<EditMessageLiveLocation>
type EditMessageLiveLocationInline = JsonRequest<EditMessageLiveLocationInline>
type StopMessageLiveLocation = JsonRequest<StopMessageLiveLocation>
type StopMessageLiveLocationInline = JsonRequest<StopMessageLiveLocationInline>
type SendVenue = JsonRequest<SendVenue>
type SendContact = JsonRequest<SendContact>
type SendPoll = JsonRequest<SendPoll>
type SendDice = JsonRequest<SendDice>
type SendChatAction = JsonRequest<SendChatAction>
type SetMessageReaction = JsonRequest<SetMessageReaction>
type GetUserProfilePhotos = JsonRequest<GetUserProfilePhotos>
type GetFile = JsonRequest<GetFile>
type KickChatMember = JsonRequest<KickChatMember>
type BanChatMember = JsonRequest<BanChatMember>
type UnbanChatMember = JsonRequest<UnbanChatMember>
type RestrictChatMember = JsonRequest<RestrictChatMember>
type PromoteChatMember = JsonRequest<PromoteChatMember>
type SetChatAdministratorCustomTitle = JsonRequest<SetChatAdministratorCustomTitle>
type BanChatSenderChat = JsonRequest<BanChatSenderChat>
type UnbanChatSenderChat = JsonRequest<UnbanChatSenderChat>
type SetChatPermissions = JsonRequest<SetChatPermissions>
type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>
type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>
type EditChatInviteLink = JsonRequest<EditChatInviteLink>
type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>
type ApproveChatJoinRequest = JsonRequest<ApproveChatJoinRequest>
type DeclineChatJoinRequest = JsonRequest<DeclineChatJoinRequest>
type SetChatPhoto = MultipartRequest<SetChatPhoto>
type DeleteChatPhoto = JsonRequest<DeleteChatPhoto>
type SetChatTitle = JsonRequest<SetChatTitle>
type SetChatDescription = JsonRequest<SetChatDescription>
type PinChatMessage = JsonRequest<PinChatMessage>
type UnpinChatMessage = JsonRequest<UnpinChatMessage>
type LeaveChat = JsonRequest<LeaveChat>
type GetChat = JsonRequest<GetChat>
type GetChatAdministrators = JsonRequest<GetChatAdministrators>
type GetChatMembersCount = JsonRequest<GetChatMembersCount>
type GetChatMemberCount = JsonRequest<GetChatMemberCount>
type GetChatMember = JsonRequest<GetChatMember>
type SetChatStickerSet = JsonRequest<SetChatStickerSet>
type DeleteChatStickerSet = JsonRequest<DeleteChatStickerSet>
type GetForumTopicIconStickers = JsonRequest<GetForumTopicIconStickers>
type CreateForumTopic = JsonRequest<CreateForumTopic>
type EditForumTopic = JsonRequest<EditForumTopic>
type CloseForumTopic = JsonRequest<CloseForumTopic>
type ReopenForumTopic = JsonRequest<ReopenForumTopic>
type DeleteForumTopic = JsonRequest<DeleteForumTopic>
type UnpinAllForumTopicMessages = JsonRequest<UnpinAllForumTopicMessages>
type EditGeneralForumTopic = JsonRequest<EditGeneralForumTopic>
type CloseGeneralForumTopic = JsonRequest<CloseGeneralForumTopic>
type ReopenGeneralForumTopic = JsonRequest<ReopenGeneralForumTopic>
type HideGeneralForumTopic = JsonRequest<HideGeneralForumTopic>
type UnhideGeneralForumTopic = JsonRequest<UnhideGeneralForumTopic>
type UnpinAllGeneralForumTopicMessages = JsonRequest<UnpinAllGeneralForumTopicMessages>
type AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>
type GetUserChatBoosts = JsonRequest<GetUserChatBoosts>
type SetMyCommands = JsonRequest<SetMyCommands>
type GetMyCommands = JsonRequest<GetMyCommands>
type SetMyName = JsonRequest<SetMyName>
type GetMyName = JsonRequest<GetMyName>
type SetMyDescription = JsonRequest<SetMyDescription>
type GetMyDescription = JsonRequest<GetMyDescription>
type SetMyShortDescription = JsonRequest<SetMyShortDescription>
type GetMyShortDescription = JsonRequest<GetMyShortDescription>
type SetChatMenuButton = JsonRequest<SetChatMenuButton>
type GetChatMenuButton = JsonRequest<GetChatMenuButton>
type SetMyDefaultAdministratorRights = JsonRequest<SetMyDefaultAdministratorRights>
type GetMyDefaultAdministratorRights = JsonRequest<GetMyDefaultAdministratorRights>
type DeleteMyCommands = JsonRequest<DeleteMyCommands>
type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>
type AnswerWebAppQuery = JsonRequest<AnswerWebAppQuery>
type EditMessageText = JsonRequest<EditMessageText>
type EditMessageTextInline = JsonRequest<EditMessageTextInline>
type EditMessageCaption = JsonRequest<EditMessageCaption>
type EditMessageCaptionInline = JsonRequest<EditMessageCaptionInline>
type EditMessageMedia = MultipartRequest<EditMessageMedia>
type EditMessageMediaInline = MultipartRequest<EditMessageMediaInline>
type EditMessageReplyMarkup = JsonRequest<EditMessageReplyMarkup>
type EditMessageReplyMarkupInline = JsonRequest<EditMessageReplyMarkupInline>
type StopPoll = JsonRequest<StopPoll>
type DeleteMessage = JsonRequest<DeleteMessage>
type DeleteMessages = JsonRequest<DeleteMessages>
type SendSticker = MultipartRequest<SendSticker>
type GetStickerSet = JsonRequest<GetStickerSet>
type GetCustomEmojiStickers = JsonRequest<GetCustomEmojiStickers>
type UploadStickerFile = MultipartRequest<UploadStickerFile>
type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>
type AddStickerToSet = MultipartRequest<AddStickerToSet>
type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>
type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>
type SetStickerSetThumbnail = MultipartRequest<SetStickerSetThumbnail>
type SetCustomEmojiStickerSetThumbnail = JsonRequest<SetCustomEmojiStickerSetThumbnail>
type SetStickerSetTitle = JsonRequest<SetStickerSetTitle>
type DeleteStickerSet = JsonRequest<DeleteStickerSet>
type SetStickerEmojiList = JsonRequest<SetStickerEmojiList>
type SetStickerKeywords = JsonRequest<SetStickerKeywords>
type SetStickerMaskPosition = JsonRequest<SetStickerMaskPosition>
type SendInvoice = JsonRequest<SendInvoice>
type CreateInvoiceLink = JsonRequest<CreateInvoiceLink>
type AnswerShippingQuery = JsonRequest<AnswerShippingQuery>
type AnswerPreCheckoutQuery = JsonRequest<AnswerPreCheckoutQuery>
type SetPassportDataErrors = JsonRequest<SetPassportDataErrors>
type SendGame = JsonRequest<SendGame>
type SetGameScore = JsonRequest<SetGameScore>
type SetGameScoreInline = JsonRequest<SetGameScoreInline>
type GetGameHighScores = JsonRequest<GetGameHighScores>
type LogOut = JsonRequest<LogOut>
type Close = JsonRequest<Close>
type CopyMessage = JsonRequest<CopyMessage>
type CopyMessages = JsonRequest<CopyMessages>
type UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>
source§impl<'a, Err> Requester for ErasedRequester<'a, Err>
Available on crate feature erased
only.
impl<'a, Err> Requester for ErasedRequester<'a, Err>
erased
only.type Err = Err
type GetMe = ErasedRequest<'a, GetMe, Err>
type LogOut = ErasedRequest<'a, LogOut, Err>
type Close = ErasedRequest<'a, Close, Err>
type GetUpdates = ErasedRequest<'a, GetUpdates, Err>
type SetWebhook = ErasedRequest<'a, SetWebhook, Err>
type DeleteWebhook = ErasedRequest<'a, DeleteWebhook, Err>
type GetWebhookInfo = ErasedRequest<'a, GetWebhookInfo, Err>
type ForwardMessage = ErasedRequest<'a, ForwardMessage, Err>
type ForwardMessages = ErasedRequest<'a, ForwardMessages, Err>
type CopyMessage = ErasedRequest<'a, CopyMessage, Err>
type CopyMessages = ErasedRequest<'a, CopyMessages, Err>
type SendMessage = ErasedRequest<'a, SendMessage, Err>
type SendPhoto = ErasedRequest<'a, SendPhoto, Err>
type SendAudio = ErasedRequest<'a, SendAudio, Err>
type SendDocument = ErasedRequest<'a, SendDocument, Err>
type SendVideo = ErasedRequest<'a, SendVideo, Err>
type SendAnimation = ErasedRequest<'a, SendAnimation, Err>
type SendVoice = ErasedRequest<'a, SendVoice, Err>
type SendVideoNote = ErasedRequest<'a, SendVideoNote, Err>
type SendMediaGroup = ErasedRequest<'a, SendMediaGroup, Err>
type SendLocation = ErasedRequest<'a, SendLocation, Err>
type EditMessageLiveLocation = ErasedRequest<'a, EditMessageLiveLocation, Err>
type EditMessageLiveLocationInline = ErasedRequest<'a, EditMessageLiveLocationInline, Err>
type StopMessageLiveLocation = ErasedRequest<'a, StopMessageLiveLocation, Err>
type StopMessageLiveLocationInline = ErasedRequest<'a, StopMessageLiveLocationInline, Err>
type SendVenue = ErasedRequest<'a, SendVenue, Err>
type SendContact = ErasedRequest<'a, SendContact, Err>
type SendPoll = ErasedRequest<'a, SendPoll, Err>
type SendDice = ErasedRequest<'a, SendDice, Err>
type SendChatAction = ErasedRequest<'a, SendChatAction, Err>
type SetMessageReaction = ErasedRequest<'a, SetMessageReaction, Err>
type GetUserProfilePhotos = ErasedRequest<'a, GetUserProfilePhotos, Err>
type GetFile = ErasedRequest<'a, GetFile, Err>
type KickChatMember = ErasedRequest<'a, KickChatMember, Err>
type BanChatMember = ErasedRequest<'a, BanChatMember, Err>
type UnbanChatMember = ErasedRequest<'a, UnbanChatMember, Err>
type RestrictChatMember = ErasedRequest<'a, RestrictChatMember, Err>
type PromoteChatMember = ErasedRequest<'a, PromoteChatMember, Err>
type SetChatAdministratorCustomTitle = ErasedRequest<'a, SetChatAdministratorCustomTitle, Err>
type BanChatSenderChat = ErasedRequest<'a, BanChatSenderChat, Err>
type UnbanChatSenderChat = ErasedRequest<'a, UnbanChatSenderChat, Err>
type SetChatPermissions = ErasedRequest<'a, SetChatPermissions, Err>
type ExportChatInviteLink = ErasedRequest<'a, ExportChatInviteLink, Err>
type CreateChatInviteLink = ErasedRequest<'a, CreateChatInviteLink, Err>
type EditChatInviteLink = ErasedRequest<'a, EditChatInviteLink, Err>
type RevokeChatInviteLink = ErasedRequest<'a, RevokeChatInviteLink, Err>
type SetChatPhoto = ErasedRequest<'a, SetChatPhoto, Err>
type DeleteChatPhoto = ErasedRequest<'a, DeleteChatPhoto, Err>
type SetChatTitle = ErasedRequest<'a, SetChatTitle, Err>
type SetChatDescription = ErasedRequest<'a, SetChatDescription, Err>
type PinChatMessage = ErasedRequest<'a, PinChatMessage, Err>
type UnpinChatMessage = ErasedRequest<'a, UnpinChatMessage, Err>
type UnpinAllChatMessages = ErasedRequest<'a, UnpinAllChatMessages, Err>
type LeaveChat = ErasedRequest<'a, LeaveChat, Err>
type GetChat = ErasedRequest<'a, GetChat, Err>
type GetChatAdministrators = ErasedRequest<'a, GetChatAdministrators, Err>
type GetChatMembersCount = ErasedRequest<'a, GetChatMembersCount, Err>
type GetChatMemberCount = ErasedRequest<'a, GetChatMemberCount, Err>
type GetChatMember = ErasedRequest<'a, GetChatMember, Err>
type SetChatStickerSet = ErasedRequest<'a, SetChatStickerSet, Err>
type DeleteChatStickerSet = ErasedRequest<'a, DeleteChatStickerSet, Err>
type GetForumTopicIconStickers = ErasedRequest<'a, GetForumTopicIconStickers, Err>
type CreateForumTopic = ErasedRequest<'a, CreateForumTopic, Err>
type EditForumTopic = ErasedRequest<'a, EditForumTopic, Err>
type CloseForumTopic = ErasedRequest<'a, CloseForumTopic, Err>
type ReopenForumTopic = ErasedRequest<'a, ReopenForumTopic, Err>
type DeleteForumTopic = ErasedRequest<'a, DeleteForumTopic, Err>
type UnpinAllForumTopicMessages = ErasedRequest<'a, UnpinAllForumTopicMessages, Err>
type EditGeneralForumTopic = ErasedRequest<'a, EditGeneralForumTopic, Err>
type CloseGeneralForumTopic = ErasedRequest<'a, CloseGeneralForumTopic, Err>
type ReopenGeneralForumTopic = ErasedRequest<'a, ReopenGeneralForumTopic, Err>
type HideGeneralForumTopic = ErasedRequest<'a, HideGeneralForumTopic, Err>
type UnhideGeneralForumTopic = ErasedRequest<'a, UnhideGeneralForumTopic, Err>
type UnpinAllGeneralForumTopicMessages = ErasedRequest<'a, UnpinAllGeneralForumTopicMessages, Err>
type AnswerCallbackQuery = ErasedRequest<'a, AnswerCallbackQuery, Err>
type GetUserChatBoosts = ErasedRequest<'a, GetUserChatBoosts, Err>
type SetMyCommands = ErasedRequest<'a, SetMyCommands, Err>
type GetMyCommands = ErasedRequest<'a, GetMyCommands, Err>
type SetMyName = ErasedRequest<'a, SetMyName, Err>
type GetMyName = ErasedRequest<'a, GetMyName, Err>
type SetMyDescription = ErasedRequest<'a, SetMyDescription, Err>
type GetMyDescription = ErasedRequest<'a, GetMyDescription, Err>
type SetMyShortDescription = ErasedRequest<'a, SetMyShortDescription, Err>
type GetMyShortDescription = ErasedRequest<'a, GetMyShortDescription, Err>
type SetChatMenuButton = ErasedRequest<'a, SetChatMenuButton, Err>
type GetChatMenuButton = ErasedRequest<'a, GetChatMenuButton, Err>
type SetMyDefaultAdministratorRights = ErasedRequest<'a, SetMyDefaultAdministratorRights, Err>
type GetMyDefaultAdministratorRights = ErasedRequest<'a, GetMyDefaultAdministratorRights, Err>
type DeleteMyCommands = ErasedRequest<'a, DeleteMyCommands, Err>
type AnswerInlineQuery = ErasedRequest<'a, AnswerInlineQuery, Err>
type AnswerWebAppQuery = ErasedRequest<'a, AnswerWebAppQuery, Err>
type EditMessageText = ErasedRequest<'a, EditMessageText, Err>
type EditMessageTextInline = ErasedRequest<'a, EditMessageTextInline, Err>
type EditMessageCaption = ErasedRequest<'a, EditMessageCaption, Err>
type EditMessageCaptionInline = ErasedRequest<'a, EditMessageCaptionInline, Err>
type EditMessageMedia = ErasedRequest<'a, EditMessageMedia, Err>
type EditMessageMediaInline = ErasedRequest<'a, EditMessageMediaInline, Err>
type EditMessageReplyMarkup = ErasedRequest<'a, EditMessageReplyMarkup, Err>
type EditMessageReplyMarkupInline = ErasedRequest<'a, EditMessageReplyMarkupInline, Err>
type StopPoll = ErasedRequest<'a, StopPoll, Err>
type DeleteMessage = ErasedRequest<'a, DeleteMessage, Err>
type DeleteMessages = ErasedRequest<'a, DeleteMessages, Err>
type SendSticker = ErasedRequest<'a, SendSticker, Err>
type GetStickerSet = ErasedRequest<'a, GetStickerSet, Err>
type GetCustomEmojiStickers = ErasedRequest<'a, GetCustomEmojiStickers, Err>
type UploadStickerFile = ErasedRequest<'a, UploadStickerFile, Err>
type CreateNewStickerSet = ErasedRequest<'a, CreateNewStickerSet, Err>
type AddStickerToSet = ErasedRequest<'a, AddStickerToSet, Err>
type SetStickerPositionInSet = ErasedRequest<'a, SetStickerPositionInSet, Err>
type DeleteStickerFromSet = ErasedRequest<'a, DeleteStickerFromSet, Err>
type SetStickerSetThumbnail = ErasedRequest<'a, SetStickerSetThumbnail, Err>
type SetCustomEmojiStickerSetThumbnail = ErasedRequest<'a, SetCustomEmojiStickerSetThumbnail, Err>
type SetStickerSetTitle = ErasedRequest<'a, SetStickerSetTitle, Err>
type DeleteStickerSet = ErasedRequest<'a, DeleteStickerSet, Err>
type SetStickerEmojiList = ErasedRequest<'a, SetStickerEmojiList, Err>
type SetStickerKeywords = ErasedRequest<'a, SetStickerKeywords, Err>
type SetStickerMaskPosition = ErasedRequest<'a, SetStickerMaskPosition, Err>
type SendInvoice = ErasedRequest<'a, SendInvoice, Err>
type CreateInvoiceLink = ErasedRequest<'a, CreateInvoiceLink, Err>
type AnswerShippingQuery = ErasedRequest<'a, AnswerShippingQuery, Err>
type AnswerPreCheckoutQuery = ErasedRequest<'a, AnswerPreCheckoutQuery, Err>
type SetPassportDataErrors = ErasedRequest<'a, SetPassportDataErrors, Err>
type SendGame = ErasedRequest<'a, SendGame, Err>
type SetGameScore = ErasedRequest<'a, SetGameScore, Err>
type SetGameScoreInline = ErasedRequest<'a, SetGameScoreInline, Err>
type GetGameHighScores = ErasedRequest<'a, GetGameHighScores, Err>
type ApproveChatJoinRequest = ErasedRequest<'a, ApproveChatJoinRequest, Err>
type DeclineChatJoinRequest = ErasedRequest<'a, DeclineChatJoinRequest, Err>
source§impl<B> Requester for CacheMe<B>where
B: Requester,
Available on crate feature cache_me
only.
impl<B> Requester for CacheMe<B>where
B: Requester,
cache_me
only.type Err = <B as Requester>::Err
type GetMe = CachedMeRequest<<B as Requester>::GetMe>
type LogOut = <B as Requester>::LogOut
type Close = <B as Requester>::Close
type GetUpdates = <B as Requester>::GetUpdates
type SetWebhook = <B as Requester>::SetWebhook
type DeleteWebhook = <B as Requester>::DeleteWebhook
type GetWebhookInfo = <B as Requester>::GetWebhookInfo
type ForwardMessage = <B as Requester>::ForwardMessage
type ForwardMessages = <B as Requester>::ForwardMessages
type CopyMessage = <B as Requester>::CopyMessage
type CopyMessages = <B as Requester>::CopyMessages
type SendMessage = <B as Requester>::SendMessage
type SendPhoto = <B as Requester>::SendPhoto
type SendAudio = <B as Requester>::SendAudio
type SendDocument = <B as Requester>::SendDocument
type SendVideo = <B as Requester>::SendVideo
type SendAnimation = <B as Requester>::SendAnimation
type SendVoice = <B as Requester>::SendVoice
type SendVideoNote = <B as Requester>::SendVideoNote
type SendMediaGroup = <B as Requester>::SendMediaGroup
type SendLocation = <B as Requester>::SendLocation
type EditMessageLiveLocation = <B as Requester>::EditMessageLiveLocation
type EditMessageLiveLocationInline = <B as Requester>::EditMessageLiveLocationInline
type StopMessageLiveLocation = <B as Requester>::StopMessageLiveLocation
type StopMessageLiveLocationInline = <B as Requester>::StopMessageLiveLocationInline
type SendVenue = <B as Requester>::SendVenue
type SendContact = <B as Requester>::SendContact
type SendPoll = <B as Requester>::SendPoll
type SendDice = <B as Requester>::SendDice
type SendChatAction = <B as Requester>::SendChatAction
type SetMessageReaction = <B as Requester>::SetMessageReaction
type GetUserProfilePhotos = <B as Requester>::GetUserProfilePhotos
type GetFile = <B as Requester>::GetFile
type KickChatMember = <B as Requester>::KickChatMember
type BanChatMember = <B as Requester>::BanChatMember
type UnbanChatMember = <B as Requester>::UnbanChatMember
type RestrictChatMember = <B as Requester>::RestrictChatMember
type PromoteChatMember = <B as Requester>::PromoteChatMember
type SetChatAdministratorCustomTitle = <B as Requester>::SetChatAdministratorCustomTitle
type BanChatSenderChat = <B as Requester>::BanChatSenderChat
type UnbanChatSenderChat = <B as Requester>::UnbanChatSenderChat
type SetChatPermissions = <B as Requester>::SetChatPermissions
type ExportChatInviteLink = <B as Requester>::ExportChatInviteLink
type CreateChatInviteLink = <B as Requester>::CreateChatInviteLink
type EditChatInviteLink = <B as Requester>::EditChatInviteLink
type RevokeChatInviteLink = <B as Requester>::RevokeChatInviteLink
type SetChatPhoto = <B as Requester>::SetChatPhoto
type DeleteChatPhoto = <B as Requester>::DeleteChatPhoto
type SetChatTitle = <B as Requester>::SetChatTitle
type SetChatDescription = <B as Requester>::SetChatDescription
type PinChatMessage = <B as Requester>::PinChatMessage
type UnpinChatMessage = <B as Requester>::UnpinChatMessage
type UnpinAllChatMessages = <B as Requester>::UnpinAllChatMessages
type LeaveChat = <B as Requester>::LeaveChat
type GetChat = <B as Requester>::GetChat
type GetChatAdministrators = <B as Requester>::GetChatAdministrators
type GetChatMembersCount = <B as Requester>::GetChatMembersCount
type GetChatMemberCount = <B as Requester>::GetChatMemberCount
type GetChatMember = <B as Requester>::GetChatMember
type SetChatStickerSet = <B as Requester>::SetChatStickerSet
type DeleteChatStickerSet = <B as Requester>::DeleteChatStickerSet
type GetForumTopicIconStickers = <B as Requester>::GetForumTopicIconStickers
type CreateForumTopic = <B as Requester>::CreateForumTopic
type EditForumTopic = <B as Requester>::EditForumTopic
type CloseForumTopic = <B as Requester>::CloseForumTopic
type ReopenForumTopic = <B as Requester>::ReopenForumTopic
type DeleteForumTopic = <B as Requester>::DeleteForumTopic
type UnpinAllForumTopicMessages = <B as Requester>::UnpinAllForumTopicMessages
type EditGeneralForumTopic = <B as Requester>::EditGeneralForumTopic
type CloseGeneralForumTopic = <B as Requester>::CloseGeneralForumTopic
type ReopenGeneralForumTopic = <B as Requester>::ReopenGeneralForumTopic
type HideGeneralForumTopic = <B as Requester>::HideGeneralForumTopic
type UnhideGeneralForumTopic = <B as Requester>::UnhideGeneralForumTopic
type UnpinAllGeneralForumTopicMessages = <B as Requester>::UnpinAllGeneralForumTopicMessages
type AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery
type GetUserChatBoosts = <B as Requester>::GetUserChatBoosts
type SetMyCommands = <B as Requester>::SetMyCommands
type GetMyCommands = <B as Requester>::GetMyCommands
type SetMyName = <B as Requester>::SetMyName
type GetMyName = <B as Requester>::GetMyName
type SetMyDescription = <B as Requester>::SetMyDescription
type GetMyDescription = <B as Requester>::GetMyDescription
type SetMyShortDescription = <B as Requester>::SetMyShortDescription
type GetMyShortDescription = <B as Requester>::GetMyShortDescription
type SetChatMenuButton = <B as Requester>::SetChatMenuButton
type GetChatMenuButton = <B as Requester>::GetChatMenuButton
type SetMyDefaultAdministratorRights = <B as Requester>::SetMyDefaultAdministratorRights
type GetMyDefaultAdministratorRights = <B as Requester>::GetMyDefaultAdministratorRights
type DeleteMyCommands = <B as Requester>::DeleteMyCommands
type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery
type AnswerWebAppQuery = <B as Requester>::AnswerWebAppQuery
type EditMessageText = <B as Requester>::EditMessageText
type EditMessageTextInline = <B as Requester>::EditMessageTextInline
type EditMessageCaption = <B as Requester>::EditMessageCaption
type EditMessageCaptionInline = <B as Requester>::EditMessageCaptionInline
type EditMessageMedia = <B as Requester>::EditMessageMedia
type EditMessageMediaInline = <B as Requester>::EditMessageMediaInline
type EditMessageReplyMarkup = <B as Requester>::EditMessageReplyMarkup
type EditMessageReplyMarkupInline = <B as Requester>::EditMessageReplyMarkupInline
type StopPoll = <B as Requester>::StopPoll
type DeleteMessage = <B as Requester>::DeleteMessage
type DeleteMessages = <B as Requester>::DeleteMessages
type SendSticker = <B as Requester>::SendSticker
type GetStickerSet = <B as Requester>::GetStickerSet
type GetCustomEmojiStickers = <B as Requester>::GetCustomEmojiStickers
type UploadStickerFile = <B as Requester>::UploadStickerFile
type CreateNewStickerSet = <B as Requester>::CreateNewStickerSet
type AddStickerToSet = <B as Requester>::AddStickerToSet
type SetStickerPositionInSet = <B as Requester>::SetStickerPositionInSet
type DeleteStickerFromSet = <B as Requester>::DeleteStickerFromSet
type SetStickerSetThumbnail = <B as Requester>::SetStickerSetThumbnail
type SetCustomEmojiStickerSetThumbnail = <B as Requester>::SetCustomEmojiStickerSetThumbnail
type SetStickerSetTitle = <B as Requester>::SetStickerSetTitle
type DeleteStickerSet = <B as Requester>::DeleteStickerSet
type SetStickerEmojiList = <B as Requester>::SetStickerEmojiList
type SetStickerKeywords = <B as Requester>::SetStickerKeywords
type SetStickerMaskPosition = <B as Requester>::SetStickerMaskPosition
type SendInvoice = <B as Requester>::SendInvoice
type CreateInvoiceLink = <B as Requester>::CreateInvoiceLink
type AnswerShippingQuery = <B as Requester>::AnswerShippingQuery
type AnswerPreCheckoutQuery = <B as Requester>::AnswerPreCheckoutQuery
type SetPassportDataErrors = <B as Requester>::SetPassportDataErrors
type SendGame = <B as Requester>::SendGame
type SetGameScore = <B as Requester>::SetGameScore
type SetGameScoreInline = <B as Requester>::SetGameScoreInline
type GetGameHighScores = <B as Requester>::GetGameHighScores
type ApproveChatJoinRequest = <B as Requester>::ApproveChatJoinRequest
type DeclineChatJoinRequest = <B as Requester>::DeclineChatJoinRequest
source§impl<B> Requester for DefaultParseMode<B>where
B: Requester,
B::SendMessage: Clone,
B::SendPhoto: Clone,
B::SendVideo: Clone,
B::SendAudio: Clone,
B::SendDocument: Clone,
B::SendAnimation: Clone,
B::SendVoice: Clone,
B::EditMessageText: Clone,
B::EditMessageTextInline: Clone,
B::EditMessageCaption: Clone,
B::EditMessageCaptionInline: Clone,
B::SendPoll: Clone,
B::CopyMessage: Clone,
B::AnswerInlineQuery: Clone,
B::AnswerWebAppQuery: Clone,
B::EditMessageMedia: Clone,
B::EditMessageMediaInline: Clone,
B::SendMediaGroup: Clone,
impl<B> Requester for DefaultParseMode<B>where
B: Requester,
B::SendMessage: Clone,
B::SendPhoto: Clone,
B::SendVideo: Clone,
B::SendAudio: Clone,
B::SendDocument: Clone,
B::SendAnimation: Clone,
B::SendVoice: Clone,
B::EditMessageText: Clone,
B::EditMessageTextInline: Clone,
B::EditMessageCaption: Clone,
B::EditMessageCaptionInline: Clone,
B::SendPoll: Clone,
B::CopyMessage: Clone,
B::AnswerInlineQuery: Clone,
B::AnswerWebAppQuery: Clone,
B::EditMessageMedia: Clone,
B::EditMessageMediaInline: Clone,
B::SendMediaGroup: Clone,
type Err = <B as Requester>::Err
type SendMessage = DefaultParseModeRequest<<B as Requester>::SendMessage>
type SendPhoto = DefaultParseModeRequest<<B as Requester>::SendPhoto>
type SendVideo = DefaultParseModeRequest<<B as Requester>::SendVideo>
type SendAudio = DefaultParseModeRequest<<B as Requester>::SendAudio>
type SendDocument = DefaultParseModeRequest<<B as Requester>::SendDocument>
type SendAnimation = DefaultParseModeRequest<<B as Requester>::SendAnimation>
type SendVoice = DefaultParseModeRequest<<B as Requester>::SendVoice>
type SendPoll = DefaultParseModeRequest<<B as Requester>::SendPoll>
type EditMessageText = DefaultParseModeRequest<<B as Requester>::EditMessageText>
type EditMessageTextInline = DefaultParseModeRequest<<B as Requester>::EditMessageTextInline>
type EditMessageCaption = DefaultParseModeRequest<<B as Requester>::EditMessageCaption>
type EditMessageCaptionInline = DefaultParseModeRequest<<B as Requester>::EditMessageCaptionInline>
type CopyMessage = DefaultParseModeRequest<<B as Requester>::CopyMessage>
type AnswerInlineQuery = DefaultParseModeRequest<<B as Requester>::AnswerInlineQuery>
type AnswerWebAppQuery = DefaultParseModeRequest<<B as Requester>::AnswerWebAppQuery>
type SendMediaGroup = DefaultParseModeRequest<<B as Requester>::SendMediaGroup>
type EditMessageMedia = DefaultParseModeRequest<<B as Requester>::EditMessageMedia>
type EditMessageMediaInline = DefaultParseModeRequest<<B as Requester>::EditMessageMediaInline>
type GetMe = <B as Requester>::GetMe
type LogOut = <B as Requester>::LogOut
type Close = <B as Requester>::Close
type GetUpdates = <B as Requester>::GetUpdates
type SetWebhook = <B as Requester>::SetWebhook
type DeleteWebhook = <B as Requester>::DeleteWebhook
type GetWebhookInfo = <B as Requester>::GetWebhookInfo
type ForwardMessage = <B as Requester>::ForwardMessage
type ForwardMessages = <B as Requester>::ForwardMessages
type CopyMessages = <B as Requester>::CopyMessages
type SendVideoNote = <B as Requester>::SendVideoNote
type SendLocation = <B as Requester>::SendLocation
type EditMessageLiveLocation = <B as Requester>::EditMessageLiveLocation
type EditMessageLiveLocationInline = <B as Requester>::EditMessageLiveLocationInline
type StopMessageLiveLocation = <B as Requester>::StopMessageLiveLocation
type StopMessageLiveLocationInline = <B as Requester>::StopMessageLiveLocationInline
type SendVenue = <B as Requester>::SendVenue
type SendContact = <B as Requester>::SendContact
type SendDice = <B as Requester>::SendDice
type SendChatAction = <B as Requester>::SendChatAction
type SetMessageReaction = <B as Requester>::SetMessageReaction
type GetUserProfilePhotos = <B as Requester>::GetUserProfilePhotos
type GetFile = <B as Requester>::GetFile
type KickChatMember = <B as Requester>::KickChatMember
type BanChatMember = <B as Requester>::BanChatMember
type UnbanChatMember = <B as Requester>::UnbanChatMember
type RestrictChatMember = <B as Requester>::RestrictChatMember
type PromoteChatMember = <B as Requester>::PromoteChatMember
type SetChatAdministratorCustomTitle = <B as Requester>::SetChatAdministratorCustomTitle
type BanChatSenderChat = <B as Requester>::BanChatSenderChat
type UnbanChatSenderChat = <B as Requester>::UnbanChatSenderChat
type SetChatPermissions = <B as Requester>::SetChatPermissions
type ExportChatInviteLink = <B as Requester>::ExportChatInviteLink
type CreateChatInviteLink = <B as Requester>::CreateChatInviteLink
type EditChatInviteLink = <B as Requester>::EditChatInviteLink
type RevokeChatInviteLink = <B as Requester>::RevokeChatInviteLink
type SetChatPhoto = <B as Requester>::SetChatPhoto
type DeleteChatPhoto = <B as Requester>::DeleteChatPhoto
type SetChatTitle = <B as Requester>::SetChatTitle
type SetChatDescription = <B as Requester>::SetChatDescription
type PinChatMessage = <B as Requester>::PinChatMessage
type UnpinChatMessage = <B as Requester>::UnpinChatMessage
type UnpinAllChatMessages = <B as Requester>::UnpinAllChatMessages
type LeaveChat = <B as Requester>::LeaveChat
type GetChat = <B as Requester>::GetChat
type GetChatAdministrators = <B as Requester>::GetChatAdministrators
type GetChatMembersCount = <B as Requester>::GetChatMembersCount
type GetChatMemberCount = <B as Requester>::GetChatMemberCount
type GetChatMember = <B as Requester>::GetChatMember
type SetChatStickerSet = <B as Requester>::SetChatStickerSet
type DeleteChatStickerSet = <B as Requester>::DeleteChatStickerSet
type GetForumTopicIconStickers = <B as Requester>::GetForumTopicIconStickers
type CreateForumTopic = <B as Requester>::CreateForumTopic
type EditForumTopic = <B as Requester>::EditForumTopic
type CloseForumTopic = <B as Requester>::CloseForumTopic
type ReopenForumTopic = <B as Requester>::ReopenForumTopic
type DeleteForumTopic = <B as Requester>::DeleteForumTopic
type UnpinAllForumTopicMessages = <B as Requester>::UnpinAllForumTopicMessages
type EditGeneralForumTopic = <B as Requester>::EditGeneralForumTopic
type CloseGeneralForumTopic = <B as Requester>::CloseGeneralForumTopic
type ReopenGeneralForumTopic = <B as Requester>::ReopenGeneralForumTopic
type HideGeneralForumTopic = <B as Requester>::HideGeneralForumTopic
type UnhideGeneralForumTopic = <B as Requester>::UnhideGeneralForumTopic
type UnpinAllGeneralForumTopicMessages = <B as Requester>::UnpinAllGeneralForumTopicMessages
type AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery
type GetUserChatBoosts = <B as Requester>::GetUserChatBoosts
type SetMyCommands = <B as Requester>::SetMyCommands
type GetMyCommands = <B as Requester>::GetMyCommands
type SetMyName = <B as Requester>::SetMyName
type GetMyName = <B as Requester>::GetMyName
type SetMyDescription = <B as Requester>::SetMyDescription
type GetMyDescription = <B as Requester>::GetMyDescription
type SetMyShortDescription = <B as Requester>::SetMyShortDescription
type GetMyShortDescription = <B as Requester>::GetMyShortDescription
type SetChatMenuButton = <B as Requester>::SetChatMenuButton
type GetChatMenuButton = <B as Requester>::GetChatMenuButton
type SetMyDefaultAdministratorRights = <B as Requester>::SetMyDefaultAdministratorRights
type GetMyDefaultAdministratorRights = <B as Requester>::GetMyDefaultAdministratorRights
type DeleteMyCommands = <B as Requester>::DeleteMyCommands
type EditMessageReplyMarkup = <B as Requester>::EditMessageReplyMarkup
type EditMessageReplyMarkupInline = <B as Requester>::EditMessageReplyMarkupInline
type StopPoll = <B as Requester>::StopPoll
type DeleteMessage = <B as Requester>::DeleteMessage
type DeleteMessages = <B as Requester>::DeleteMessages
type SendSticker = <B as Requester>::SendSticker
type GetStickerSet = <B as Requester>::GetStickerSet
type GetCustomEmojiStickers = <B as Requester>::GetCustomEmojiStickers
type UploadStickerFile = <B as Requester>::UploadStickerFile
type CreateNewStickerSet = <B as Requester>::CreateNewStickerSet
type AddStickerToSet = <B as Requester>::AddStickerToSet
type SetStickerPositionInSet = <B as Requester>::SetStickerPositionInSet
type DeleteStickerFromSet = <B as Requester>::DeleteStickerFromSet
type SetStickerSetThumbnail = <B as Requester>::SetStickerSetThumbnail
type SetCustomEmojiStickerSetThumbnail = <B as Requester>::SetCustomEmojiStickerSetThumbnail
type SetStickerSetTitle = <B as Requester>::SetStickerSetTitle
type DeleteStickerSet = <B as Requester>::DeleteStickerSet
type SetStickerEmojiList = <B as Requester>::SetStickerEmojiList
type SetStickerKeywords = <B as Requester>::SetStickerKeywords
type SetStickerMaskPosition = <B as Requester>::SetStickerMaskPosition
type SendInvoice = <B as Requester>::SendInvoice
type CreateInvoiceLink = <B as Requester>::CreateInvoiceLink
type AnswerShippingQuery = <B as Requester>::AnswerShippingQuery
type AnswerPreCheckoutQuery = <B as Requester>::AnswerPreCheckoutQuery
type SetPassportDataErrors = <B as Requester>::SetPassportDataErrors
type SendGame = <B as Requester>::SendGame
type SetGameScore = <B as Requester>::SetGameScore
type SetGameScoreInline = <B as Requester>::SetGameScoreInline
type GetGameHighScores = <B as Requester>::GetGameHighScores
type ApproveChatJoinRequest = <B as Requester>::ApproveChatJoinRequest
type DeclineChatJoinRequest = <B as Requester>::DeclineChatJoinRequest
source§impl<B> Requester for Trace<B>where
B: Requester,
Available on crate feature trace_adaptor
only.
impl<B> Requester for Trace<B>where
B: Requester,
trace_adaptor
only.type Err = <B as Requester>::Err
type GetMe = TraceRequest<<B as Requester>::GetMe>
type LogOut = TraceRequest<<B as Requester>::LogOut>
type Close = TraceRequest<<B as Requester>::Close>
type GetUpdates = TraceRequest<<B as Requester>::GetUpdates>
type SetWebhook = TraceRequest<<B as Requester>::SetWebhook>
type DeleteWebhook = TraceRequest<<B as Requester>::DeleteWebhook>
type GetWebhookInfo = TraceRequest<<B as Requester>::GetWebhookInfo>
type ForwardMessage = TraceRequest<<B as Requester>::ForwardMessage>
type ForwardMessages = TraceRequest<<B as Requester>::ForwardMessages>
type CopyMessage = TraceRequest<<B as Requester>::CopyMessage>
type CopyMessages = TraceRequest<<B as Requester>::CopyMessages>
type SendMessage = TraceRequest<<B as Requester>::SendMessage>
type SendPhoto = TraceRequest<<B as Requester>::SendPhoto>
type SendAudio = TraceRequest<<B as Requester>::SendAudio>
type SendDocument = TraceRequest<<B as Requester>::SendDocument>
type SendVideo = TraceRequest<<B as Requester>::SendVideo>
type SendAnimation = TraceRequest<<B as Requester>::SendAnimation>
type SendVoice = TraceRequest<<B as Requester>::SendVoice>
type SendVideoNote = TraceRequest<<B as Requester>::SendVideoNote>
type SendMediaGroup = TraceRequest<<B as Requester>::SendMediaGroup>
type SendLocation = TraceRequest<<B as Requester>::SendLocation>
type EditMessageLiveLocation = TraceRequest<<B as Requester>::EditMessageLiveLocation>
type EditMessageLiveLocationInline = TraceRequest<<B as Requester>::EditMessageLiveLocationInline>
type StopMessageLiveLocation = TraceRequest<<B as Requester>::StopMessageLiveLocation>
type StopMessageLiveLocationInline = TraceRequest<<B as Requester>::StopMessageLiveLocationInline>
type SendVenue = TraceRequest<<B as Requester>::SendVenue>
type SendContact = TraceRequest<<B as Requester>::SendContact>
type SendPoll = TraceRequest<<B as Requester>::SendPoll>
type SendDice = TraceRequest<<B as Requester>::SendDice>
type SendChatAction = TraceRequest<<B as Requester>::SendChatAction>
type SetMessageReaction = TraceRequest<<B as Requester>::SetMessageReaction>
type GetUserProfilePhotos = TraceRequest<<B as Requester>::GetUserProfilePhotos>
type GetFile = TraceRequest<<B as Requester>::GetFile>
type KickChatMember = TraceRequest<<B as Requester>::KickChatMember>
type BanChatMember = TraceRequest<<B as Requester>::BanChatMember>
type UnbanChatMember = TraceRequest<<B as Requester>::UnbanChatMember>
type RestrictChatMember = TraceRequest<<B as Requester>::RestrictChatMember>
type PromoteChatMember = TraceRequest<<B as Requester>::PromoteChatMember>
type SetChatAdministratorCustomTitle = TraceRequest<<B as Requester>::SetChatAdministratorCustomTitle>
type BanChatSenderChat = TraceRequest<<B as Requester>::BanChatSenderChat>
type UnbanChatSenderChat = TraceRequest<<B as Requester>::UnbanChatSenderChat>
type SetChatPermissions = TraceRequest<<B as Requester>::SetChatPermissions>
type ExportChatInviteLink = TraceRequest<<B as Requester>::ExportChatInviteLink>
type CreateChatInviteLink = TraceRequest<<B as Requester>::CreateChatInviteLink>
type EditChatInviteLink = TraceRequest<<B as Requester>::EditChatInviteLink>
type RevokeChatInviteLink = TraceRequest<<B as Requester>::RevokeChatInviteLink>
type SetChatPhoto = TraceRequest<<B as Requester>::SetChatPhoto>
type DeleteChatPhoto = TraceRequest<<B as Requester>::DeleteChatPhoto>
type SetChatTitle = TraceRequest<<B as Requester>::SetChatTitle>
type SetChatDescription = TraceRequest<<B as Requester>::SetChatDescription>
type PinChatMessage = TraceRequest<<B as Requester>::PinChatMessage>
type UnpinChatMessage = TraceRequest<<B as Requester>::UnpinChatMessage>
type UnpinAllChatMessages = TraceRequest<<B as Requester>::UnpinAllChatMessages>
type LeaveChat = TraceRequest<<B as Requester>::LeaveChat>
type GetChat = TraceRequest<<B as Requester>::GetChat>
type GetChatAdministrators = TraceRequest<<B as Requester>::GetChatAdministrators>
type GetChatMembersCount = TraceRequest<<B as Requester>::GetChatMembersCount>
type GetChatMemberCount = TraceRequest<<B as Requester>::GetChatMemberCount>
type GetChatMember = TraceRequest<<B as Requester>::GetChatMember>
type SetChatStickerSet = TraceRequest<<B as Requester>::SetChatStickerSet>
type DeleteChatStickerSet = TraceRequest<<B as Requester>::DeleteChatStickerSet>
type GetForumTopicIconStickers = TraceRequest<<B as Requester>::GetForumTopicIconStickers>
type CreateForumTopic = TraceRequest<<B as Requester>::CreateForumTopic>
type EditForumTopic = TraceRequest<<B as Requester>::EditForumTopic>
type CloseForumTopic = TraceRequest<<B as Requester>::CloseForumTopic>
type ReopenForumTopic = TraceRequest<<B as Requester>::ReopenForumTopic>
type DeleteForumTopic = TraceRequest<<B as Requester>::DeleteForumTopic>
type UnpinAllForumTopicMessages = TraceRequest<<B as Requester>::UnpinAllForumTopicMessages>
type EditGeneralForumTopic = TraceRequest<<B as Requester>::EditGeneralForumTopic>
type CloseGeneralForumTopic = TraceRequest<<B as Requester>::CloseGeneralForumTopic>
type ReopenGeneralForumTopic = TraceRequest<<B as Requester>::ReopenGeneralForumTopic>
type HideGeneralForumTopic = TraceRequest<<B as Requester>::HideGeneralForumTopic>
type UnhideGeneralForumTopic = TraceRequest<<B as Requester>::UnhideGeneralForumTopic>
type UnpinAllGeneralForumTopicMessages = TraceRequest<<B as Requester>::UnpinAllGeneralForumTopicMessages>
type AnswerCallbackQuery = TraceRequest<<B as Requester>::AnswerCallbackQuery>
type GetUserChatBoosts = TraceRequest<<B as Requester>::GetUserChatBoosts>
type SetMyCommands = TraceRequest<<B as Requester>::SetMyCommands>
type GetMyCommands = TraceRequest<<B as Requester>::GetMyCommands>
type SetMyName = TraceRequest<<B as Requester>::SetMyName>
type GetMyName = TraceRequest<<B as Requester>::GetMyName>
type SetMyDescription = TraceRequest<<B as Requester>::SetMyDescription>
type GetMyDescription = TraceRequest<<B as Requester>::GetMyDescription>
type SetMyShortDescription = TraceRequest<<B as Requester>::SetMyShortDescription>
type GetMyShortDescription = TraceRequest<<B as Requester>::GetMyShortDescription>
type SetChatMenuButton = TraceRequest<<B as Requester>::SetChatMenuButton>
type GetChatMenuButton = TraceRequest<<B as Requester>::GetChatMenuButton>
type SetMyDefaultAdministratorRights = TraceRequest<<B as Requester>::SetMyDefaultAdministratorRights>
type GetMyDefaultAdministratorRights = TraceRequest<<B as Requester>::GetMyDefaultAdministratorRights>
type DeleteMyCommands = TraceRequest<<B as Requester>::DeleteMyCommands>
type AnswerInlineQuery = TraceRequest<<B as Requester>::AnswerInlineQuery>
type AnswerWebAppQuery = TraceRequest<<B as Requester>::AnswerWebAppQuery>
type EditMessageText = TraceRequest<<B as Requester>::EditMessageText>
type EditMessageTextInline = TraceRequest<<B as Requester>::EditMessageTextInline>
type EditMessageCaption = TraceRequest<<B as Requester>::EditMessageCaption>
type EditMessageCaptionInline = TraceRequest<<B as Requester>::EditMessageCaptionInline>
type EditMessageMedia = TraceRequest<<B as Requester>::EditMessageMedia>
type EditMessageMediaInline = TraceRequest<<B as Requester>::EditMessageMediaInline>
type EditMessageReplyMarkup = TraceRequest<<B as Requester>::EditMessageReplyMarkup>
type EditMessageReplyMarkupInline = TraceRequest<<B as Requester>::EditMessageReplyMarkupInline>
type StopPoll = TraceRequest<<B as Requester>::StopPoll>
type DeleteMessage = TraceRequest<<B as Requester>::DeleteMessage>
type DeleteMessages = TraceRequest<<B as Requester>::DeleteMessages>
type SendSticker = TraceRequest<<B as Requester>::SendSticker>
type GetStickerSet = TraceRequest<<B as Requester>::GetStickerSet>
type GetCustomEmojiStickers = TraceRequest<<B as Requester>::GetCustomEmojiStickers>
type UploadStickerFile = TraceRequest<<B as Requester>::UploadStickerFile>
type CreateNewStickerSet = TraceRequest<<B as Requester>::CreateNewStickerSet>
type AddStickerToSet = TraceRequest<<B as Requester>::AddStickerToSet>
type SetStickerPositionInSet = TraceRequest<<B as Requester>::SetStickerPositionInSet>
type DeleteStickerFromSet = TraceRequest<<B as Requester>::DeleteStickerFromSet>
type SetStickerSetThumbnail = TraceRequest<<B as Requester>::SetStickerSetThumbnail>
type SetCustomEmojiStickerSetThumbnail = TraceRequest<<B as Requester>::SetCustomEmojiStickerSetThumbnail>
type SetStickerSetTitle = TraceRequest<<B as Requester>::SetStickerSetTitle>
type DeleteStickerSet = TraceRequest<<B as Requester>::DeleteStickerSet>
type SetStickerEmojiList = TraceRequest<<B as Requester>::SetStickerEmojiList>
type SetStickerKeywords = TraceRequest<<B as Requester>::SetStickerKeywords>
type SetStickerMaskPosition = TraceRequest<<B as Requester>::SetStickerMaskPosition>
type SendInvoice = TraceRequest<<B as Requester>::SendInvoice>
type CreateInvoiceLink = TraceRequest<<B as Requester>::CreateInvoiceLink>
type AnswerShippingQuery = TraceRequest<<B as Requester>::AnswerShippingQuery>
type AnswerPreCheckoutQuery = TraceRequest<<B as Requester>::AnswerPreCheckoutQuery>
type SetPassportDataErrors = TraceRequest<<B as Requester>::SetPassportDataErrors>
type SendGame = TraceRequest<<B as Requester>::SendGame>
type SetGameScore = TraceRequest<<B as Requester>::SetGameScore>
type SetGameScoreInline = TraceRequest<<B as Requester>::SetGameScoreInline>
type GetGameHighScores = TraceRequest<<B as Requester>::GetGameHighScores>
type ApproveChatJoinRequest = TraceRequest<<B as Requester>::ApproveChatJoinRequest>
type DeclineChatJoinRequest = TraceRequest<<B as Requester>::DeclineChatJoinRequest>
source§impl<B: Requester> Requester for Throttle<B>where
B::Err: AsResponseParameters,
B::SendMessage: Clone + Send + Sync + 'static,
B::ForwardMessage: Clone + Send + Sync + 'static,
B::CopyMessage: Clone + Send + Sync + 'static,
B::SendPhoto: Clone + Send + Sync + 'static,
B::SendAudio: Clone + Send + Sync + 'static,
B::SendDocument: Clone + Send + Sync + 'static,
B::SendVideo: Clone + Send + Sync + 'static,
B::SendAnimation: Clone + Send + Sync + 'static,
B::SendVoice: Clone + Send + Sync + 'static,
B::SendVideoNote: Clone + Send + Sync + 'static,
B::SendMediaGroup: Clone + Send + Sync + 'static,
B::SendLocation: Clone + Send + Sync + 'static,
B::SendVenue: Clone + Send + Sync + 'static,
B::SendContact: Clone + Send + Sync + 'static,
B::SendPoll: Clone + Send + Sync + 'static,
B::SendDice: Clone + Send + Sync + 'static,
B::SendSticker: Clone + Send + Sync + 'static,
B::SendInvoice: Clone + Send + Sync + 'static,
Available on crate feature throttle
only.
impl<B: Requester> Requester for Throttle<B>where
B::Err: AsResponseParameters,
B::SendMessage: Clone + Send + Sync + 'static,
B::ForwardMessage: Clone + Send + Sync + 'static,
B::CopyMessage: Clone + Send + Sync + 'static,
B::SendPhoto: Clone + Send + Sync + 'static,
B::SendAudio: Clone + Send + Sync + 'static,
B::SendDocument: Clone + Send + Sync + 'static,
B::SendVideo: Clone + Send + Sync + 'static,
B::SendAnimation: Clone + Send + Sync + 'static,
B::SendVoice: Clone + Send + Sync + 'static,
B::SendVideoNote: Clone + Send + Sync + 'static,
B::SendMediaGroup: Clone + Send + Sync + 'static,
B::SendLocation: Clone + Send + Sync + 'static,
B::SendVenue: Clone + Send + Sync + 'static,
B::SendContact: Clone + Send + Sync + 'static,
B::SendPoll: Clone + Send + Sync + 'static,
B::SendDice: Clone + Send + Sync + 'static,
B::SendSticker: Clone + Send + Sync + 'static,
B::SendInvoice: Clone + Send + Sync + 'static,
throttle
only.