Struct teloxide::Bot [−][src]
pub struct Bot { /* fields omitted */ }
Expand description
A requests sender.
This is the main type of the library, it allows to send requests to the Telegram Bot API and download files.
TBA methods
All TBA methods are located in the Requester
impl for Bot
. This
allows for opt-in behaviours using requester adaptors.
use teloxide_core::prelude::*;
let bot = Bot::new("TOKEN");
dbg!(bot.get_me().send().await?);
File download
In the similar way as with TBA methods, file downloading methods are located
in a trait — Download<'_>
. See its documentation for more.
Clone cost
Bot::clone
is relatively cheap, so if you need to share Bot
, it’s
recommended to clone it, instead of wrapping it in Arc<_>
.
Implementations
Constructors
pub fn new<S>(token: S) -> BotⓘNotable traits for Botimpl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
where
S: Into<String>,
pub fn new<S>(token: S) -> BotⓘNotable traits for Botimpl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
where
S: Into<String>,
impl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
Creates a new Bot
with the specified token and the default
http-client.
Panics
If it cannot create [reqwest::Client
].
pub fn with_client<S>(token: S, client: Client) -> BotⓘNotable traits for Botimpl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
where
S: Into<String>,
pub fn with_client<S>(token: S, client: Client) -> BotⓘNotable traits for Botimpl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
where
S: Into<String>,
impl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
Creates a new Bot
with the specified token and your
reqwest::Client
.
Caution
Your custom client might not be configured correctly to be able to work in long time durations, see issue 223.
pub fn from_env() -> BotⓘNotable traits for Botimpl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
pub fn from_env() -> BotⓘNotable traits for Botimpl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
impl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
Creates a new Bot
with the TELOXIDE_TOKEN
& TELOXIDE_PROXY
environmental variables (a bot’s token & a proxy) and the default
reqwest::Client
.
This function passes the value of TELOXIDE_PROXY
into
reqwest::Proxy::all
, if it exists, otherwise returns the default
client.
Panics
- If cannot get the
TELOXIDE_TOKEN
environmental variable. - If it cannot create
reqwest::Client
.
pub fn from_env_with_client(client: Client) -> BotⓘNotable traits for Botimpl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
pub fn from_env_with_client(client: Client) -> BotⓘNotable traits for Botimpl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
impl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
Creates a new Bot
with the TELOXIDE_TOKEN
environmental variable (a
bot’s token) and your reqwest::Client
.
Panics
If cannot get the TELOXIDE_TOKEN
environmental variable.
Caution
Your custom client might not be configured correctly to be able to work in long time durations, see issue 223.
pub fn set_api_url(self, url: Url) -> BotⓘNotable traits for Botimpl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
pub fn set_api_url(self, url: Url) -> BotⓘNotable traits for Botimpl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
impl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
Sets a custom API URL.
For example, you can run your own Telegram bot API server and set its URL using this method.
Examples
use teloxide_core::{
requests::{Request, Requester},
Bot,
};
let url = reqwest::Url::parse("https://localhost/tbas").unwrap();
let bot = Bot::new("TOKEN").set_api_url(url);
// From now all methods will use "https://localhost/tbas" as an API URL.
bot.get_me().send().await
Multi-instance behaviour
This method only sets the url for one bot instace, older clones are unaffected.
use teloxide_core::Bot;
let bot = Bot::new("TOKEN");
let bot2 = bot.clone();
let bot = bot.set_api_url(reqwest::Url::parse("https://example.com/").unwrap());
assert_eq!(bot.api_url().as_str(), "https://example.com/");
assert_eq!(bot.clone().api_url().as_str(), "https://example.com/");
assert_ne!(bot2.api_url().as_str(), "https://example.com/");
Getters
Trait Implementations
pub fn clone(&self) -> BotⓘNotable traits for Botimpl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
pub fn clone(&self) -> BotⓘNotable traits for Botimpl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
impl Requester for Bot type Err = RequestError; type GetUpdates = JsonRequest<GetUpdates>; type SetWebhook = JsonRequest<SetWebhook>; type DeleteWebhook = JsonRequest<DeleteWebhook>; type GetWebhookInfo = JsonRequest<GetWebhookInfo>; type GetMe = JsonRequest<GetMe>; type SendMessage = JsonRequest<SendMessage>; type ForwardMessage = JsonRequest<ForwardMessage>; 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 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 SetChatPermissions = JsonRequest<SetChatPermissions>; type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>; type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>; type EditChatInviteLink = JsonRequest<EditChatInviteLink>; type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>; 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 AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>; type SetMyCommands = JsonRequest<SetMyCommands>; type GetMyCommands = JsonRequest<GetMyCommands>; type DeleteMyCommands = JsonRequest<DeleteMyCommands>; type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>; 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 SendSticker = MultipartRequest<SendSticker>; type GetStickerSet = JsonRequest<GetStickerSet>; type UploadStickerFile = MultipartRequest<UploadStickerFile>; type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>; type AddStickerToSet = MultipartRequest<AddStickerToSet>; type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>; type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>; type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>; type SendInvoice = JsonRequest<SendInvoice>; 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 UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>; type GetUpdatesFaultTolerant = JsonRequest<GetUpdatesFaultTolerant>;
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
type Err = DownloadError
type Err = DownloadError
An error returned from download_file
.
A future returned from download_file
.
pub fn download_file(
&self,
path: &str,
destination: &'w mut (dyn AsyncWrite + Send + Unpin + 'w)
) -> Pin<Box<dyn Future<Output = Result<(), DownloadError>> + Send + 'w, Global>>
pub fn download_file(
&self,
path: &str,
destination: &'w mut (dyn AsyncWrite + Send + Unpin + 'w)
) -> Pin<Box<dyn Future<Output = Result<(), DownloadError>> + Send + 'w, Global>>
Download a file from Telegram into destination
. Read more
An error returned from
download_file_stream
. Read more
A stream returned from download_file_stream
. Read more
type Err = RequestError
type Err = RequestError
Error type returned by all requests.
type GetUpdates = JsonRequest<GetUpdates>
pub fn get_updates(&self) -> JsonRequest<GetUpdates>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
pub fn get_updates(&self) -> JsonRequest<GetUpdates>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see GetUpdates
.
type SetWebhook = JsonRequest<SetWebhook>
pub fn set_webhook(&self, url: Url) -> JsonRequest<SetWebhook>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
pub fn set_webhook(&self, url: Url) -> JsonRequest<SetWebhook>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SetWebhook
.
type DeleteWebhook = JsonRequest<DeleteWebhook>
pub fn delete_webhook(&self) -> JsonRequest<DeleteWebhook>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
pub fn delete_webhook(&self) -> JsonRequest<DeleteWebhook>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see DeleteWebhook
.
type GetWebhookInfo = JsonRequest<GetWebhookInfo>
pub fn get_webhook_info(&self) -> JsonRequest<GetWebhookInfo>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
pub fn get_webhook_info(&self) -> JsonRequest<GetWebhookInfo>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see GetWebhookInfo
.
type GetMe = JsonRequest<GetMe>
pub fn get_me(&self) -> JsonRequest<GetMe>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
pub fn get_me(&self) -> JsonRequest<GetMe>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see GetMe
.
type SendMessage = JsonRequest<SendMessage>
pub fn send_message<C, T>(
&self,
chat_id: C,
text: T
) -> JsonRequest<SendMessage>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
T: Into<String>,
pub fn send_message<C, T>(
&self,
chat_id: C,
text: T
) -> JsonRequest<SendMessage>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
T: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendMessage
.
type ForwardMessage = JsonRequest<ForwardMessage>
pub fn forward_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: i32
) -> JsonRequest<ForwardMessage>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
F: Into<ChatId>,
pub fn forward_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: i32
) -> JsonRequest<ForwardMessage>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
F: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see ForwardMessage
.
type SendPhoto = MultipartRequest<SendPhoto>
pub fn send_photo<C>(
&self,
chat_id: C,
photo: InputFile
) -> MultipartRequest<SendPhoto>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn send_photo<C>(
&self,
chat_id: C,
photo: InputFile
) -> MultipartRequest<SendPhoto>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendPhoto
.
type SendAudio = MultipartRequest<SendAudio>
pub fn send_audio<C>(
&self,
chat_id: C,
audio: InputFile
) -> MultipartRequest<SendAudio>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn send_audio<C>(
&self,
chat_id: C,
audio: InputFile
) -> MultipartRequest<SendAudio>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendAudio
.
type SendDocument = MultipartRequest<SendDocument>
pub fn send_document<C>(
&self,
chat_id: C,
document: InputFile
) -> MultipartRequest<SendDocument>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn send_document<C>(
&self,
chat_id: C,
document: InputFile
) -> MultipartRequest<SendDocument>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendDocument
.
type SendVideo = MultipartRequest<SendVideo>
pub fn send_video<C>(
&self,
chat_id: C,
video: InputFile
) -> MultipartRequest<SendVideo>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn send_video<C>(
&self,
chat_id: C,
video: InputFile
) -> MultipartRequest<SendVideo>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendVideo
.
pub fn send_animation<C>(
&self,
chat_id: C,
animation: InputFile
) -> MultipartRequest<SendAnimation>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn send_animation<C>(
&self,
chat_id: C,
animation: InputFile
) -> MultipartRequest<SendAnimation>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendAnimation
.
type SendVoice = MultipartRequest<SendVoice>
pub fn send_voice<C>(
&self,
chat_id: C,
voice: InputFile
) -> MultipartRequest<SendVoice>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn send_voice<C>(
&self,
chat_id: C,
voice: InputFile
) -> MultipartRequest<SendVoice>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendVoice
.
pub fn send_video_note<C>(
&self,
chat_id: C,
video_note: InputFile
) -> MultipartRequest<SendVideoNote>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn send_video_note<C>(
&self,
chat_id: C,
video_note: InputFile
) -> MultipartRequest<SendVideoNote>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendVideoNote
.
pub fn send_media_group<C, M>(
&self,
chat_id: C,
media: M
) -> MultipartRequest<SendMediaGroup>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
M: IntoIterator<Item = InputMedia>,
pub fn send_media_group<C, M>(
&self,
chat_id: C,
media: M
) -> MultipartRequest<SendMediaGroup>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
M: IntoIterator<Item = InputMedia>,
impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendMediaGroup
.
type SendLocation = JsonRequest<SendLocation>
pub fn send_location<C>(
&self,
chat_id: C,
latitude: f64,
longitude: f64
) -> JsonRequest<SendLocation>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn send_location<C>(
&self,
chat_id: C,
latitude: f64,
longitude: f64
) -> JsonRequest<SendLocation>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendLocation
.
pub fn edit_message_live_location<C>(
&self,
chat_id: C,
message_id: i32,
latitude: f64,
longitude: f64
) -> JsonRequest<EditMessageLiveLocation>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn edit_message_live_location<C>(
&self,
chat_id: C,
message_id: i32,
latitude: f64,
longitude: f64
) -> JsonRequest<EditMessageLiveLocation>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see EditMessageLiveLocation
.
pub fn edit_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64
) -> JsonRequest<EditMessageLiveLocationInline>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
I: Into<String>,
pub fn edit_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64
) -> JsonRequest<EditMessageLiveLocationInline>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
I: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see EditMessageLiveLocationInline
.
pub fn stop_message_live_location<C>(
&self,
chat_id: C,
message_id: i32,
latitude: f64,
longitude: f64
) -> JsonRequest<StopMessageLiveLocation>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn stop_message_live_location<C>(
&self,
chat_id: C,
message_id: i32,
latitude: f64,
longitude: f64
) -> JsonRequest<StopMessageLiveLocation>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see StopMessageLiveLocation
.
pub fn stop_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64
) -> JsonRequest<StopMessageLiveLocationInline>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
I: Into<String>,
pub fn stop_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64
) -> JsonRequest<StopMessageLiveLocationInline>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
I: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see StopMessageLiveLocationInline
.
type SendVenue = JsonRequest<SendVenue>
pub fn send_venue<C, T, A>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
title: T,
address: A
) -> JsonRequest<SendVenue>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
T: Into<String>,
A: Into<String>,
pub fn send_venue<C, T, A>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
title: T,
address: A
) -> JsonRequest<SendVenue>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
T: Into<String>,
A: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendVenue
.
type SendContact = JsonRequest<SendContact>
pub fn send_contact<C, P, F>(
&self,
chat_id: C,
phone_number: P,
first_name: F
) -> JsonRequest<SendContact>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
P: Into<String>,
F: Into<String>,
pub fn send_contact<C, P, F>(
&self,
chat_id: C,
phone_number: P,
first_name: F
) -> JsonRequest<SendContact>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
P: Into<String>,
F: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendContact
.
type SendPoll = JsonRequest<SendPoll>
pub fn send_poll<C, Q, O>(
&self,
chat_id: C,
question: Q,
options: O,
type_: PollType
) -> JsonRequest<SendPoll>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
Q: Into<String>,
O: IntoIterator<Item = String>,
pub fn send_poll<C, Q, O>(
&self,
chat_id: C,
question: Q,
options: O,
type_: PollType
) -> JsonRequest<SendPoll>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
Q: Into<String>,
O: IntoIterator<Item = String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendPoll
.
type SendDice = JsonRequest<SendDice>
pub fn send_dice<C>(&self, chat_id: C) -> JsonRequest<SendDice>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn send_dice<C>(&self, chat_id: C) -> JsonRequest<SendDice>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendDice
.
type SendChatAction = JsonRequest<SendChatAction>
pub fn send_chat_action<C>(
&self,
chat_id: C,
action: ChatAction
) -> JsonRequest<SendChatAction>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn send_chat_action<C>(
&self,
chat_id: C,
action: ChatAction
) -> JsonRequest<SendChatAction>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendChatAction
.
pub fn get_user_profile_photos(
&self,
user_id: i64
) -> JsonRequest<GetUserProfilePhotos>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
pub fn get_user_profile_photos(
&self,
user_id: i64
) -> JsonRequest<GetUserProfilePhotos>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see GetUserProfilePhotos
.
type GetFile = JsonRequest<GetFile>
pub fn get_file<F>(&self, file_id: F) -> JsonRequest<GetFile>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
F: Into<String>,
pub fn get_file<F>(&self, file_id: F) -> JsonRequest<GetFile>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
F: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see GetFile
.
type KickChatMember = JsonRequest<KickChatMember>
pub fn kick_chat_member<C>(
&self,
chat_id: C,
user_id: i64
) -> JsonRequest<KickChatMember>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn kick_chat_member<C>(
&self,
chat_id: C,
user_id: i64
) -> JsonRequest<KickChatMember>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see KickChatMember
.
type BanChatMember = JsonRequest<BanChatMember>
pub fn ban_chat_member<C>(
&self,
chat_id: C,
user_id: i64
) -> JsonRequest<BanChatMember>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn ban_chat_member<C>(
&self,
chat_id: C,
user_id: i64
) -> JsonRequest<BanChatMember>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see BanChatMember
.
pub fn unban_chat_member<C>(
&self,
chat_id: C,
user_id: i64
) -> JsonRequest<UnbanChatMember>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn unban_chat_member<C>(
&self,
chat_id: C,
user_id: i64
) -> JsonRequest<UnbanChatMember>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see UnbanChatMember
.
pub fn restrict_chat_member<C>(
&self,
chat_id: C,
user_id: i64,
permissions: ChatPermissions
) -> JsonRequest<RestrictChatMember>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn restrict_chat_member<C>(
&self,
chat_id: C,
user_id: i64,
permissions: ChatPermissions
) -> JsonRequest<RestrictChatMember>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see RestrictChatMember
.
pub fn promote_chat_member<C>(
&self,
chat_id: C,
user_id: i64
) -> JsonRequest<PromoteChatMember>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn promote_chat_member<C>(
&self,
chat_id: C,
user_id: i64
) -> JsonRequest<PromoteChatMember>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see PromoteChatMember
.
pub fn set_chat_administrator_custom_title<Ch, Cu>(
&self,
chat_id: Ch,
user_id: i64,
custom_title: Cu
) -> JsonRequest<SetChatAdministratorCustomTitle>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
Ch: Into<ChatId>,
Cu: Into<String>,
pub fn set_chat_administrator_custom_title<Ch, Cu>(
&self,
chat_id: Ch,
user_id: i64,
custom_title: Cu
) -> JsonRequest<SetChatAdministratorCustomTitle>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
Ch: Into<ChatId>,
Cu: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SetChatAdministratorCustomTitle
.
pub fn set_chat_permissions<C>(
&self,
chat_id: C,
permissions: ChatPermissions
) -> JsonRequest<SetChatPermissions>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn set_chat_permissions<C>(
&self,
chat_id: C,
permissions: ChatPermissions
) -> JsonRequest<SetChatPermissions>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SetChatPermissions
.
pub fn export_chat_invite_link<C>(
&self,
chat_id: C
) -> JsonRequest<ExportChatInviteLink>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn export_chat_invite_link<C>(
&self,
chat_id: C
) -> JsonRequest<ExportChatInviteLink>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see ExportChatInviteLink
.
pub fn create_chat_invite_link<C>(
&self,
chat_id: C
) -> JsonRequest<CreateChatInviteLink>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn create_chat_invite_link<C>(
&self,
chat_id: C
) -> JsonRequest<CreateChatInviteLink>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see CreateChatInviteLink
.
pub fn edit_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I
) -> JsonRequest<EditChatInviteLink>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
I: Into<String>,
pub fn edit_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I
) -> JsonRequest<EditChatInviteLink>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
I: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see EditChatInviteLink
.
pub fn revoke_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I
) -> JsonRequest<RevokeChatInviteLink>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
I: Into<String>,
pub fn revoke_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I
) -> JsonRequest<RevokeChatInviteLink>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
I: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see RevokeChatInviteLink
.
type SetChatPhoto = MultipartRequest<SetChatPhoto>
pub fn set_chat_photo<C>(
&self,
chat_id: C,
photo: InputFile
) -> MultipartRequest<SetChatPhoto>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn set_chat_photo<C>(
&self,
chat_id: C,
photo: InputFile
) -> MultipartRequest<SetChatPhoto>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SetChatPhoto
.
pub fn delete_chat_photo<C>(&self, chat_id: C) -> JsonRequest<DeleteChatPhoto>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn delete_chat_photo<C>(&self, chat_id: C) -> JsonRequest<DeleteChatPhoto>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see DeleteChatPhoto
.
type SetChatTitle = JsonRequest<SetChatTitle>
pub fn set_chat_title<C, T>(
&self,
chat_id: C,
title: T
) -> JsonRequest<SetChatTitle>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
T: Into<String>,
pub fn set_chat_title<C, T>(
&self,
chat_id: C,
title: T
) -> JsonRequest<SetChatTitle>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
T: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SetChatTitle
.
pub fn set_chat_description<C>(
&self,
chat_id: C
) -> JsonRequest<SetChatDescription>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn set_chat_description<C>(
&self,
chat_id: C
) -> JsonRequest<SetChatDescription>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SetChatDescription
.
type PinChatMessage = JsonRequest<PinChatMessage>
pub fn pin_chat_message<C>(
&self,
chat_id: C,
message_id: i32
) -> JsonRequest<PinChatMessage>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn pin_chat_message<C>(
&self,
chat_id: C,
message_id: i32
) -> JsonRequest<PinChatMessage>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see PinChatMessage
.
pub fn unpin_chat_message<C>(&self, chat_id: C) -> JsonRequest<UnpinChatMessage>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn unpin_chat_message<C>(&self, chat_id: C) -> JsonRequest<UnpinChatMessage>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see UnpinChatMessage
.
type LeaveChat = JsonRequest<LeaveChat>
pub fn leave_chat<C>(&self, chat_id: C) -> JsonRequest<LeaveChat>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn leave_chat<C>(&self, chat_id: C) -> JsonRequest<LeaveChat>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see LeaveChat
.
type GetChat = JsonRequest<GetChat>
pub fn get_chat<C>(&self, chat_id: C) -> JsonRequest<GetChat>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn get_chat<C>(&self, chat_id: C) -> JsonRequest<GetChat>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see GetChat
.
pub fn get_chat_administrators<C>(
&self,
chat_id: C
) -> JsonRequest<GetChatAdministrators>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn get_chat_administrators<C>(
&self,
chat_id: C
) -> JsonRequest<GetChatAdministrators>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see GetChatAdministrators
.
pub fn get_chat_members_count<C>(
&self,
chat_id: C
) -> JsonRequest<GetChatMembersCount>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn get_chat_members_count<C>(
&self,
chat_id: C
) -> JsonRequest<GetChatMembersCount>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see GetChatMembersCount
.
pub fn get_chat_member_count<C>(
&self,
chat_id: C
) -> JsonRequest<GetChatMemberCount>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn get_chat_member_count<C>(
&self,
chat_id: C
) -> JsonRequest<GetChatMemberCount>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see GetChatMemberCount
.
type GetChatMember = JsonRequest<GetChatMember>
pub fn get_chat_member<C>(
&self,
chat_id: C,
user_id: i64
) -> JsonRequest<GetChatMember>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn get_chat_member<C>(
&self,
chat_id: C,
user_id: i64
) -> JsonRequest<GetChatMember>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see GetChatMember
.
pub fn set_chat_sticker_set<C, S>(
&self,
chat_id: C,
sticker_set_name: S
) -> JsonRequest<SetChatStickerSet>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
S: Into<String>,
pub fn set_chat_sticker_set<C, S>(
&self,
chat_id: C,
sticker_set_name: S
) -> JsonRequest<SetChatStickerSet>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
S: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SetChatStickerSet
.
pub fn delete_chat_sticker_set<C>(
&self,
chat_id: C
) -> JsonRequest<DeleteChatStickerSet>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn delete_chat_sticker_set<C>(
&self,
chat_id: C
) -> JsonRequest<DeleteChatStickerSet>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see DeleteChatStickerSet
.
pub fn answer_callback_query<C>(
&self,
callback_query_id: C
) -> JsonRequest<AnswerCallbackQuery>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<String>,
pub fn answer_callback_query<C>(
&self,
callback_query_id: C
) -> JsonRequest<AnswerCallbackQuery>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see AnswerCallbackQuery
.
type SetMyCommands = JsonRequest<SetMyCommands>
pub fn set_my_commands<C>(&self, commands: C) -> JsonRequest<SetMyCommands>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: IntoIterator<Item = BotCommand>,
pub fn set_my_commands<C>(&self, commands: C) -> JsonRequest<SetMyCommands>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: IntoIterator<Item = BotCommand>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SetMyCommands
.
type GetMyCommands = JsonRequest<GetMyCommands>
pub fn get_my_commands(&self) -> JsonRequest<GetMyCommands>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
pub fn get_my_commands(&self) -> JsonRequest<GetMyCommands>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see GetMyCommands
.
pub fn delete_my_commands(&self) -> JsonRequest<DeleteMyCommands>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
pub fn delete_my_commands(&self) -> JsonRequest<DeleteMyCommands>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see DeleteMyCommands
.
pub fn answer_inline_query<I, R>(
&self,
inline_query_id: I,
results: R
) -> JsonRequest<AnswerInlineQuery>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
I: Into<String>,
R: IntoIterator<Item = InlineQueryResult>,
pub fn answer_inline_query<I, R>(
&self,
inline_query_id: I,
results: R
) -> JsonRequest<AnswerInlineQuery>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
I: Into<String>,
R: IntoIterator<Item = InlineQueryResult>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see AnswerInlineQuery
.
pub fn edit_message_text<C, T>(
&self,
chat_id: C,
message_id: i32,
text: T
) -> JsonRequest<EditMessageText>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
T: Into<String>,
pub fn edit_message_text<C, T>(
&self,
chat_id: C,
message_id: i32,
text: T
) -> JsonRequest<EditMessageText>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
T: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see EditMessageText
.
pub fn edit_message_text_inline<I, T>(
&self,
inline_message_id: I,
text: T
) -> JsonRequest<EditMessageTextInline>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
I: Into<String>,
T: Into<String>,
pub fn edit_message_text_inline<I, T>(
&self,
inline_message_id: I,
text: T
) -> JsonRequest<EditMessageTextInline>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
I: Into<String>,
T: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see EditMessageTextInline
.
For Telegram documentation see EditMessageCaption
.
For Telegram documentation see EditMessageCaptionInline
.
pub fn edit_message_media<C>(
&self,
chat_id: C,
message_id: i32,
media: InputMedia
) -> MultipartRequest<EditMessageMedia>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn edit_message_media<C>(
&self,
chat_id: C,
message_id: i32,
media: InputMedia
) -> MultipartRequest<EditMessageMedia>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see EditMessageMedia
.
pub fn edit_message_media_inline<I>(
&self,
inline_message_id: I,
media: InputMedia
) -> MultipartRequest<EditMessageMediaInline>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
I: Into<String>,
pub fn edit_message_media_inline<I>(
&self,
inline_message_id: I,
media: InputMedia
) -> MultipartRequest<EditMessageMediaInline>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
I: Into<String>,
impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see EditMessageMediaInline
.
pub fn edit_message_reply_markup<C>(
&self,
chat_id: C,
message_id: i32
) -> JsonRequest<EditMessageReplyMarkup>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn edit_message_reply_markup<C>(
&self,
chat_id: C,
message_id: i32
) -> JsonRequest<EditMessageReplyMarkup>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see EditMessageReplyMarkup
.
pub fn edit_message_reply_markup_inline<I>(
&self,
inline_message_id: I
) -> JsonRequest<EditMessageReplyMarkupInline>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
I: Into<String>,
pub fn edit_message_reply_markup_inline<I>(
&self,
inline_message_id: I
) -> JsonRequest<EditMessageReplyMarkupInline>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
I: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see EditMessageReplyMarkupInline
.
type StopPoll = JsonRequest<StopPoll>
pub fn stop_poll<C>(&self, chat_id: C, message_id: i32) -> JsonRequest<StopPoll>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn stop_poll<C>(&self, chat_id: C, message_id: i32) -> JsonRequest<StopPoll>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see StopPoll
.
type DeleteMessage = JsonRequest<DeleteMessage>
pub fn delete_message<C>(
&self,
chat_id: C,
message_id: i32
) -> JsonRequest<DeleteMessage>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn delete_message<C>(
&self,
chat_id: C,
message_id: i32
) -> JsonRequest<DeleteMessage>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see DeleteMessage
.
type SendSticker = MultipartRequest<SendSticker>
pub fn send_sticker<C>(
&self,
chat_id: C,
sticker: InputFile
) -> MultipartRequest<SendSticker>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn send_sticker<C>(
&self,
chat_id: C,
sticker: InputFile
) -> MultipartRequest<SendSticker>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendSticker
.
type GetStickerSet = JsonRequest<GetStickerSet>
pub fn get_sticker_set<N>(&self, name: N) -> JsonRequest<GetStickerSet>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
N: Into<String>,
pub fn get_sticker_set<N>(&self, name: N) -> JsonRequest<GetStickerSet>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
N: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see GetStickerSet
.
pub fn upload_sticker_file(
&self,
user_id: i64,
png_sticker: InputFile
) -> MultipartRequest<UploadStickerFile>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
pub fn upload_sticker_file(
&self,
user_id: i64,
png_sticker: InputFile
) -> MultipartRequest<UploadStickerFile>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see UploadStickerFile
.
pub fn create_new_sticker_set<N, T, E>(
&self,
user_id: i64,
name: N,
title: T,
sticker: InputSticker,
emojis: E
) -> MultipartRequest<CreateNewStickerSet>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
N: Into<String>,
T: Into<String>,
E: Into<String>,
pub fn create_new_sticker_set<N, T, E>(
&self,
user_id: i64,
name: N,
title: T,
sticker: InputSticker,
emojis: E
) -> MultipartRequest<CreateNewStickerSet>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
N: Into<String>,
T: Into<String>,
E: Into<String>,
impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see CreateNewStickerSet
.
pub fn add_sticker_to_set<N, E>(
&self,
user_id: i64,
name: N,
sticker: InputSticker,
emojis: E
) -> MultipartRequest<AddStickerToSet>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
N: Into<String>,
E: Into<String>,
pub fn add_sticker_to_set<N, E>(
&self,
user_id: i64,
name: N,
sticker: InputSticker,
emojis: E
) -> MultipartRequest<AddStickerToSet>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
N: Into<String>,
E: Into<String>,
impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see AddStickerToSet
.
pub fn set_sticker_position_in_set<S>(
&self,
sticker: S,
position: u32
) -> JsonRequest<SetStickerPositionInSet>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
S: Into<String>,
pub fn set_sticker_position_in_set<S>(
&self,
sticker: S,
position: u32
) -> JsonRequest<SetStickerPositionInSet>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
S: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SetStickerPositionInSet
.
pub fn delete_sticker_from_set<S>(
&self,
sticker: S
) -> JsonRequest<DeleteStickerFromSet>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
S: Into<String>,
pub fn delete_sticker_from_set<S>(
&self,
sticker: S
) -> JsonRequest<DeleteStickerFromSet>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
S: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see DeleteStickerFromSet
.
pub fn set_sticker_set_thumb<N>(
&self,
name: N,
user_id: i64
) -> MultipartRequest<SetStickerSetThumb>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
N: Into<String>,
pub fn set_sticker_set_thumb<N>(
&self,
name: N,
user_id: i64
) -> MultipartRequest<SetStickerSetThumb>ⓘNotable traits for MultipartRequest<P>impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
N: Into<String>,
impl<P> Request for MultipartRequest<P> where
P: 'static + Payload + MultipartPayload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SetStickerSetThumb
.
type SendInvoice = JsonRequest<SendInvoice>
pub 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
) -> JsonRequest<SendInvoice>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
Ch: Into<ChatId>,
T: Into<String>,
D: Into<String>,
Pa: Into<String>,
P: Into<String>,
C: Into<String>,
Pri: IntoIterator<Item = LabeledPrice>,
pub 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
) -> JsonRequest<SendInvoice>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
Ch: Into<ChatId>,
T: Into<String>,
D: Into<String>,
Pa: Into<String>,
P: Into<String>,
C: Into<String>,
Pri: IntoIterator<Item = LabeledPrice>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendInvoice
.
pub fn answer_shipping_query<S>(
&self,
shipping_query_id: S,
ok: bool
) -> JsonRequest<AnswerShippingQuery>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
S: Into<String>,
pub fn answer_shipping_query<S>(
&self,
shipping_query_id: S,
ok: bool
) -> JsonRequest<AnswerShippingQuery>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
S: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see AnswerShippingQuery
.
pub fn answer_pre_checkout_query<P>(
&self,
pre_checkout_query_id: P,
ok: bool
) -> JsonRequest<AnswerPreCheckoutQuery>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
P: Into<String>,
pub fn answer_pre_checkout_query<P>(
&self,
pre_checkout_query_id: P,
ok: bool
) -> JsonRequest<AnswerPreCheckoutQuery>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
P: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see AnswerPreCheckoutQuery
.
pub fn set_passport_data_errors<E>(
&self,
user_id: i64,
errors: E
) -> JsonRequest<SetPassportDataErrors>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
E: IntoIterator<Item = PassportElementError>,
pub fn set_passport_data_errors<E>(
&self,
user_id: i64,
errors: E
) -> JsonRequest<SetPassportDataErrors>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
E: IntoIterator<Item = PassportElementError>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SetPassportDataErrors
.
type SendGame = JsonRequest<SendGame>
pub fn send_game<G>(
&self,
chat_id: u32,
game_short_name: G
) -> JsonRequest<SendGame>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
G: Into<String>,
pub fn send_game<G>(
&self,
chat_id: u32,
game_short_name: G
) -> JsonRequest<SendGame>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
G: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SendGame
.
type SetGameScore = JsonRequest<SetGameScore>
pub fn set_game_score(
&self,
user_id: i64,
score: u64,
chat_id: u32,
message_id: i64
) -> JsonRequest<SetGameScore>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
pub fn set_game_score(
&self,
user_id: i64,
score: u64,
chat_id: u32,
message_id: i64
) -> JsonRequest<SetGameScore>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SetGameScore
.
pub fn set_game_score_inline<I>(
&self,
user_id: i64,
score: u64,
inline_message_id: I
) -> JsonRequest<SetGameScoreInline>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
I: Into<String>,
pub fn set_game_score_inline<I>(
&self,
user_id: i64,
score: u64,
inline_message_id: I
) -> JsonRequest<SetGameScoreInline>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
I: Into<String>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see SetGameScoreInline
.
pub fn get_game_high_scores<T>(
&self,
user_id: i64,
target: T
) -> JsonRequest<GetGameHighScores>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
T: Into<TargetMessage>,
pub fn get_game_high_scores<T>(
&self,
user_id: i64,
target: T
) -> JsonRequest<GetGameHighScores>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
T: Into<TargetMessage>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see GetGameHighScores
.
type LogOut = JsonRequest<LogOut>
pub fn log_out(&self) -> JsonRequest<LogOut>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
pub fn log_out(&self) -> JsonRequest<LogOut>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see LogOut
.
type Close = JsonRequest<Close>
pub fn close(&self) -> JsonRequest<Close>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
pub fn close(&self) -> JsonRequest<Close>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see Close
.
type CopyMessage = JsonRequest<CopyMessage>
pub fn copy_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: i32
) -> JsonRequest<CopyMessage>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
F: Into<ChatId>,
pub fn copy_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: i32
) -> JsonRequest<CopyMessage>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
F: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see CopyMessage
.
pub fn unpin_all_chat_messages<C>(
&self,
chat_id: C
) -> JsonRequest<UnpinAllChatMessages>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
pub fn unpin_all_chat_messages<C>(
&self,
chat_id: C
) -> JsonRequest<UnpinAllChatMessages>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
where
C: Into<ChatId>,
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see UnpinAllChatMessages
.
pub fn get_updates_fault_tolerant(&self) -> JsonRequest<GetUpdatesFaultTolerant>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
pub fn get_updates_fault_tolerant(&self) -> JsonRequest<GetUpdatesFaultTolerant>ⓘNotable traits for JsonRequest<P>impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned, type Err = RequestError; type Send = Send<P>; type SendRef = SendRef<P>;
For Telegram documentation see GetUpdatesFaultTolerant
.
Auto Trait Implementations
impl !RefUnwindSafe for Bot
impl !UnwindSafe for Bot
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn lift_into(self) -> U
pub fn lift_into(self) -> U
Performs the indexed conversion.
fn cache_me(self) -> CacheMe<Self>ⓘNotable traits for CacheMe<B>impl<B> Requester for CacheMe<B> where
B: Requester, 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 CopyMessage = <B as Requester>::CopyMessage; 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 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 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 AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery; type SetMyCommands = <B as Requester>::SetMyCommands; type GetMyCommands = <B as Requester>::GetMyCommands; type DeleteMyCommands = <B as Requester>::DeleteMyCommands; type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery; 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 SendSticker = <B as Requester>::SendSticker; type GetStickerSet = <B as Requester>::GetStickerSet; 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 SetStickerSetThumb = <B as Requester>::SetStickerSetThumb; type SendInvoice = <B as Requester>::SendInvoice; 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 GetUpdatesFaultTolerant = <B as Requester>::GetUpdatesFaultTolerant;
fn cache_me(self) -> CacheMe<Self>ⓘNotable traits for CacheMe<B>impl<B> Requester for CacheMe<B> where
B: Requester, 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 CopyMessage = <B as Requester>::CopyMessage; 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 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 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 AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery; type SetMyCommands = <B as Requester>::SetMyCommands; type GetMyCommands = <B as Requester>::GetMyCommands; type DeleteMyCommands = <B as Requester>::DeleteMyCommands; type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery; 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 SendSticker = <B as Requester>::SendSticker; type GetStickerSet = <B as Requester>::GetStickerSet; 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 SetStickerSetThumb = <B as Requester>::SetStickerSetThumb; type SendInvoice = <B as Requester>::SendInvoice; 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 GetUpdatesFaultTolerant = <B as Requester>::GetUpdatesFaultTolerant;
impl<B> Requester for CacheMe<B> where
B: Requester, 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 CopyMessage = <B as Requester>::CopyMessage; 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 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 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 AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery; type SetMyCommands = <B as Requester>::SetMyCommands; type GetMyCommands = <B as Requester>::GetMyCommands; type DeleteMyCommands = <B as Requester>::DeleteMyCommands; type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery; 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 SendSticker = <B as Requester>::SendSticker; type GetStickerSet = <B as Requester>::GetStickerSet; 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 SetStickerSetThumb = <B as Requester>::SetStickerSetThumb; type SendInvoice = <B as Requester>::SendInvoice; 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 GetUpdatesFaultTolerant = <B as Requester>::GetUpdatesFaultTolerant;
cache_me
only.fn auto_send(self) -> AutoSend<Self>ⓘNotable traits for AutoSend<B>impl<B> Requester for AutoSend<B> where
B: Requester, type Err = <B as Requester>::Err; type GetMe = AutoRequest<<B as Requester>::GetMe>; type LogOut = AutoRequest<<B as Requester>::LogOut>; type Close = AutoRequest<<B as Requester>::Close>; type GetUpdates = AutoRequest<<B as Requester>::GetUpdates>; type SetWebhook = AutoRequest<<B as Requester>::SetWebhook>; type DeleteWebhook = AutoRequest<<B as Requester>::DeleteWebhook>; type GetWebhookInfo = AutoRequest<<B as Requester>::GetWebhookInfo>; type ForwardMessage = AutoRequest<<B as Requester>::ForwardMessage>; type CopyMessage = AutoRequest<<B as Requester>::CopyMessage>; type SendMessage = AutoRequest<<B as Requester>::SendMessage>; type SendPhoto = AutoRequest<<B as Requester>::SendPhoto>; type SendAudio = AutoRequest<<B as Requester>::SendAudio>; type SendDocument = AutoRequest<<B as Requester>::SendDocument>; type SendVideo = AutoRequest<<B as Requester>::SendVideo>; type SendAnimation = AutoRequest<<B as Requester>::SendAnimation>; type SendVoice = AutoRequest<<B as Requester>::SendVoice>; type SendVideoNote = AutoRequest<<B as Requester>::SendVideoNote>; type SendMediaGroup = AutoRequest<<B as Requester>::SendMediaGroup>; type SendLocation = AutoRequest<<B as Requester>::SendLocation>; type EditMessageLiveLocation = AutoRequest<<B as Requester>::EditMessageLiveLocation>; type EditMessageLiveLocationInline = AutoRequest<<B as Requester>::EditMessageLiveLocationInline>; type StopMessageLiveLocation = AutoRequest<<B as Requester>::StopMessageLiveLocation>; type StopMessageLiveLocationInline = AutoRequest<<B as Requester>::StopMessageLiveLocationInline>; type SendVenue = AutoRequest<<B as Requester>::SendVenue>; type SendContact = AutoRequest<<B as Requester>::SendContact>; type SendPoll = AutoRequest<<B as Requester>::SendPoll>; type SendDice = AutoRequest<<B as Requester>::SendDice>; type SendChatAction = AutoRequest<<B as Requester>::SendChatAction>; type GetUserProfilePhotos = AutoRequest<<B as Requester>::GetUserProfilePhotos>; type GetFile = AutoRequest<<B as Requester>::GetFile>; type KickChatMember = AutoRequest<<B as Requester>::KickChatMember>; type BanChatMember = AutoRequest<<B as Requester>::BanChatMember>; type UnbanChatMember = AutoRequest<<B as Requester>::UnbanChatMember>; type RestrictChatMember = AutoRequest<<B as Requester>::RestrictChatMember>; type PromoteChatMember = AutoRequest<<B as Requester>::PromoteChatMember>; type SetChatAdministratorCustomTitle = AutoRequest<<B as Requester>::SetChatAdministratorCustomTitle>; type SetChatPermissions = AutoRequest<<B as Requester>::SetChatPermissions>; type ExportChatInviteLink = AutoRequest<<B as Requester>::ExportChatInviteLink>; type CreateChatInviteLink = AutoRequest<<B as Requester>::CreateChatInviteLink>; type EditChatInviteLink = AutoRequest<<B as Requester>::EditChatInviteLink>; type RevokeChatInviteLink = AutoRequest<<B as Requester>::RevokeChatInviteLink>; type SetChatPhoto = AutoRequest<<B as Requester>::SetChatPhoto>; type DeleteChatPhoto = AutoRequest<<B as Requester>::DeleteChatPhoto>; type SetChatTitle = AutoRequest<<B as Requester>::SetChatTitle>; type SetChatDescription = AutoRequest<<B as Requester>::SetChatDescription>; type PinChatMessage = AutoRequest<<B as Requester>::PinChatMessage>; type UnpinChatMessage = AutoRequest<<B as Requester>::UnpinChatMessage>; type UnpinAllChatMessages = AutoRequest<<B as Requester>::UnpinAllChatMessages>; type LeaveChat = AutoRequest<<B as Requester>::LeaveChat>; type GetChat = AutoRequest<<B as Requester>::GetChat>; type GetChatAdministrators = AutoRequest<<B as Requester>::GetChatAdministrators>; type GetChatMembersCount = AutoRequest<<B as Requester>::GetChatMembersCount>; type GetChatMemberCount = AutoRequest<<B as Requester>::GetChatMemberCount>; type GetChatMember = AutoRequest<<B as Requester>::GetChatMember>; type SetChatStickerSet = AutoRequest<<B as Requester>::SetChatStickerSet>; type DeleteChatStickerSet = AutoRequest<<B as Requester>::DeleteChatStickerSet>; type AnswerCallbackQuery = AutoRequest<<B as Requester>::AnswerCallbackQuery>; type SetMyCommands = AutoRequest<<B as Requester>::SetMyCommands>; type GetMyCommands = AutoRequest<<B as Requester>::GetMyCommands>; type DeleteMyCommands = AutoRequest<<B as Requester>::DeleteMyCommands>; type AnswerInlineQuery = AutoRequest<<B as Requester>::AnswerInlineQuery>; type EditMessageText = AutoRequest<<B as Requester>::EditMessageText>; type EditMessageTextInline = AutoRequest<<B as Requester>::EditMessageTextInline>; type EditMessageCaption = AutoRequest<<B as Requester>::EditMessageCaption>; type EditMessageCaptionInline = AutoRequest<<B as Requester>::EditMessageCaptionInline>; type EditMessageMedia = AutoRequest<<B as Requester>::EditMessageMedia>; type EditMessageMediaInline = AutoRequest<<B as Requester>::EditMessageMediaInline>; type EditMessageReplyMarkup = AutoRequest<<B as Requester>::EditMessageReplyMarkup>; type EditMessageReplyMarkupInline = AutoRequest<<B as Requester>::EditMessageReplyMarkupInline>; type StopPoll = AutoRequest<<B as Requester>::StopPoll>; type DeleteMessage = AutoRequest<<B as Requester>::DeleteMessage>; type SendSticker = AutoRequest<<B as Requester>::SendSticker>; type GetStickerSet = AutoRequest<<B as Requester>::GetStickerSet>; type UploadStickerFile = AutoRequest<<B as Requester>::UploadStickerFile>; type CreateNewStickerSet = AutoRequest<<B as Requester>::CreateNewStickerSet>; type AddStickerToSet = AutoRequest<<B as Requester>::AddStickerToSet>; type SetStickerPositionInSet = AutoRequest<<B as Requester>::SetStickerPositionInSet>; type DeleteStickerFromSet = AutoRequest<<B as Requester>::DeleteStickerFromSet>; type SetStickerSetThumb = AutoRequest<<B as Requester>::SetStickerSetThumb>; type SendInvoice = AutoRequest<<B as Requester>::SendInvoice>; type AnswerShippingQuery = AutoRequest<<B as Requester>::AnswerShippingQuery>; type AnswerPreCheckoutQuery = AutoRequest<<B as Requester>::AnswerPreCheckoutQuery>; type SetPassportDataErrors = AutoRequest<<B as Requester>::SetPassportDataErrors>; type SendGame = AutoRequest<<B as Requester>::SendGame>; type SetGameScore = AutoRequest<<B as Requester>::SetGameScore>; type SetGameScoreInline = AutoRequest<<B as Requester>::SetGameScoreInline>; type GetGameHighScores = AutoRequest<<B as Requester>::GetGameHighScores>; type GetUpdatesFaultTolerant = AutoRequest<<B as Requester>::GetUpdatesFaultTolerant>;
fn auto_send(self) -> AutoSend<Self>ⓘNotable traits for AutoSend<B>impl<B> Requester for AutoSend<B> where
B: Requester, type Err = <B as Requester>::Err; type GetMe = AutoRequest<<B as Requester>::GetMe>; type LogOut = AutoRequest<<B as Requester>::LogOut>; type Close = AutoRequest<<B as Requester>::Close>; type GetUpdates = AutoRequest<<B as Requester>::GetUpdates>; type SetWebhook = AutoRequest<<B as Requester>::SetWebhook>; type DeleteWebhook = AutoRequest<<B as Requester>::DeleteWebhook>; type GetWebhookInfo = AutoRequest<<B as Requester>::GetWebhookInfo>; type ForwardMessage = AutoRequest<<B as Requester>::ForwardMessage>; type CopyMessage = AutoRequest<<B as Requester>::CopyMessage>; type SendMessage = AutoRequest<<B as Requester>::SendMessage>; type SendPhoto = AutoRequest<<B as Requester>::SendPhoto>; type SendAudio = AutoRequest<<B as Requester>::SendAudio>; type SendDocument = AutoRequest<<B as Requester>::SendDocument>; type SendVideo = AutoRequest<<B as Requester>::SendVideo>; type SendAnimation = AutoRequest<<B as Requester>::SendAnimation>; type SendVoice = AutoRequest<<B as Requester>::SendVoice>; type SendVideoNote = AutoRequest<<B as Requester>::SendVideoNote>; type SendMediaGroup = AutoRequest<<B as Requester>::SendMediaGroup>; type SendLocation = AutoRequest<<B as Requester>::SendLocation>; type EditMessageLiveLocation = AutoRequest<<B as Requester>::EditMessageLiveLocation>; type EditMessageLiveLocationInline = AutoRequest<<B as Requester>::EditMessageLiveLocationInline>; type StopMessageLiveLocation = AutoRequest<<B as Requester>::StopMessageLiveLocation>; type StopMessageLiveLocationInline = AutoRequest<<B as Requester>::StopMessageLiveLocationInline>; type SendVenue = AutoRequest<<B as Requester>::SendVenue>; type SendContact = AutoRequest<<B as Requester>::SendContact>; type SendPoll = AutoRequest<<B as Requester>::SendPoll>; type SendDice = AutoRequest<<B as Requester>::SendDice>; type SendChatAction = AutoRequest<<B as Requester>::SendChatAction>; type GetUserProfilePhotos = AutoRequest<<B as Requester>::GetUserProfilePhotos>; type GetFile = AutoRequest<<B as Requester>::GetFile>; type KickChatMember = AutoRequest<<B as Requester>::KickChatMember>; type BanChatMember = AutoRequest<<B as Requester>::BanChatMember>; type UnbanChatMember = AutoRequest<<B as Requester>::UnbanChatMember>; type RestrictChatMember = AutoRequest<<B as Requester>::RestrictChatMember>; type PromoteChatMember = AutoRequest<<B as Requester>::PromoteChatMember>; type SetChatAdministratorCustomTitle = AutoRequest<<B as Requester>::SetChatAdministratorCustomTitle>; type SetChatPermissions = AutoRequest<<B as Requester>::SetChatPermissions>; type ExportChatInviteLink = AutoRequest<<B as Requester>::ExportChatInviteLink>; type CreateChatInviteLink = AutoRequest<<B as Requester>::CreateChatInviteLink>; type EditChatInviteLink = AutoRequest<<B as Requester>::EditChatInviteLink>; type RevokeChatInviteLink = AutoRequest<<B as Requester>::RevokeChatInviteLink>; type SetChatPhoto = AutoRequest<<B as Requester>::SetChatPhoto>; type DeleteChatPhoto = AutoRequest<<B as Requester>::DeleteChatPhoto>; type SetChatTitle = AutoRequest<<B as Requester>::SetChatTitle>; type SetChatDescription = AutoRequest<<B as Requester>::SetChatDescription>; type PinChatMessage = AutoRequest<<B as Requester>::PinChatMessage>; type UnpinChatMessage = AutoRequest<<B as Requester>::UnpinChatMessage>; type UnpinAllChatMessages = AutoRequest<<B as Requester>::UnpinAllChatMessages>; type LeaveChat = AutoRequest<<B as Requester>::LeaveChat>; type GetChat = AutoRequest<<B as Requester>::GetChat>; type GetChatAdministrators = AutoRequest<<B as Requester>::GetChatAdministrators>; type GetChatMembersCount = AutoRequest<<B as Requester>::GetChatMembersCount>; type GetChatMemberCount = AutoRequest<<B as Requester>::GetChatMemberCount>; type GetChatMember = AutoRequest<<B as Requester>::GetChatMember>; type SetChatStickerSet = AutoRequest<<B as Requester>::SetChatStickerSet>; type DeleteChatStickerSet = AutoRequest<<B as Requester>::DeleteChatStickerSet>; type AnswerCallbackQuery = AutoRequest<<B as Requester>::AnswerCallbackQuery>; type SetMyCommands = AutoRequest<<B as Requester>::SetMyCommands>; type GetMyCommands = AutoRequest<<B as Requester>::GetMyCommands>; type DeleteMyCommands = AutoRequest<<B as Requester>::DeleteMyCommands>; type AnswerInlineQuery = AutoRequest<<B as Requester>::AnswerInlineQuery>; type EditMessageText = AutoRequest<<B as Requester>::EditMessageText>; type EditMessageTextInline = AutoRequest<<B as Requester>::EditMessageTextInline>; type EditMessageCaption = AutoRequest<<B as Requester>::EditMessageCaption>; type EditMessageCaptionInline = AutoRequest<<B as Requester>::EditMessageCaptionInline>; type EditMessageMedia = AutoRequest<<B as Requester>::EditMessageMedia>; type EditMessageMediaInline = AutoRequest<<B as Requester>::EditMessageMediaInline>; type EditMessageReplyMarkup = AutoRequest<<B as Requester>::EditMessageReplyMarkup>; type EditMessageReplyMarkupInline = AutoRequest<<B as Requester>::EditMessageReplyMarkupInline>; type StopPoll = AutoRequest<<B as Requester>::StopPoll>; type DeleteMessage = AutoRequest<<B as Requester>::DeleteMessage>; type SendSticker = AutoRequest<<B as Requester>::SendSticker>; type GetStickerSet = AutoRequest<<B as Requester>::GetStickerSet>; type UploadStickerFile = AutoRequest<<B as Requester>::UploadStickerFile>; type CreateNewStickerSet = AutoRequest<<B as Requester>::CreateNewStickerSet>; type AddStickerToSet = AutoRequest<<B as Requester>::AddStickerToSet>; type SetStickerPositionInSet = AutoRequest<<B as Requester>::SetStickerPositionInSet>; type DeleteStickerFromSet = AutoRequest<<B as Requester>::DeleteStickerFromSet>; type SetStickerSetThumb = AutoRequest<<B as Requester>::SetStickerSetThumb>; type SendInvoice = AutoRequest<<B as Requester>::SendInvoice>; type AnswerShippingQuery = AutoRequest<<B as Requester>::AnswerShippingQuery>; type AnswerPreCheckoutQuery = AutoRequest<<B as Requester>::AnswerPreCheckoutQuery>; type SetPassportDataErrors = AutoRequest<<B as Requester>::SetPassportDataErrors>; type SendGame = AutoRequest<<B as Requester>::SendGame>; type SetGameScore = AutoRequest<<B as Requester>::SetGameScore>; type SetGameScoreInline = AutoRequest<<B as Requester>::SetGameScoreInline>; type GetGameHighScores = AutoRequest<<B as Requester>::GetGameHighScores>; type GetUpdatesFaultTolerant = AutoRequest<<B as Requester>::GetUpdatesFaultTolerant>;
impl<B> Requester for AutoSend<B> where
B: Requester, type Err = <B as Requester>::Err; type GetMe = AutoRequest<<B as Requester>::GetMe>; type LogOut = AutoRequest<<B as Requester>::LogOut>; type Close = AutoRequest<<B as Requester>::Close>; type GetUpdates = AutoRequest<<B as Requester>::GetUpdates>; type SetWebhook = AutoRequest<<B as Requester>::SetWebhook>; type DeleteWebhook = AutoRequest<<B as Requester>::DeleteWebhook>; type GetWebhookInfo = AutoRequest<<B as Requester>::GetWebhookInfo>; type ForwardMessage = AutoRequest<<B as Requester>::ForwardMessage>; type CopyMessage = AutoRequest<<B as Requester>::CopyMessage>; type SendMessage = AutoRequest<<B as Requester>::SendMessage>; type SendPhoto = AutoRequest<<B as Requester>::SendPhoto>; type SendAudio = AutoRequest<<B as Requester>::SendAudio>; type SendDocument = AutoRequest<<B as Requester>::SendDocument>; type SendVideo = AutoRequest<<B as Requester>::SendVideo>; type SendAnimation = AutoRequest<<B as Requester>::SendAnimation>; type SendVoice = AutoRequest<<B as Requester>::SendVoice>; type SendVideoNote = AutoRequest<<B as Requester>::SendVideoNote>; type SendMediaGroup = AutoRequest<<B as Requester>::SendMediaGroup>; type SendLocation = AutoRequest<<B as Requester>::SendLocation>; type EditMessageLiveLocation = AutoRequest<<B as Requester>::EditMessageLiveLocation>; type EditMessageLiveLocationInline = AutoRequest<<B as Requester>::EditMessageLiveLocationInline>; type StopMessageLiveLocation = AutoRequest<<B as Requester>::StopMessageLiveLocation>; type StopMessageLiveLocationInline = AutoRequest<<B as Requester>::StopMessageLiveLocationInline>; type SendVenue = AutoRequest<<B as Requester>::SendVenue>; type SendContact = AutoRequest<<B as Requester>::SendContact>; type SendPoll = AutoRequest<<B as Requester>::SendPoll>; type SendDice = AutoRequest<<B as Requester>::SendDice>; type SendChatAction = AutoRequest<<B as Requester>::SendChatAction>; type GetUserProfilePhotos = AutoRequest<<B as Requester>::GetUserProfilePhotos>; type GetFile = AutoRequest<<B as Requester>::GetFile>; type KickChatMember = AutoRequest<<B as Requester>::KickChatMember>; type BanChatMember = AutoRequest<<B as Requester>::BanChatMember>; type UnbanChatMember = AutoRequest<<B as Requester>::UnbanChatMember>; type RestrictChatMember = AutoRequest<<B as Requester>::RestrictChatMember>; type PromoteChatMember = AutoRequest<<B as Requester>::PromoteChatMember>; type SetChatAdministratorCustomTitle = AutoRequest<<B as Requester>::SetChatAdministratorCustomTitle>; type SetChatPermissions = AutoRequest<<B as Requester>::SetChatPermissions>; type ExportChatInviteLink = AutoRequest<<B as Requester>::ExportChatInviteLink>; type CreateChatInviteLink = AutoRequest<<B as Requester>::CreateChatInviteLink>; type EditChatInviteLink = AutoRequest<<B as Requester>::EditChatInviteLink>; type RevokeChatInviteLink = AutoRequest<<B as Requester>::RevokeChatInviteLink>; type SetChatPhoto = AutoRequest<<B as Requester>::SetChatPhoto>; type DeleteChatPhoto = AutoRequest<<B as Requester>::DeleteChatPhoto>; type SetChatTitle = AutoRequest<<B as Requester>::SetChatTitle>; type SetChatDescription = AutoRequest<<B as Requester>::SetChatDescription>; type PinChatMessage = AutoRequest<<B as Requester>::PinChatMessage>; type UnpinChatMessage = AutoRequest<<B as Requester>::UnpinChatMessage>; type UnpinAllChatMessages = AutoRequest<<B as Requester>::UnpinAllChatMessages>; type LeaveChat = AutoRequest<<B as Requester>::LeaveChat>; type GetChat = AutoRequest<<B as Requester>::GetChat>; type GetChatAdministrators = AutoRequest<<B as Requester>::GetChatAdministrators>; type GetChatMembersCount = AutoRequest<<B as Requester>::GetChatMembersCount>; type GetChatMemberCount = AutoRequest<<B as Requester>::GetChatMemberCount>; type GetChatMember = AutoRequest<<B as Requester>::GetChatMember>; type SetChatStickerSet = AutoRequest<<B as Requester>::SetChatStickerSet>; type DeleteChatStickerSet = AutoRequest<<B as Requester>::DeleteChatStickerSet>; type AnswerCallbackQuery = AutoRequest<<B as Requester>::AnswerCallbackQuery>; type SetMyCommands = AutoRequest<<B as Requester>::SetMyCommands>; type GetMyCommands = AutoRequest<<B as Requester>::GetMyCommands>; type DeleteMyCommands = AutoRequest<<B as Requester>::DeleteMyCommands>; type AnswerInlineQuery = AutoRequest<<B as Requester>::AnswerInlineQuery>; type EditMessageText = AutoRequest<<B as Requester>::EditMessageText>; type EditMessageTextInline = AutoRequest<<B as Requester>::EditMessageTextInline>; type EditMessageCaption = AutoRequest<<B as Requester>::EditMessageCaption>; type EditMessageCaptionInline = AutoRequest<<B as Requester>::EditMessageCaptionInline>; type EditMessageMedia = AutoRequest<<B as Requester>::EditMessageMedia>; type EditMessageMediaInline = AutoRequest<<B as Requester>::EditMessageMediaInline>; type EditMessageReplyMarkup = AutoRequest<<B as Requester>::EditMessageReplyMarkup>; type EditMessageReplyMarkupInline = AutoRequest<<B as Requester>::EditMessageReplyMarkupInline>; type StopPoll = AutoRequest<<B as Requester>::StopPoll>; type DeleteMessage = AutoRequest<<B as Requester>::DeleteMessage>; type SendSticker = AutoRequest<<B as Requester>::SendSticker>; type GetStickerSet = AutoRequest<<B as Requester>::GetStickerSet>; type UploadStickerFile = AutoRequest<<B as Requester>::UploadStickerFile>; type CreateNewStickerSet = AutoRequest<<B as Requester>::CreateNewStickerSet>; type AddStickerToSet = AutoRequest<<B as Requester>::AddStickerToSet>; type SetStickerPositionInSet = AutoRequest<<B as Requester>::SetStickerPositionInSet>; type DeleteStickerFromSet = AutoRequest<<B as Requester>::DeleteStickerFromSet>; type SetStickerSetThumb = AutoRequest<<B as Requester>::SetStickerSetThumb>; type SendInvoice = AutoRequest<<B as Requester>::SendInvoice>; type AnswerShippingQuery = AutoRequest<<B as Requester>::AnswerShippingQuery>; type AnswerPreCheckoutQuery = AutoRequest<<B as Requester>::AnswerPreCheckoutQuery>; type SetPassportDataErrors = AutoRequest<<B as Requester>::SetPassportDataErrors>; type SendGame = AutoRequest<<B as Requester>::SendGame>; type SetGameScore = AutoRequest<<B as Requester>::SetGameScore>; type SetGameScoreInline = AutoRequest<<B as Requester>::SetGameScoreInline>; type GetGameHighScores = AutoRequest<<B as Requester>::GetGameHighScores>; type GetUpdatesFaultTolerant = AutoRequest<<B as Requester>::GetUpdatesFaultTolerant>;
auto_send
only.Send requests automatically, see AutoSend
for more.
fn erase<'a>(self) -> ErasedRequester<'a, Self::Err>ⓘNotable traits for ErasedRequester<'a, Err>impl<'a, Err> Requester for ErasedRequester<'a, Err> where
Err: Error + Send, 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 CopyMessage = ErasedRequest<'a, CopyMessage, 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 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 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 AnswerCallbackQuery = ErasedRequest<'a, AnswerCallbackQuery, Err>; type SetMyCommands = ErasedRequest<'a, SetMyCommands, Err>; type GetMyCommands = ErasedRequest<'a, GetMyCommands, Err>; type DeleteMyCommands = ErasedRequest<'a, DeleteMyCommands, Err>; type AnswerInlineQuery = ErasedRequest<'a, AnswerInlineQuery, 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 SendSticker = ErasedRequest<'a, SendSticker, Err>; type GetStickerSet = ErasedRequest<'a, GetStickerSet, 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 SetStickerSetThumb = ErasedRequest<'a, SetStickerSetThumb, Err>; type SendInvoice = ErasedRequest<'a, SendInvoice, 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 GetUpdatesFaultTolerant = ErasedRequest<'a, GetUpdatesFaultTolerant, Err>;
where
Self: 'a,
fn erase<'a>(self) -> ErasedRequester<'a, Self::Err>ⓘNotable traits for ErasedRequester<'a, Err>impl<'a, Err> Requester for ErasedRequester<'a, Err> where
Err: Error + Send, 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 CopyMessage = ErasedRequest<'a, CopyMessage, 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 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 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 AnswerCallbackQuery = ErasedRequest<'a, AnswerCallbackQuery, Err>; type SetMyCommands = ErasedRequest<'a, SetMyCommands, Err>; type GetMyCommands = ErasedRequest<'a, GetMyCommands, Err>; type DeleteMyCommands = ErasedRequest<'a, DeleteMyCommands, Err>; type AnswerInlineQuery = ErasedRequest<'a, AnswerInlineQuery, 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 SendSticker = ErasedRequest<'a, SendSticker, Err>; type GetStickerSet = ErasedRequest<'a, GetStickerSet, 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 SetStickerSetThumb = ErasedRequest<'a, SetStickerSetThumb, Err>; type SendInvoice = ErasedRequest<'a, SendInvoice, 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 GetUpdatesFaultTolerant = ErasedRequest<'a, GetUpdatesFaultTolerant, Err>;
where
Self: 'a,
impl<'a, Err> Requester for ErasedRequester<'a, Err> where
Err: Error + Send, 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 CopyMessage = ErasedRequest<'a, CopyMessage, 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 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 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 AnswerCallbackQuery = ErasedRequest<'a, AnswerCallbackQuery, Err>; type SetMyCommands = ErasedRequest<'a, SetMyCommands, Err>; type GetMyCommands = ErasedRequest<'a, GetMyCommands, Err>; type DeleteMyCommands = ErasedRequest<'a, DeleteMyCommands, Err>; type AnswerInlineQuery = ErasedRequest<'a, AnswerInlineQuery, 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 SendSticker = ErasedRequest<'a, SendSticker, Err>; type GetStickerSet = ErasedRequest<'a, GetStickerSet, 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 SetStickerSetThumb = ErasedRequest<'a, SetStickerSetThumb, Err>; type SendInvoice = ErasedRequest<'a, SendInvoice, 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 GetUpdatesFaultTolerant = ErasedRequest<'a, GetUpdatesFaultTolerant, Err>;
erased
only.Erase requester type.
fn trace(self, settings: Settings) -> Trace<Self>ⓘNotable traits for Trace<B>impl<B> Requester for Trace<B> where
B: Requester, 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 CopyMessage = TraceRequest<<B as Requester>::CopyMessage>; 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 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 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 AnswerCallbackQuery = TraceRequest<<B as Requester>::AnswerCallbackQuery>; type SetMyCommands = TraceRequest<<B as Requester>::SetMyCommands>; type GetMyCommands = TraceRequest<<B as Requester>::GetMyCommands>; type DeleteMyCommands = TraceRequest<<B as Requester>::DeleteMyCommands>; type AnswerInlineQuery = TraceRequest<<B as Requester>::AnswerInlineQuery>; 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 SendSticker = TraceRequest<<B as Requester>::SendSticker>; type GetStickerSet = TraceRequest<<B as Requester>::GetStickerSet>; 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 SetStickerSetThumb = TraceRequest<<B as Requester>::SetStickerSetThumb>; type SendInvoice = TraceRequest<<B as Requester>::SendInvoice>; 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 GetUpdatesFaultTolerant = TraceRequest<<B as Requester>::GetUpdatesFaultTolerant>;
fn trace(self, settings: Settings) -> Trace<Self>ⓘNotable traits for Trace<B>impl<B> Requester for Trace<B> where
B: Requester, 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 CopyMessage = TraceRequest<<B as Requester>::CopyMessage>; 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 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 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 AnswerCallbackQuery = TraceRequest<<B as Requester>::AnswerCallbackQuery>; type SetMyCommands = TraceRequest<<B as Requester>::SetMyCommands>; type GetMyCommands = TraceRequest<<B as Requester>::GetMyCommands>; type DeleteMyCommands = TraceRequest<<B as Requester>::DeleteMyCommands>; type AnswerInlineQuery = TraceRequest<<B as Requester>::AnswerInlineQuery>; 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 SendSticker = TraceRequest<<B as Requester>::SendSticker>; type GetStickerSet = TraceRequest<<B as Requester>::GetStickerSet>; 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 SetStickerSetThumb = TraceRequest<<B as Requester>::SetStickerSetThumb>; type SendInvoice = TraceRequest<<B as Requester>::SendInvoice>; 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 GetUpdatesFaultTolerant = TraceRequest<<B as Requester>::GetUpdatesFaultTolerant>;
impl<B> Requester for Trace<B> where
B: Requester, 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 CopyMessage = TraceRequest<<B as Requester>::CopyMessage>; 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 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 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 AnswerCallbackQuery = TraceRequest<<B as Requester>::AnswerCallbackQuery>; type SetMyCommands = TraceRequest<<B as Requester>::SetMyCommands>; type GetMyCommands = TraceRequest<<B as Requester>::GetMyCommands>; type DeleteMyCommands = TraceRequest<<B as Requester>::DeleteMyCommands>; type AnswerInlineQuery = TraceRequest<<B as Requester>::AnswerInlineQuery>; 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 SendSticker = TraceRequest<<B as Requester>::SendSticker>; type GetStickerSet = TraceRequest<<B as Requester>::GetStickerSet>; 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 SetStickerSetThumb = TraceRequest<<B as Requester>::SetStickerSetThumb>; type SendInvoice = TraceRequest<<B as Requester>::SendInvoice>; 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 GetUpdatesFaultTolerant = TraceRequest<<B as Requester>::GetUpdatesFaultTolerant>;
trace_adaptor
only.Trace requests, see Trace
for more.
fn throttle(self, limits: Limits) -> Throttle<Self>ⓘNotable traits for Throttle<B>impl<B> Requester for Throttle<B> where
B: Requester,
<B as Requester>::SendMessage: Send,
<B as Requester>::ForwardMessage: Send,
<B as Requester>::CopyMessage: Send,
<B as Requester>::SendPhoto: Send,
<B as Requester>::SendAudio: Send,
<B as Requester>::SendDocument: Send,
<B as Requester>::SendVideo: Send,
<B as Requester>::SendAnimation: Send,
<B as Requester>::SendVoice: Send,
<B as Requester>::SendVideoNote: Send,
<B as Requester>::SendMediaGroup: Send,
<B as Requester>::SendLocation: Send,
<B as Requester>::SendVenue: Send,
<B as Requester>::SendContact: Send,
<B as Requester>::SendPoll: Send,
<B as Requester>::SendDice: Send,
<B as Requester>::SendSticker: Send,
<B as Requester>::SendInvoice: Send, type Err = <B as Requester>::Err; type SendMessage = ThrottlingRequest<<B as Requester>::SendMessage>; type ForwardMessage = ThrottlingRequest<<B as Requester>::ForwardMessage>; type CopyMessage = ThrottlingRequest<<B as Requester>::CopyMessage>; type SendPhoto = ThrottlingRequest<<B as Requester>::SendPhoto>; type SendAudio = ThrottlingRequest<<B as Requester>::SendAudio>; type SendDocument = ThrottlingRequest<<B as Requester>::SendDocument>; type SendVideo = ThrottlingRequest<<B as Requester>::SendVideo>; type SendAnimation = ThrottlingRequest<<B as Requester>::SendAnimation>; type SendVoice = ThrottlingRequest<<B as Requester>::SendVoice>; type SendVideoNote = ThrottlingRequest<<B as Requester>::SendVideoNote>; type SendMediaGroup = ThrottlingRequest<<B as Requester>::SendMediaGroup>; type SendLocation = ThrottlingRequest<<B as Requester>::SendLocation>; type SendVenue = ThrottlingRequest<<B as Requester>::SendVenue>; type SendContact = ThrottlingRequest<<B as Requester>::SendContact>; type SendPoll = ThrottlingRequest<<B as Requester>::SendPoll>; type SendDice = ThrottlingRequest<<B as Requester>::SendDice>; type SendSticker = ThrottlingRequest<<B as Requester>::SendSticker>; type SendInvoice = ThrottlingRequest<<B as Requester>::SendInvoice>; 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 EditMessageLiveLocation = <B as Requester>::EditMessageLiveLocation; type EditMessageLiveLocationInline = <B as Requester>::EditMessageLiveLocationInline; type StopMessageLiveLocation = <B as Requester>::StopMessageLiveLocation; type StopMessageLiveLocationInline = <B as Requester>::StopMessageLiveLocationInline; type SendChatAction = <B as Requester>::SendChatAction; 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 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 AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery; type SetMyCommands = <B as Requester>::SetMyCommands; type GetMyCommands = <B as Requester>::GetMyCommands; type DeleteMyCommands = <B as Requester>::DeleteMyCommands; type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery; 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 GetStickerSet = <B as Requester>::GetStickerSet; 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 SetStickerSetThumb = <B as Requester>::SetStickerSetThumb; 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 GetUpdatesFaultTolerant = <B as Requester>::GetUpdatesFaultTolerant;
fn throttle(self, limits: Limits) -> Throttle<Self>ⓘNotable traits for Throttle<B>impl<B> Requester for Throttle<B> where
B: Requester,
<B as Requester>::SendMessage: Send,
<B as Requester>::ForwardMessage: Send,
<B as Requester>::CopyMessage: Send,
<B as Requester>::SendPhoto: Send,
<B as Requester>::SendAudio: Send,
<B as Requester>::SendDocument: Send,
<B as Requester>::SendVideo: Send,
<B as Requester>::SendAnimation: Send,
<B as Requester>::SendVoice: Send,
<B as Requester>::SendVideoNote: Send,
<B as Requester>::SendMediaGroup: Send,
<B as Requester>::SendLocation: Send,
<B as Requester>::SendVenue: Send,
<B as Requester>::SendContact: Send,
<B as Requester>::SendPoll: Send,
<B as Requester>::SendDice: Send,
<B as Requester>::SendSticker: Send,
<B as Requester>::SendInvoice: Send, type Err = <B as Requester>::Err; type SendMessage = ThrottlingRequest<<B as Requester>::SendMessage>; type ForwardMessage = ThrottlingRequest<<B as Requester>::ForwardMessage>; type CopyMessage = ThrottlingRequest<<B as Requester>::CopyMessage>; type SendPhoto = ThrottlingRequest<<B as Requester>::SendPhoto>; type SendAudio = ThrottlingRequest<<B as Requester>::SendAudio>; type SendDocument = ThrottlingRequest<<B as Requester>::SendDocument>; type SendVideo = ThrottlingRequest<<B as Requester>::SendVideo>; type SendAnimation = ThrottlingRequest<<B as Requester>::SendAnimation>; type SendVoice = ThrottlingRequest<<B as Requester>::SendVoice>; type SendVideoNote = ThrottlingRequest<<B as Requester>::SendVideoNote>; type SendMediaGroup = ThrottlingRequest<<B as Requester>::SendMediaGroup>; type SendLocation = ThrottlingRequest<<B as Requester>::SendLocation>; type SendVenue = ThrottlingRequest<<B as Requester>::SendVenue>; type SendContact = ThrottlingRequest<<B as Requester>::SendContact>; type SendPoll = ThrottlingRequest<<B as Requester>::SendPoll>; type SendDice = ThrottlingRequest<<B as Requester>::SendDice>; type SendSticker = ThrottlingRequest<<B as Requester>::SendSticker>; type SendInvoice = ThrottlingRequest<<B as Requester>::SendInvoice>; 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 EditMessageLiveLocation = <B as Requester>::EditMessageLiveLocation; type EditMessageLiveLocationInline = <B as Requester>::EditMessageLiveLocationInline; type StopMessageLiveLocation = <B as Requester>::StopMessageLiveLocation; type StopMessageLiveLocationInline = <B as Requester>::StopMessageLiveLocationInline; type SendChatAction = <B as Requester>::SendChatAction; 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 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 AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery; type SetMyCommands = <B as Requester>::SetMyCommands; type GetMyCommands = <B as Requester>::GetMyCommands; type DeleteMyCommands = <B as Requester>::DeleteMyCommands; type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery; 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 GetStickerSet = <B as Requester>::GetStickerSet; 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 SetStickerSetThumb = <B as Requester>::SetStickerSetThumb; 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 GetUpdatesFaultTolerant = <B as Requester>::GetUpdatesFaultTolerant;
impl<B> Requester for Throttle<B> where
B: Requester,
<B as Requester>::SendMessage: Send,
<B as Requester>::ForwardMessage: Send,
<B as Requester>::CopyMessage: Send,
<B as Requester>::SendPhoto: Send,
<B as Requester>::SendAudio: Send,
<B as Requester>::SendDocument: Send,
<B as Requester>::SendVideo: Send,
<B as Requester>::SendAnimation: Send,
<B as Requester>::SendVoice: Send,
<B as Requester>::SendVideoNote: Send,
<B as Requester>::SendMediaGroup: Send,
<B as Requester>::SendLocation: Send,
<B as Requester>::SendVenue: Send,
<B as Requester>::SendContact: Send,
<B as Requester>::SendPoll: Send,
<B as Requester>::SendDice: Send,
<B as Requester>::SendSticker: Send,
<B as Requester>::SendInvoice: Send, type Err = <B as Requester>::Err; type SendMessage = ThrottlingRequest<<B as Requester>::SendMessage>; type ForwardMessage = ThrottlingRequest<<B as Requester>::ForwardMessage>; type CopyMessage = ThrottlingRequest<<B as Requester>::CopyMessage>; type SendPhoto = ThrottlingRequest<<B as Requester>::SendPhoto>; type SendAudio = ThrottlingRequest<<B as Requester>::SendAudio>; type SendDocument = ThrottlingRequest<<B as Requester>::SendDocument>; type SendVideo = ThrottlingRequest<<B as Requester>::SendVideo>; type SendAnimation = ThrottlingRequest<<B as Requester>::SendAnimation>; type SendVoice = ThrottlingRequest<<B as Requester>::SendVoice>; type SendVideoNote = ThrottlingRequest<<B as Requester>::SendVideoNote>; type SendMediaGroup = ThrottlingRequest<<B as Requester>::SendMediaGroup>; type SendLocation = ThrottlingRequest<<B as Requester>::SendLocation>; type SendVenue = ThrottlingRequest<<B as Requester>::SendVenue>; type SendContact = ThrottlingRequest<<B as Requester>::SendContact>; type SendPoll = ThrottlingRequest<<B as Requester>::SendPoll>; type SendDice = ThrottlingRequest<<B as Requester>::SendDice>; type SendSticker = ThrottlingRequest<<B as Requester>::SendSticker>; type SendInvoice = ThrottlingRequest<<B as Requester>::SendInvoice>; 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 EditMessageLiveLocation = <B as Requester>::EditMessageLiveLocation; type EditMessageLiveLocationInline = <B as Requester>::EditMessageLiveLocationInline; type StopMessageLiveLocation = <B as Requester>::StopMessageLiveLocation; type StopMessageLiveLocationInline = <B as Requester>::StopMessageLiveLocationInline; type SendChatAction = <B as Requester>::SendChatAction; 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 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 AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery; type SetMyCommands = <B as Requester>::SetMyCommands; type GetMyCommands = <B as Requester>::GetMyCommands; type DeleteMyCommands = <B as Requester>::DeleteMyCommands; type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery; 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 GetStickerSet = <B as Requester>::GetStickerSet; 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 SetStickerSetThumb = <B as Requester>::SetStickerSetThumb; 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 GetUpdatesFaultTolerant = <B as Requester>::GetUpdatesFaultTolerant;
throttle
only.fn parse_mode(self, parse_mode: ParseMode) -> DefaultParseMode<Self>ⓘNotable traits for DefaultParseMode<B>impl<B> Requester for DefaultParseMode<B> where
B: Requester, type Err = <B as Requester>::Err; type SendMessage = <B as Requester>::SendMessage; type SendPhoto = <B as Requester>::SendPhoto; type SendVideo = <B as Requester>::SendVideo; type SendAudio = <B as Requester>::SendAudio; type SendDocument = <B as Requester>::SendDocument; type SendAnimation = <B as Requester>::SendAnimation; type SendVoice = <B as Requester>::SendVoice; 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 SendPoll = <B as Requester>::SendPoll; 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 CopyMessage = <B as Requester>::CopyMessage; 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 SendDice = <B as Requester>::SendDice; type SendChatAction = <B as Requester>::SendChatAction; 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 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 AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery; type SetMyCommands = <B as Requester>::SetMyCommands; type GetMyCommands = <B as Requester>::GetMyCommands; type DeleteMyCommands = <B as Requester>::DeleteMyCommands; type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery; 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 SendSticker = <B as Requester>::SendSticker; type GetStickerSet = <B as Requester>::GetStickerSet; 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 SetStickerSetThumb = <B as Requester>::SetStickerSetThumb; type SendInvoice = <B as Requester>::SendInvoice; 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 GetUpdatesFaultTolerant = <B as Requester>::GetUpdatesFaultTolerant;
fn parse_mode(self, parse_mode: ParseMode) -> DefaultParseMode<Self>ⓘNotable traits for DefaultParseMode<B>impl<B> Requester for DefaultParseMode<B> where
B: Requester, type Err = <B as Requester>::Err; type SendMessage = <B as Requester>::SendMessage; type SendPhoto = <B as Requester>::SendPhoto; type SendVideo = <B as Requester>::SendVideo; type SendAudio = <B as Requester>::SendAudio; type SendDocument = <B as Requester>::SendDocument; type SendAnimation = <B as Requester>::SendAnimation; type SendVoice = <B as Requester>::SendVoice; 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 SendPoll = <B as Requester>::SendPoll; 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 CopyMessage = <B as Requester>::CopyMessage; 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 SendDice = <B as Requester>::SendDice; type SendChatAction = <B as Requester>::SendChatAction; 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 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 AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery; type SetMyCommands = <B as Requester>::SetMyCommands; type GetMyCommands = <B as Requester>::GetMyCommands; type DeleteMyCommands = <B as Requester>::DeleteMyCommands; type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery; 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 SendSticker = <B as Requester>::SendSticker; type GetStickerSet = <B as Requester>::GetStickerSet; 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 SetStickerSetThumb = <B as Requester>::SetStickerSetThumb; type SendInvoice = <B as Requester>::SendInvoice; 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 GetUpdatesFaultTolerant = <B as Requester>::GetUpdatesFaultTolerant;
impl<B> Requester for DefaultParseMode<B> where
B: Requester, type Err = <B as Requester>::Err; type SendMessage = <B as Requester>::SendMessage; type SendPhoto = <B as Requester>::SendPhoto; type SendVideo = <B as Requester>::SendVideo; type SendAudio = <B as Requester>::SendAudio; type SendDocument = <B as Requester>::SendDocument; type SendAnimation = <B as Requester>::SendAnimation; type SendVoice = <B as Requester>::SendVoice; 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 SendPoll = <B as Requester>::SendPoll; 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 CopyMessage = <B as Requester>::CopyMessage; 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 SendDice = <B as Requester>::SendDice; type SendChatAction = <B as Requester>::SendChatAction; 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 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 AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery; type SetMyCommands = <B as Requester>::SetMyCommands; type GetMyCommands = <B as Requester>::GetMyCommands; type DeleteMyCommands = <B as Requester>::DeleteMyCommands; type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery; 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 SendSticker = <B as Requester>::SendSticker; type GetStickerSet = <B as Requester>::GetStickerSet; 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 SetStickerSetThumb = <B as Requester>::SetStickerSetThumb; type SendInvoice = <B as Requester>::SendInvoice; 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 GetUpdatesFaultTolerant = <B as Requester>::GetUpdatesFaultTolerant;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more