pub struct Throttle<B> { /* private fields */ }Expand description
Automatic request limits respecting mechanism.
Telegram has strict limits, which, if exceeded will sooner or later cause
RequestError::RetryAfter(_) errors. These errors can cause users of your
bot to never receive responses from the bot or receive them in a wrong
order.
This bot wrapper automatically checks for limits, suspending requests until they could be sent without exceeding limits (request order in chats is not changed).
It’s recommended to use this wrapper before other wrappers (i.e.:
SomeWrapper<Throttle<Bot>> not Throttle<SomeWrapper<Bot>>) because if
done otherwise inner wrappers may cause Throttle to miscalculate limits
usage.
§Examples
use ronami_core::{adaptors::throttle::Limits, requests::RequesterExt, Bot};
let bot = Bot::new("TOKEN")
.throttle(Limits::default());
/* send many requests here */§Note about send-by-@channelusername
Telegram have limits on sending messages to the same chat. To check them
we store chat_ids of several last requests. However there is no good way
to tell if given ChatId::Id(x) corresponds to the same chat as
ChatId::ChannelUsername(u).
Our current approach is to just give up and check chat_id_a == chat_id_b.
This may give incorrect results.
As such, we encourage not to use ChatId::ChannelUsername(u) with this bot
wrapper.
Implementations§
Source§impl<B> Throttle<B>
impl<B> Throttle<B>
Sourcepub fn new(bot: B, limits: Limits) -> (Throttle<B>, impl Future<Output = ()>)
Available on crate feature throttle only.
pub fn new(bot: B, limits: Limits) -> (Throttle<B>, impl Future<Output = ()>)
throttle only.Sourcepub fn with_settings(
bot: B,
settings: Settings,
) -> (Throttle<B>, impl Future<Output = ()>)
Available on crate feature throttle only.
pub fn with_settings( bot: B, settings: Settings, ) -> (Throttle<B>, impl Future<Output = ()>)
throttle only.Sourcepub fn new_spawn(bot: B, limits: Limits) -> Throttle<B> ⓘ
Available on crate feature throttle only.
pub fn new_spawn(bot: B, limits: Limits) -> Throttle<B> ⓘ
throttle only.Creates new Throttle spawning the worker with tokio::spawn
Note: it’s recommended to use RequesterExt::throttle instead.
Sourcepub fn spawn_with_settings(bot: B, settings: Settings) -> Throttle<B> ⓘ
Available on crate feature throttle only.
pub fn spawn_with_settings(bot: B, settings: Settings) -> Throttle<B> ⓘ
throttle only.Creates new Throttle spawning the worker with tokio::spawn
Sourcepub fn into_inner(self) -> B
Available on crate feature throttle only.
pub fn into_inner(self) -> B
throttle only.Unwraps inner bot
Sourcepub async fn limits(&self) -> Limits
Available on crate feature throttle only.
pub async fn limits(&self) -> Limits
throttle only.Returns currently used Limits.
Sourcepub async fn set_limits(&self, new: Limits)
Available on crate feature throttle only.
pub async fn set_limits(&self, new: Limits)
throttle only.Sets new limits.
Note: changes may not be applied immediately.
Trait Implementations§
Source§impl<B> Download for Throttle<B>where
B: Download,
impl<B> Download for Throttle<B>where
B: Download,
Source§impl<B> Requester for Throttle<B>where
B: Requester,
<B as Requester>::Err: AsResponseParameters,
<B as Requester>::SendMessage: Clone + Send + Sync + 'static,
<B as Requester>::ForwardMessage: Clone + Send + Sync + 'static,
<B as Requester>::ForwardMessages: Clone + Send + Sync + 'static,
<B as Requester>::CopyMessage: Clone + Send + Sync + 'static,
<B as Requester>::CopyMessages: Clone + Send + Sync + 'static,
<B as Requester>::SendPhoto: Clone + Send + Sync + 'static,
<B as Requester>::SendAudio: Clone + Send + Sync + 'static,
<B as Requester>::SendDocument: Clone + Send + Sync + 'static,
<B as Requester>::SendVideo: Clone + Send + Sync + 'static,
<B as Requester>::SendAnimation: Clone + Send + Sync + 'static,
<B as Requester>::SendVoice: Clone + Send + Sync + 'static,
<B as Requester>::SendVideoNote: Clone + Send + Sync + 'static,
<B as Requester>::SendPaidMedia: Clone + Send + Sync + 'static,
<B as Requester>::SendMediaGroup: Clone + Send + Sync + 'static,
<B as Requester>::SendLocation: Clone + Send + Sync + 'static,
<B as Requester>::SendVenue: Clone + Send + Sync + 'static,
<B as Requester>::SendContact: Clone + Send + Sync + 'static,
<B as Requester>::SendPoll: Clone + Send + Sync + 'static,
<B as Requester>::SendChecklist: Clone + Send + Sync + 'static,
<B as Requester>::SendDice: Clone + Send + Sync + 'static,
<B as Requester>::SendSticker: Clone + Send + Sync + 'static,
<B as Requester>::SendInvoice: Clone + Send + Sync + 'static,
<B as Requester>::SendGame: Clone + Send + Sync + 'static,
impl<B> Requester for Throttle<B>where
B: Requester,
<B as Requester>::Err: AsResponseParameters,
<B as Requester>::SendMessage: Clone + Send + Sync + 'static,
<B as Requester>::ForwardMessage: Clone + Send + Sync + 'static,
<B as Requester>::ForwardMessages: Clone + Send + Sync + 'static,
<B as Requester>::CopyMessage: Clone + Send + Sync + 'static,
<B as Requester>::CopyMessages: Clone + Send + Sync + 'static,
<B as Requester>::SendPhoto: Clone + Send + Sync + 'static,
<B as Requester>::SendAudio: Clone + Send + Sync + 'static,
<B as Requester>::SendDocument: Clone + Send + Sync + 'static,
<B as Requester>::SendVideo: Clone + Send + Sync + 'static,
<B as Requester>::SendAnimation: Clone + Send + Sync + 'static,
<B as Requester>::SendVoice: Clone + Send + Sync + 'static,
<B as Requester>::SendVideoNote: Clone + Send + Sync + 'static,
<B as Requester>::SendPaidMedia: Clone + Send + Sync + 'static,
<B as Requester>::SendMediaGroup: Clone + Send + Sync + 'static,
<B as Requester>::SendLocation: Clone + Send + Sync + 'static,
<B as Requester>::SendVenue: Clone + Send + Sync + 'static,
<B as Requester>::SendContact: Clone + Send + Sync + 'static,
<B as Requester>::SendPoll: Clone + Send + Sync + 'static,
<B as Requester>::SendChecklist: Clone + Send + Sync + 'static,
<B as Requester>::SendDice: Clone + Send + Sync + 'static,
<B as Requester>::SendSticker: Clone + Send + Sync + 'static,
<B as Requester>::SendInvoice: Clone + Send + Sync + 'static,
<B as Requester>::SendGame: Clone + Send + Sync + 'static,
type SendMessage = ThrottlingRequest<<B as Requester>::SendMessage>
type ForwardMessage = ThrottlingRequest<<B as Requester>::ForwardMessage>
type ForwardMessages = ThrottlingRequest<<B as Requester>::ForwardMessages>
type CopyMessage = ThrottlingRequest<<B as Requester>::CopyMessage>
type CopyMessages = ThrottlingRequest<<B as Requester>::CopyMessages>
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 SendPaidMedia = ThrottlingRequest<<B as Requester>::SendPaidMedia>
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 SendChecklist = ThrottlingRequest<<B as Requester>::SendChecklist>
type SendDice = ThrottlingRequest<<B as Requester>::SendDice>
type SendSticker = ThrottlingRequest<<B as Requester>::SendSticker>
type SendInvoice = ThrottlingRequest<<B as Requester>::SendInvoice>
type SendGame = ThrottlingRequest<<B as Requester>::SendGame>
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 EditMessageChecklist = <B as Requester>::EditMessageChecklist
type SendChatAction = <B as Requester>::SendChatAction
type SendMessageDraft = <B as Requester>::SendMessageDraft
type SetMessageReaction = <B as Requester>::SetMessageReaction
type GetUserProfilePhotos = <B as Requester>::GetUserProfilePhotos
type GetUserProfileAudios = <B as Requester>::GetUserProfileAudios
type SetUserEmojiStatus = <B as Requester>::SetUserEmojiStatus
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 SetChatMemberTag = <B as Requester>::SetChatMemberTag
type BanChatSenderChat = <B as Requester>::BanChatSenderChat
type UnbanChatSenderChat = <B as Requester>::UnbanChatSenderChat
type SetChatPermissions = <B as Requester>::SetChatPermissions
type ExportChatInviteLink = <B as Requester>::ExportChatInviteLink
type CreateChatInviteLink = <B as Requester>::CreateChatInviteLink
type EditChatInviteLink = <B as Requester>::EditChatInviteLink
type CreateChatSubscriptionInviteLink = <B as Requester>::CreateChatSubscriptionInviteLink
type EditChatSubscriptionInviteLink = <B as Requester>::EditChatSubscriptionInviteLink
type RevokeChatInviteLink = <B as Requester>::RevokeChatInviteLink
type SetChatPhoto = <B as Requester>::SetChatPhoto
type DeleteChatPhoto = <B as Requester>::DeleteChatPhoto
type SetChatTitle = <B as Requester>::SetChatTitle
type SetChatDescription = <B as Requester>::SetChatDescription
type PinChatMessage = <B as Requester>::PinChatMessage
type UnpinChatMessage = <B as Requester>::UnpinChatMessage
type UnpinAllChatMessages = <B as Requester>::UnpinAllChatMessages
type LeaveChat = <B as Requester>::LeaveChat
type GetChat = <B as Requester>::GetChat
type GetChatAdministrators = <B as Requester>::GetChatAdministrators
type GetChatMembersCount = <B as Requester>::GetChatMembersCount
type GetChatMemberCount = <B as Requester>::GetChatMemberCount
type GetChatMember = <B as Requester>::GetChatMember
type SetChatStickerSet = <B as Requester>::SetChatStickerSet
type DeleteChatStickerSet = <B as Requester>::DeleteChatStickerSet
type GetForumTopicIconStickers = <B as Requester>::GetForumTopicIconStickers
type CreateForumTopic = <B as Requester>::CreateForumTopic
type EditForumTopic = <B as Requester>::EditForumTopic
type CloseForumTopic = <B as Requester>::CloseForumTopic
type ReopenForumTopic = <B as Requester>::ReopenForumTopic
type DeleteForumTopic = <B as Requester>::DeleteForumTopic
type UnpinAllForumTopicMessages = <B as Requester>::UnpinAllForumTopicMessages
type EditGeneralForumTopic = <B as Requester>::EditGeneralForumTopic
type CloseGeneralForumTopic = <B as Requester>::CloseGeneralForumTopic
type ReopenGeneralForumTopic = <B as Requester>::ReopenGeneralForumTopic
type HideGeneralForumTopic = <B as Requester>::HideGeneralForumTopic
type UnhideGeneralForumTopic = <B as Requester>::UnhideGeneralForumTopic
type UnpinAllGeneralForumTopicMessages = <B as Requester>::UnpinAllGeneralForumTopicMessages
type AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery
type GetUserChatBoosts = <B as Requester>::GetUserChatBoosts
type SetMyCommands = <B as Requester>::SetMyCommands
type GetBusinessConnection = <B as Requester>::GetBusinessConnection
type GetMyCommands = <B as Requester>::GetMyCommands
type SetMyName = <B as Requester>::SetMyName
type GetMyName = <B as Requester>::GetMyName
type SetMyDescription = <B as Requester>::SetMyDescription
type GetMyDescription = <B as Requester>::GetMyDescription
type SetMyShortDescription = <B as Requester>::SetMyShortDescription
type GetMyShortDescription = <B as Requester>::GetMyShortDescription
type SetMyProfilePhoto = <B as Requester>::SetMyProfilePhoto
type RemoveMyProfilePhoto = <B as Requester>::RemoveMyProfilePhoto
type SendLivePhoto = <B as Requester>::SendLivePhoto
type GetUserPersonalChatMessages = <B as Requester>::GetUserPersonalChatMessages
type AnswerGuestQuery = <B as Requester>::AnswerGuestQuery
type GetManagedBotAccessSettings = <B as Requester>::GetManagedBotAccessSettings
type SetManagedBotAccessSettings = <B as Requester>::SetManagedBotAccessSettings
type DeleteMessageReaction = <B as Requester>::DeleteMessageReaction
type DeleteAllMessageReactions = <B as Requester>::DeleteAllMessageReactions
type GetManagedBotToken = <B as Requester>::GetManagedBotToken
type ReplaceManagedBotToken = <B as Requester>::ReplaceManagedBotToken
type SavePreparedKeyboardButton = <B as Requester>::SavePreparedKeyboardButton
type SetChatMenuButton = <B as Requester>::SetChatMenuButton
type GetChatMenuButton = <B as Requester>::GetChatMenuButton
type SetMyDefaultAdministratorRights = <B as Requester>::SetMyDefaultAdministratorRights
type GetMyDefaultAdministratorRights = <B as Requester>::GetMyDefaultAdministratorRights
type DeleteMyCommands = <B as Requester>::DeleteMyCommands
type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery
type AnswerWebAppQuery = <B as Requester>::AnswerWebAppQuery
type SavePreparedInlineMessage = <B as Requester>::SavePreparedInlineMessage
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 ApproveSuggestedPost = <B as Requester>::ApproveSuggestedPost
type DeclineSuggestedPost = <B as Requester>::DeclineSuggestedPost
type DeleteMessage = <B as Requester>::DeleteMessage
type DeleteMessages = <B as Requester>::DeleteMessages
type GetStickerSet = <B as Requester>::GetStickerSet
type GetCustomEmojiStickers = <B as Requester>::GetCustomEmojiStickers
type UploadStickerFile = <B as Requester>::UploadStickerFile
type CreateNewStickerSet = <B as Requester>::CreateNewStickerSet
type AddStickerToSet = <B as Requester>::AddStickerToSet
type SetStickerPositionInSet = <B as Requester>::SetStickerPositionInSet
type DeleteStickerFromSet = <B as Requester>::DeleteStickerFromSet
type ReplaceStickerInSet = <B as Requester>::ReplaceStickerInSet
type SetStickerSetThumbnail = <B as Requester>::SetStickerSetThumbnail
type SetCustomEmojiStickerSetThumbnail = <B as Requester>::SetCustomEmojiStickerSetThumbnail
type SetStickerSetTitle = <B as Requester>::SetStickerSetTitle
type DeleteStickerSet = <B as Requester>::DeleteStickerSet
type SetStickerEmojiList = <B as Requester>::SetStickerEmojiList
type SetStickerKeywords = <B as Requester>::SetStickerKeywords
type SetStickerMaskPosition = <B as Requester>::SetStickerMaskPosition
type GetAvailableGifts = <B as Requester>::GetAvailableGifts
type SendGift = <B as Requester>::SendGift
type SendGiftChat = <B as Requester>::SendGiftChat
type GiftPremiumSubscription = <B as Requester>::GiftPremiumSubscription
type VerifyUser = <B as Requester>::VerifyUser
type VerifyChat = <B as Requester>::VerifyChat
type RemoveUserVerification = <B as Requester>::RemoveUserVerification
type RemoveChatVerification = <B as Requester>::RemoveChatVerification
type ReadBusinessMessage = <B as Requester>::ReadBusinessMessage
type DeleteBusinessMessages = <B as Requester>::DeleteBusinessMessages
type SetBusinessAccountName = <B as Requester>::SetBusinessAccountName
type SetBusinessAccountUsername = <B as Requester>::SetBusinessAccountUsername
type SetBusinessAccountBio = <B as Requester>::SetBusinessAccountBio
type SetBusinessAccountProfilePhoto = <B as Requester>::SetBusinessAccountProfilePhoto
type RemoveBusinessAccountProfilePhoto = <B as Requester>::RemoveBusinessAccountProfilePhoto
type SetBusinessAccountGiftSettings = <B as Requester>::SetBusinessAccountGiftSettings
type GetBusinessAccountStarBalance = <B as Requester>::GetBusinessAccountStarBalance
type TransferBusinessAccountStars = <B as Requester>::TransferBusinessAccountStars
type GetBusinessAccountGifts = <B as Requester>::GetBusinessAccountGifts
type GetUserGifts = <B as Requester>::GetUserGifts
type GetChatGifts = <B as Requester>::GetChatGifts
type ConvertGiftToStars = <B as Requester>::ConvertGiftToStars
type UpgradeGift = <B as Requester>::UpgradeGift
type TransferGift = <B as Requester>::TransferGift
type PostStory = <B as Requester>::PostStory
type RepostStory = <B as Requester>::RepostStory
type EditStory = <B as Requester>::EditStory
type DeleteStory = <B as Requester>::DeleteStory
type AnswerShippingQuery = <B as Requester>::AnswerShippingQuery
type CreateInvoiceLink = <B as Requester>::CreateInvoiceLink
type AnswerPreCheckoutQuery = <B as Requester>::AnswerPreCheckoutQuery
type GetMyStarBalance = <B as Requester>::GetMyStarBalance
type GetStarTransactions = <B as Requester>::GetStarTransactions
type RefundStarPayment = <B as Requester>::RefundStarPayment
type EditUserStarSubscription = <B as Requester>::EditUserStarSubscription
type SetPassportDataErrors = <B as Requester>::SetPassportDataErrors
type SetGameScore = <B as Requester>::SetGameScore
type SetGameScoreInline = <B as Requester>::SetGameScoreInline
type ApproveChatJoinRequest = <B as Requester>::ApproveChatJoinRequest
type DeclineChatJoinRequest = <B as Requester>::DeclineChatJoinRequest
type GetGameHighScores = <B as Requester>::GetGameHighScores
Source§fn send_message<C, T>(
&self,
chat_id: C,
text: T,
) -> <Throttle<B> as Requester>::SendMessage ⓘ
fn send_message<C, T>( &self, chat_id: C, text: T, ) -> <Throttle<B> as Requester>::SendMessage ⓘ
SendMessage.Source§fn forward_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId,
) -> <Throttle<B> as Requester>::ForwardMessage ⓘ
fn forward_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> <Throttle<B> as Requester>::ForwardMessage ⓘ
ForwardMessage.Source§fn forward_messages<C, F, M>(
&self,
chat_id: C,
from_chat_id: F,
message_ids: M,
) -> <Throttle<B> as Requester>::ForwardMessages ⓘ
fn forward_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> <Throttle<B> as Requester>::ForwardMessages ⓘ
ForwardMessages.Source§fn copy_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId,
) -> <Throttle<B> as Requester>::CopyMessage ⓘ
fn copy_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> <Throttle<B> as Requester>::CopyMessage ⓘ
CopyMessage.Source§fn copy_messages<C, F, M>(
&self,
chat_id: C,
from_chat_id: F,
message_ids: M,
) -> <Throttle<B> as Requester>::CopyMessages ⓘ
fn copy_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> <Throttle<B> as Requester>::CopyMessages ⓘ
CopyMessages.Source§fn send_photo<C>(
&self,
chat_id: C,
photo: InputFile,
) -> <Throttle<B> as Requester>::SendPhoto ⓘ
fn send_photo<C>( &self, chat_id: C, photo: InputFile, ) -> <Throttle<B> as Requester>::SendPhoto ⓘ
SendPhoto.Source§fn send_audio<C>(
&self,
chat_id: C,
audio: InputFile,
) -> <Throttle<B> as Requester>::SendAudio ⓘ
fn send_audio<C>( &self, chat_id: C, audio: InputFile, ) -> <Throttle<B> as Requester>::SendAudio ⓘ
SendAudio.Source§fn send_document<C>(
&self,
chat_id: C,
document: InputFile,
) -> <Throttle<B> as Requester>::SendDocument ⓘ
fn send_document<C>( &self, chat_id: C, document: InputFile, ) -> <Throttle<B> as Requester>::SendDocument ⓘ
SendDocument.Source§fn send_video<C>(
&self,
chat_id: C,
video: InputFile,
) -> <Throttle<B> as Requester>::SendVideo ⓘ
fn send_video<C>( &self, chat_id: C, video: InputFile, ) -> <Throttle<B> as Requester>::SendVideo ⓘ
SendVideo.Source§fn send_animation<C>(
&self,
chat_id: C,
animation: InputFile,
) -> <Throttle<B> as Requester>::SendAnimation ⓘ
fn send_animation<C>( &self, chat_id: C, animation: InputFile, ) -> <Throttle<B> as Requester>::SendAnimation ⓘ
SendAnimation.Source§fn send_voice<C>(
&self,
chat_id: C,
voice: InputFile,
) -> <Throttle<B> as Requester>::SendVoice ⓘ
fn send_voice<C>( &self, chat_id: C, voice: InputFile, ) -> <Throttle<B> as Requester>::SendVoice ⓘ
SendVoice.Source§fn send_video_note<C>(
&self,
chat_id: C,
video_note: InputFile,
) -> <Throttle<B> as Requester>::SendVideoNote ⓘ
fn send_video_note<C>( &self, chat_id: C, video_note: InputFile, ) -> <Throttle<B> as Requester>::SendVideoNote ⓘ
SendVideoNote.Source§fn send_paid_media<C, M>(
&self,
chat_id: C,
star_count: u32,
media: M,
) -> <Throttle<B> as Requester>::SendPaidMedia ⓘ
fn send_paid_media<C, M>( &self, chat_id: C, star_count: u32, media: M, ) -> <Throttle<B> as Requester>::SendPaidMedia ⓘ
SendPaidMedia.Source§fn send_media_group<C, M>(
&self,
chat_id: C,
media: M,
) -> <Throttle<B> as Requester>::SendMediaGroup ⓘ
fn send_media_group<C, M>( &self, chat_id: C, media: M, ) -> <Throttle<B> as Requester>::SendMediaGroup ⓘ
SendMediaGroup.Source§fn send_location<C>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
) -> <Throttle<B> as Requester>::SendLocation ⓘ
fn send_location<C>( &self, chat_id: C, latitude: f64, longitude: f64, ) -> <Throttle<B> as Requester>::SendLocation ⓘ
SendLocation.Source§fn send_venue<C, T, A>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
title: T,
address: A,
) -> <Throttle<B> as Requester>::SendVenue ⓘ
fn send_venue<C, T, A>( &self, chat_id: C, latitude: f64, longitude: f64, title: T, address: A, ) -> <Throttle<B> as Requester>::SendVenue ⓘ
SendVenue.Source§fn send_contact<C, P, F>(
&self,
chat_id: C,
phone_number: P,
first_name: F,
) -> <Throttle<B> as Requester>::SendContact ⓘ
fn send_contact<C, P, F>( &self, chat_id: C, phone_number: P, first_name: F, ) -> <Throttle<B> as Requester>::SendContact ⓘ
SendContact.Source§fn send_poll<C, Q, O>(
&self,
chat_id: C,
question: Q,
options: O,
) -> <Throttle<B> as Requester>::SendPoll ⓘ
fn send_poll<C, Q, O>( &self, chat_id: C, question: Q, options: O, ) -> <Throttle<B> as Requester>::SendPoll ⓘ
SendPoll.Source§fn send_checklist<C>(
&self,
business_connection_id: BusinessConnectionId,
chat_id: C,
checklist: InputChecklist,
) -> <Throttle<B> as Requester>::SendChecklist ⓘ
fn send_checklist<C>( &self, business_connection_id: BusinessConnectionId, chat_id: C, checklist: InputChecklist, ) -> <Throttle<B> as Requester>::SendChecklist ⓘ
SendChecklist.Source§fn send_dice<C>(&self, chat_id: C) -> <Throttle<B> as Requester>::SendDice ⓘ
fn send_dice<C>(&self, chat_id: C) -> <Throttle<B> as Requester>::SendDice ⓘ
SendDice.Source§fn send_sticker<C>(
&self,
chat_id: C,
sticker: InputFile,
) -> <Throttle<B> as Requester>::SendSticker ⓘ
fn send_sticker<C>( &self, chat_id: C, sticker: InputFile, ) -> <Throttle<B> as Requester>::SendSticker ⓘ
SendSticker.Source§fn send_invoice<Ch, T, D, Pa, C, P>(
&self,
chat_id: Ch,
title: T,
description: D,
payload: Pa,
currency: C,
prices: P,
) -> <Throttle<B> as Requester>::SendInvoice ⓘ
fn send_invoice<Ch, T, D, Pa, C, P>( &self, chat_id: Ch, title: T, description: D, payload: Pa, currency: C, prices: P, ) -> <Throttle<B> as Requester>::SendInvoice ⓘ
SendInvoice.Source§fn send_game<C, G>(
&self,
chat_id: C,
game_short_name: G,
) -> <Throttle<B> as Requester>::SendGame ⓘ
fn send_game<C, G>( &self, chat_id: C, game_short_name: G, ) -> <Throttle<B> as Requester>::SendGame ⓘ
SendGame.Source§fn log_out(&self) -> <Throttle<B> as Requester>::LogOut ⓘ
fn log_out(&self) -> <Throttle<B> as Requester>::LogOut ⓘ
LogOut.Source§fn get_updates(&self) -> <Throttle<B> as Requester>::GetUpdates ⓘ
fn get_updates(&self) -> <Throttle<B> as Requester>::GetUpdates ⓘ
GetUpdates.Source§fn set_webhook(&self, url: Url) -> <Throttle<B> as Requester>::SetWebhook ⓘ
fn set_webhook(&self, url: Url) -> <Throttle<B> as Requester>::SetWebhook ⓘ
SetWebhook.Source§fn delete_webhook(&self) -> <Throttle<B> as Requester>::DeleteWebhook ⓘ
fn delete_webhook(&self) -> <Throttle<B> as Requester>::DeleteWebhook ⓘ
DeleteWebhook.Source§fn get_webhook_info(&self) -> <Throttle<B> as Requester>::GetWebhookInfo ⓘ
fn get_webhook_info(&self) -> <Throttle<B> as Requester>::GetWebhookInfo ⓘ
GetWebhookInfo.Source§fn edit_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64,
) -> <Throttle<B> as Requester>::EditMessageLiveLocation ⓘ
fn edit_message_live_location<C>( &self, chat_id: C, message_id: MessageId, latitude: f64, longitude: f64, ) -> <Throttle<B> as Requester>::EditMessageLiveLocation ⓘ
EditMessageLiveLocation.Source§fn edit_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64,
) -> <Throttle<B> as Requester>::EditMessageLiveLocationInline ⓘ
fn edit_message_live_location_inline<I>( &self, inline_message_id: I, latitude: f64, longitude: f64, ) -> <Throttle<B> as Requester>::EditMessageLiveLocationInline ⓘ
EditMessageLiveLocationInline.Source§fn stop_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> <Throttle<B> as Requester>::StopMessageLiveLocation ⓘ
fn stop_message_live_location<C>( &self, chat_id: C, message_id: MessageId, ) -> <Throttle<B> as Requester>::StopMessageLiveLocation ⓘ
StopMessageLiveLocation.Source§fn stop_message_live_location_inline<I>(
&self,
inline_message_id: I,
) -> <Throttle<B> as Requester>::StopMessageLiveLocationInline ⓘ
fn stop_message_live_location_inline<I>( &self, inline_message_id: I, ) -> <Throttle<B> as Requester>::StopMessageLiveLocationInline ⓘ
StopMessageLiveLocationInline.Source§fn edit_message_checklist<C>(
&self,
business_connection_id: BusinessConnectionId,
chat_id: C,
message_id: MessageId,
checklist: InputChecklist,
) -> <Throttle<B> as Requester>::EditMessageChecklist ⓘ
fn edit_message_checklist<C>( &self, business_connection_id: BusinessConnectionId, chat_id: C, message_id: MessageId, checklist: InputChecklist, ) -> <Throttle<B> as Requester>::EditMessageChecklist ⓘ
EditMessageChecklist.Source§fn send_chat_action<C>(
&self,
chat_id: C,
action: ChatAction,
) -> <Throttle<B> as Requester>::SendChatAction ⓘ
fn send_chat_action<C>( &self, chat_id: C, action: ChatAction, ) -> <Throttle<B> as Requester>::SendChatAction ⓘ
SendChatAction.Source§fn send_message_draft<C, T>(
&self,
chat_id: C,
draft_id: DraftId,
text: T,
) -> <Throttle<B> as Requester>::SendMessageDraft ⓘ
fn send_message_draft<C, T>( &self, chat_id: C, draft_id: DraftId, text: T, ) -> <Throttle<B> as Requester>::SendMessageDraft ⓘ
SendMessageDraft.Source§fn set_message_reaction<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> <Throttle<B> as Requester>::SetMessageReaction ⓘ
fn set_message_reaction<C>( &self, chat_id: C, message_id: MessageId, ) -> <Throttle<B> as Requester>::SetMessageReaction ⓘ
SetMessageReaction.Source§fn get_user_profile_photos(
&self,
user_id: UserId,
) -> <Throttle<B> as Requester>::GetUserProfilePhotos ⓘ
fn get_user_profile_photos( &self, user_id: UserId, ) -> <Throttle<B> as Requester>::GetUserProfilePhotos ⓘ
GetUserProfilePhotos.Source§fn get_user_profile_audios(
&self,
user_id: UserId,
) -> <Throttle<B> as Requester>::GetUserProfileAudios ⓘ
fn get_user_profile_audios( &self, user_id: UserId, ) -> <Throttle<B> as Requester>::GetUserProfileAudios ⓘ
GetUserProfileAudios.Source§fn set_user_emoji_status(
&self,
user_id: UserId,
) -> <Throttle<B> as Requester>::SetUserEmojiStatus ⓘ
fn set_user_emoji_status( &self, user_id: UserId, ) -> <Throttle<B> as Requester>::SetUserEmojiStatus ⓘ
SetUserEmojiStatus.Source§fn get_file(&self, file_id: FileId) -> <Throttle<B> as Requester>::GetFile ⓘ
fn get_file(&self, file_id: FileId) -> <Throttle<B> as Requester>::GetFile ⓘ
GetFile.Source§fn kick_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> <Throttle<B> as Requester>::KickChatMember ⓘ
fn kick_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> <Throttle<B> as Requester>::KickChatMember ⓘ
KickChatMember.Source§fn ban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> <Throttle<B> as Requester>::BanChatMember ⓘ
fn ban_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> <Throttle<B> as Requester>::BanChatMember ⓘ
BanChatMember.Source§fn unban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> <Throttle<B> as Requester>::UnbanChatMember ⓘ
fn unban_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> <Throttle<B> as Requester>::UnbanChatMember ⓘ
UnbanChatMember.Source§fn restrict_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
permissions: ChatPermissions,
) -> <Throttle<B> as Requester>::RestrictChatMember ⓘ
fn restrict_chat_member<C>( &self, chat_id: C, user_id: UserId, permissions: ChatPermissions, ) -> <Throttle<B> as Requester>::RestrictChatMember ⓘ
RestrictChatMember.Source§fn promote_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> <Throttle<B> as Requester>::PromoteChatMember ⓘ
fn promote_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> <Throttle<B> as Requester>::PromoteChatMember ⓘ
PromoteChatMember.Source§fn set_chat_administrator_custom_title<Ch, C>(
&self,
chat_id: Ch,
user_id: UserId,
custom_title: C,
) -> <Throttle<B> as Requester>::SetChatAdministratorCustomTitle ⓘ
fn set_chat_administrator_custom_title<Ch, C>( &self, chat_id: Ch, user_id: UserId, custom_title: C, ) -> <Throttle<B> as Requester>::SetChatAdministratorCustomTitle ⓘ
SetChatAdministratorCustomTitle.Source§fn set_chat_member_tag<C>(
&self,
chat_id: C,
user_id: UserId,
) -> <Throttle<B> as Requester>::SetChatMemberTag ⓘ
fn set_chat_member_tag<C>( &self, chat_id: C, user_id: UserId, ) -> <Throttle<B> as Requester>::SetChatMemberTag ⓘ
SetChatMemberTag.Source§fn ban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S,
) -> <Throttle<B> as Requester>::BanChatSenderChat ⓘ
fn ban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> <Throttle<B> as Requester>::BanChatSenderChat ⓘ
BanChatSenderChat.Source§fn unban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S,
) -> <Throttle<B> as Requester>::UnbanChatSenderChat ⓘ
fn unban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> <Throttle<B> as Requester>::UnbanChatSenderChat ⓘ
UnbanChatSenderChat.Source§fn set_chat_permissions<C>(
&self,
chat_id: C,
permissions: ChatPermissions,
) -> <Throttle<B> as Requester>::SetChatPermissions ⓘ
fn set_chat_permissions<C>( &self, chat_id: C, permissions: ChatPermissions, ) -> <Throttle<B> as Requester>::SetChatPermissions ⓘ
SetChatPermissions.Source§fn export_chat_invite_link<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::ExportChatInviteLink ⓘ
fn export_chat_invite_link<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::ExportChatInviteLink ⓘ
ExportChatInviteLink.Source§fn create_chat_invite_link<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::CreateChatInviteLink ⓘ
fn create_chat_invite_link<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::CreateChatInviteLink ⓘ
CreateChatInviteLink.Source§fn edit_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I,
) -> <Throttle<B> as Requester>::EditChatInviteLink ⓘ
fn edit_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> <Throttle<B> as Requester>::EditChatInviteLink ⓘ
EditChatInviteLink.Source§fn create_chat_subscription_invite_link<C>(
&self,
chat_id: C,
subscription_period: Seconds,
subscription_price: u32,
) -> <Throttle<B> as Requester>::CreateChatSubscriptionInviteLink ⓘ
fn create_chat_subscription_invite_link<C>( &self, chat_id: C, subscription_period: Seconds, subscription_price: u32, ) -> <Throttle<B> as Requester>::CreateChatSubscriptionInviteLink ⓘ
CreateChatSubscriptionInviteLink.Source§fn edit_chat_subscription_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I,
) -> <Throttle<B> as Requester>::EditChatSubscriptionInviteLink ⓘ
fn edit_chat_subscription_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> <Throttle<B> as Requester>::EditChatSubscriptionInviteLink ⓘ
EditChatSubscriptionInviteLink.Source§fn revoke_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I,
) -> <Throttle<B> as Requester>::RevokeChatInviteLink ⓘ
fn revoke_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> <Throttle<B> as Requester>::RevokeChatInviteLink ⓘ
RevokeChatInviteLink.Source§fn set_chat_photo<C>(
&self,
chat_id: C,
photo: InputFile,
) -> <Throttle<B> as Requester>::SetChatPhoto ⓘ
fn set_chat_photo<C>( &self, chat_id: C, photo: InputFile, ) -> <Throttle<B> as Requester>::SetChatPhoto ⓘ
SetChatPhoto.Source§fn delete_chat_photo<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::DeleteChatPhoto ⓘ
fn delete_chat_photo<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::DeleteChatPhoto ⓘ
DeleteChatPhoto.Source§fn set_chat_title<C, T>(
&self,
chat_id: C,
title: T,
) -> <Throttle<B> as Requester>::SetChatTitle ⓘ
fn set_chat_title<C, T>( &self, chat_id: C, title: T, ) -> <Throttle<B> as Requester>::SetChatTitle ⓘ
SetChatTitle.Source§fn set_chat_description<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::SetChatDescription ⓘ
fn set_chat_description<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::SetChatDescription ⓘ
SetChatDescription.Source§fn pin_chat_message<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> <Throttle<B> as Requester>::PinChatMessage ⓘ
fn pin_chat_message<C>( &self, chat_id: C, message_id: MessageId, ) -> <Throttle<B> as Requester>::PinChatMessage ⓘ
PinChatMessage.Source§fn unpin_chat_message<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::UnpinChatMessage ⓘ
fn unpin_chat_message<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::UnpinChatMessage ⓘ
UnpinChatMessage.Source§fn unpin_all_chat_messages<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::UnpinAllChatMessages ⓘ
fn unpin_all_chat_messages<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::UnpinAllChatMessages ⓘ
UnpinAllChatMessages.Source§fn leave_chat<C>(&self, chat_id: C) -> <Throttle<B> as Requester>::LeaveChat ⓘ
fn leave_chat<C>(&self, chat_id: C) -> <Throttle<B> as Requester>::LeaveChat ⓘ
LeaveChat.Source§fn get_chat<C>(&self, chat_id: C) -> <Throttle<B> as Requester>::GetChat ⓘ
fn get_chat<C>(&self, chat_id: C) -> <Throttle<B> as Requester>::GetChat ⓘ
GetChat.Source§fn get_chat_administrators<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::GetChatAdministrators ⓘ
fn get_chat_administrators<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::GetChatAdministrators ⓘ
GetChatAdministrators.Source§fn get_chat_members_count<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::GetChatMembersCount ⓘ
fn get_chat_members_count<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::GetChatMembersCount ⓘ
GetChatMembersCount.Source§fn get_chat_member_count<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::GetChatMemberCount ⓘ
fn get_chat_member_count<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::GetChatMemberCount ⓘ
GetChatMemberCount.Source§fn get_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> <Throttle<B> as Requester>::GetChatMember ⓘ
fn get_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> <Throttle<B> as Requester>::GetChatMember ⓘ
GetChatMember.Source§fn set_chat_sticker_set<C, S>(
&self,
chat_id: C,
sticker_set_name: S,
) -> <Throttle<B> as Requester>::SetChatStickerSet ⓘ
fn set_chat_sticker_set<C, S>( &self, chat_id: C, sticker_set_name: S, ) -> <Throttle<B> as Requester>::SetChatStickerSet ⓘ
SetChatStickerSet.Source§fn delete_chat_sticker_set<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::DeleteChatStickerSet ⓘ
fn delete_chat_sticker_set<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::DeleteChatStickerSet ⓘ
DeleteChatStickerSet.Source§fn get_forum_topic_icon_stickers(
&self,
) -> <Throttle<B> as Requester>::GetForumTopicIconStickers ⓘ
fn get_forum_topic_icon_stickers( &self, ) -> <Throttle<B> as Requester>::GetForumTopicIconStickers ⓘ
GetForumTopicIconStickers.Source§fn create_forum_topic<C, N>(
&self,
chat_id: C,
name: N,
) -> <Throttle<B> as Requester>::CreateForumTopic ⓘ
fn create_forum_topic<C, N>( &self, chat_id: C, name: N, ) -> <Throttle<B> as Requester>::CreateForumTopic ⓘ
CreateForumTopic.Source§fn edit_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> <Throttle<B> as Requester>::EditForumTopic ⓘ
fn edit_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> <Throttle<B> as Requester>::EditForumTopic ⓘ
EditForumTopic.Source§fn close_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> <Throttle<B> as Requester>::CloseForumTopic ⓘ
fn close_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> <Throttle<B> as Requester>::CloseForumTopic ⓘ
CloseForumTopic.Source§fn reopen_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> <Throttle<B> as Requester>::ReopenForumTopic ⓘ
fn reopen_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> <Throttle<B> as Requester>::ReopenForumTopic ⓘ
ReopenForumTopic.Source§fn delete_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> <Throttle<B> as Requester>::DeleteForumTopic ⓘ
fn delete_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> <Throttle<B> as Requester>::DeleteForumTopic ⓘ
DeleteForumTopic.Source§fn unpin_all_forum_topic_messages<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> <Throttle<B> as Requester>::UnpinAllForumTopicMessages ⓘ
fn unpin_all_forum_topic_messages<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> <Throttle<B> as Requester>::UnpinAllForumTopicMessages ⓘ
UnpinAllForumTopicMessages.Source§fn edit_general_forum_topic<C, N>(
&self,
chat_id: C,
name: N,
) -> <Throttle<B> as Requester>::EditGeneralForumTopic ⓘ
fn edit_general_forum_topic<C, N>( &self, chat_id: C, name: N, ) -> <Throttle<B> as Requester>::EditGeneralForumTopic ⓘ
EditGeneralForumTopic.Source§fn close_general_forum_topic<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::CloseGeneralForumTopic ⓘ
fn close_general_forum_topic<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::CloseGeneralForumTopic ⓘ
CloseGeneralForumTopic.Source§fn reopen_general_forum_topic<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::ReopenGeneralForumTopic ⓘ
fn reopen_general_forum_topic<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::ReopenGeneralForumTopic ⓘ
ReopenGeneralForumTopic.Source§fn hide_general_forum_topic<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::HideGeneralForumTopic ⓘ
fn hide_general_forum_topic<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::HideGeneralForumTopic ⓘ
HideGeneralForumTopic.Source§fn unhide_general_forum_topic<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::UnhideGeneralForumTopic ⓘ
fn unhide_general_forum_topic<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::UnhideGeneralForumTopic ⓘ
UnhideGeneralForumTopic.Source§fn unpin_all_general_forum_topic_messages<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::UnpinAllGeneralForumTopicMessages ⓘ
fn unpin_all_general_forum_topic_messages<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::UnpinAllGeneralForumTopicMessages ⓘ
UnpinAllGeneralForumTopicMessages.Source§fn answer_callback_query(
&self,
callback_query_id: CallbackQueryId,
) -> <Throttle<B> as Requester>::AnswerCallbackQuery ⓘ
fn answer_callback_query( &self, callback_query_id: CallbackQueryId, ) -> <Throttle<B> as Requester>::AnswerCallbackQuery ⓘ
AnswerCallbackQuery.Source§fn get_user_chat_boosts<C>(
&self,
chat_id: C,
user_id: UserId,
) -> <Throttle<B> as Requester>::GetUserChatBoosts ⓘ
fn get_user_chat_boosts<C>( &self, chat_id: C, user_id: UserId, ) -> <Throttle<B> as Requester>::GetUserChatBoosts ⓘ
GetUserChatBoosts.Source§fn set_my_commands<C>(
&self,
commands: C,
) -> <Throttle<B> as Requester>::SetMyCommands ⓘwhere
C: IntoIterator<Item = BotCommand>,
fn set_my_commands<C>(
&self,
commands: C,
) -> <Throttle<B> as Requester>::SetMyCommands ⓘwhere
C: IntoIterator<Item = BotCommand>,
SetMyCommands.Source§fn get_business_connection(
&self,
business_connection_id: BusinessConnectionId,
) -> <Throttle<B> as Requester>::GetBusinessConnection ⓘ
fn get_business_connection( &self, business_connection_id: BusinessConnectionId, ) -> <Throttle<B> as Requester>::GetBusinessConnection ⓘ
GetBusinessConnection.Source§fn get_my_commands(&self) -> <Throttle<B> as Requester>::GetMyCommands ⓘ
fn get_my_commands(&self) -> <Throttle<B> as Requester>::GetMyCommands ⓘ
GetMyCommands.Source§fn set_my_name(&self) -> <Throttle<B> as Requester>::SetMyName ⓘ
fn set_my_name(&self) -> <Throttle<B> as Requester>::SetMyName ⓘ
SetMyName.Source§fn get_my_name(&self) -> <Throttle<B> as Requester>::GetMyName ⓘ
fn get_my_name(&self) -> <Throttle<B> as Requester>::GetMyName ⓘ
GetMyName.Source§fn set_my_description(&self) -> <Throttle<B> as Requester>::SetMyDescription ⓘ
fn set_my_description(&self) -> <Throttle<B> as Requester>::SetMyDescription ⓘ
SetMyDescription.Source§fn get_my_description(&self) -> <Throttle<B> as Requester>::GetMyDescription ⓘ
fn get_my_description(&self) -> <Throttle<B> as Requester>::GetMyDescription ⓘ
GetMyDescription.Source§fn set_my_short_description(
&self,
) -> <Throttle<B> as Requester>::SetMyShortDescription ⓘ
fn set_my_short_description( &self, ) -> <Throttle<B> as Requester>::SetMyShortDescription ⓘ
SetMyShortDescription.Source§fn get_my_short_description(
&self,
) -> <Throttle<B> as Requester>::GetMyShortDescription ⓘ
fn get_my_short_description( &self, ) -> <Throttle<B> as Requester>::GetMyShortDescription ⓘ
GetMyShortDescription.Source§fn set_my_profile_photo(
&self,
photo: InputProfilePhoto,
) -> <Throttle<B> as Requester>::SetMyProfilePhoto ⓘ
fn set_my_profile_photo( &self, photo: InputProfilePhoto, ) -> <Throttle<B> as Requester>::SetMyProfilePhoto ⓘ
SetMyProfilePhoto.Source§fn remove_my_profile_photo(
&self,
) -> <Throttle<B> as Requester>::RemoveMyProfilePhoto ⓘ
fn remove_my_profile_photo( &self, ) -> <Throttle<B> as Requester>::RemoveMyProfilePhoto ⓘ
RemoveMyProfilePhoto.Source§fn send_live_photo<C>(
&self,
chat_id: C,
live_photo: InputFile,
photo: InputFile,
) -> <Throttle<B> as Requester>::SendLivePhoto ⓘ
fn send_live_photo<C>( &self, chat_id: C, live_photo: InputFile, photo: InputFile, ) -> <Throttle<B> as Requester>::SendLivePhoto ⓘ
SendLivePhoto.Source§fn get_user_personal_chat_messages(
&self,
user_id: UserId,
limit: u8,
) -> <Throttle<B> as Requester>::GetUserPersonalChatMessages ⓘ
fn get_user_personal_chat_messages( &self, user_id: UserId, limit: u8, ) -> <Throttle<B> as Requester>::GetUserPersonalChatMessages ⓘ
GetUserPersonalChatMessages.Source§fn answer_guest_query(
&self,
guest_query_id: GuestQueryId,
result: InlineQueryResult,
) -> <Throttle<B> as Requester>::AnswerGuestQuery ⓘ
fn answer_guest_query( &self, guest_query_id: GuestQueryId, result: InlineQueryResult, ) -> <Throttle<B> as Requester>::AnswerGuestQuery ⓘ
AnswerGuestQuery.Source§fn get_managed_bot_access_settings(
&self,
user_id: UserId,
) -> <Throttle<B> as Requester>::GetManagedBotAccessSettings ⓘ
fn get_managed_bot_access_settings( &self, user_id: UserId, ) -> <Throttle<B> as Requester>::GetManagedBotAccessSettings ⓘ
GetManagedBotAccessSettings.Source§fn set_managed_bot_access_settings(
&self,
user_id: UserId,
is_access_restricted: bool,
) -> <Throttle<B> as Requester>::SetManagedBotAccessSettings ⓘ
fn set_managed_bot_access_settings( &self, user_id: UserId, is_access_restricted: bool, ) -> <Throttle<B> as Requester>::SetManagedBotAccessSettings ⓘ
SetManagedBotAccessSettings.Source§fn delete_message_reaction<C>(
&self,
chat_id: C,
message_id: i32,
) -> <Throttle<B> as Requester>::DeleteMessageReaction ⓘ
fn delete_message_reaction<C>( &self, chat_id: C, message_id: i32, ) -> <Throttle<B> as Requester>::DeleteMessageReaction ⓘ
DeleteMessageReaction.Source§fn delete_all_message_reactions<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::DeleteAllMessageReactions ⓘ
fn delete_all_message_reactions<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::DeleteAllMessageReactions ⓘ
DeleteAllMessageReactions.Source§fn get_managed_bot_token(
&self,
user_id: UserId,
) -> <Throttle<B> as Requester>::GetManagedBotToken ⓘ
fn get_managed_bot_token( &self, user_id: UserId, ) -> <Throttle<B> as Requester>::GetManagedBotToken ⓘ
GetManagedBotToken.Source§fn replace_managed_bot_token(
&self,
user_id: UserId,
) -> <Throttle<B> as Requester>::ReplaceManagedBotToken ⓘ
fn replace_managed_bot_token( &self, user_id: UserId, ) -> <Throttle<B> as Requester>::ReplaceManagedBotToken ⓘ
ReplaceManagedBotToken.SavePreparedKeyboardButton.SetChatMenuButton.GetChatMenuButton.Source§fn set_my_default_administrator_rights(
&self,
) -> <Throttle<B> as Requester>::SetMyDefaultAdministratorRights ⓘ
fn set_my_default_administrator_rights( &self, ) -> <Throttle<B> as Requester>::SetMyDefaultAdministratorRights ⓘ
SetMyDefaultAdministratorRights.Source§fn get_my_default_administrator_rights(
&self,
) -> <Throttle<B> as Requester>::GetMyDefaultAdministratorRights ⓘ
fn get_my_default_administrator_rights( &self, ) -> <Throttle<B> as Requester>::GetMyDefaultAdministratorRights ⓘ
GetMyDefaultAdministratorRights.Source§fn delete_my_commands(&self) -> <Throttle<B> as Requester>::DeleteMyCommands ⓘ
fn delete_my_commands(&self) -> <Throttle<B> as Requester>::DeleteMyCommands ⓘ
DeleteMyCommands.Source§fn answer_inline_query<R>(
&self,
inline_query_id: InlineQueryId,
results: R,
) -> <Throttle<B> as Requester>::AnswerInlineQuery ⓘwhere
R: IntoIterator<Item = InlineQueryResult>,
fn answer_inline_query<R>(
&self,
inline_query_id: InlineQueryId,
results: R,
) -> <Throttle<B> as Requester>::AnswerInlineQuery ⓘwhere
R: IntoIterator<Item = InlineQueryResult>,
AnswerInlineQuery.Source§fn answer_web_app_query<W>(
&self,
web_app_query_id: W,
result: InlineQueryResult,
) -> <Throttle<B> as Requester>::AnswerWebAppQuery ⓘ
fn answer_web_app_query<W>( &self, web_app_query_id: W, result: InlineQueryResult, ) -> <Throttle<B> as Requester>::AnswerWebAppQuery ⓘ
AnswerWebAppQuery.Source§fn save_prepared_inline_message(
&self,
user_id: UserId,
result: InlineQueryResult,
) -> <Throttle<B> as Requester>::SavePreparedInlineMessage ⓘ
fn save_prepared_inline_message( &self, user_id: UserId, result: InlineQueryResult, ) -> <Throttle<B> as Requester>::SavePreparedInlineMessage ⓘ
SavePreparedInlineMessage.Source§fn edit_message_text<C, T>(
&self,
chat_id: C,
message_id: MessageId,
text: T,
) -> <Throttle<B> as Requester>::EditMessageText ⓘ
fn edit_message_text<C, T>( &self, chat_id: C, message_id: MessageId, text: T, ) -> <Throttle<B> as Requester>::EditMessageText ⓘ
EditMessageText.Source§fn edit_message_text_inline<I, T>(
&self,
inline_message_id: I,
text: T,
) -> <Throttle<B> as Requester>::EditMessageTextInline ⓘ
fn edit_message_text_inline<I, T>( &self, inline_message_id: I, text: T, ) -> <Throttle<B> as Requester>::EditMessageTextInline ⓘ
EditMessageTextInline.Source§fn edit_message_caption<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> <Throttle<B> as Requester>::EditMessageCaption ⓘ
fn edit_message_caption<C>( &self, chat_id: C, message_id: MessageId, ) -> <Throttle<B> as Requester>::EditMessageCaption ⓘ
EditMessageCaption.Source§fn edit_message_caption_inline<I>(
&self,
inline_message_id: I,
) -> <Throttle<B> as Requester>::EditMessageCaptionInline ⓘ
fn edit_message_caption_inline<I>( &self, inline_message_id: I, ) -> <Throttle<B> as Requester>::EditMessageCaptionInline ⓘ
EditMessageCaptionInline.Source§fn edit_message_media<C>(
&self,
chat_id: C,
message_id: MessageId,
media: InputMedia,
) -> <Throttle<B> as Requester>::EditMessageMedia ⓘ
fn edit_message_media<C>( &self, chat_id: C, message_id: MessageId, media: InputMedia, ) -> <Throttle<B> as Requester>::EditMessageMedia ⓘ
EditMessageMedia.Source§fn edit_message_media_inline<I>(
&self,
inline_message_id: I,
media: InputMedia,
) -> <Throttle<B> as Requester>::EditMessageMediaInline ⓘ
fn edit_message_media_inline<I>( &self, inline_message_id: I, media: InputMedia, ) -> <Throttle<B> as Requester>::EditMessageMediaInline ⓘ
EditMessageMediaInline.Source§fn edit_message_reply_markup<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> <Throttle<B> as Requester>::EditMessageReplyMarkup ⓘ
fn edit_message_reply_markup<C>( &self, chat_id: C, message_id: MessageId, ) -> <Throttle<B> as Requester>::EditMessageReplyMarkup ⓘ
EditMessageReplyMarkup.Source§fn edit_message_reply_markup_inline<I>(
&self,
inline_message_id: I,
) -> <Throttle<B> as Requester>::EditMessageReplyMarkupInline ⓘ
fn edit_message_reply_markup_inline<I>( &self, inline_message_id: I, ) -> <Throttle<B> as Requester>::EditMessageReplyMarkupInline ⓘ
EditMessageReplyMarkupInline.Source§fn stop_poll<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> <Throttle<B> as Requester>::StopPoll ⓘ
fn stop_poll<C>( &self, chat_id: C, message_id: MessageId, ) -> <Throttle<B> as Requester>::StopPoll ⓘ
StopPoll.Source§fn approve_suggested_post<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> <Throttle<B> as Requester>::ApproveSuggestedPost ⓘ
fn approve_suggested_post<C>( &self, chat_id: C, message_id: MessageId, ) -> <Throttle<B> as Requester>::ApproveSuggestedPost ⓘ
ApproveSuggestedPost.Source§fn decline_suggested_post<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> <Throttle<B> as Requester>::DeclineSuggestedPost ⓘ
fn decline_suggested_post<C>( &self, chat_id: C, message_id: MessageId, ) -> <Throttle<B> as Requester>::DeclineSuggestedPost ⓘ
DeclineSuggestedPost.Source§fn delete_message<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> <Throttle<B> as Requester>::DeleteMessage ⓘ
fn delete_message<C>( &self, chat_id: C, message_id: MessageId, ) -> <Throttle<B> as Requester>::DeleteMessage ⓘ
DeleteMessage.Source§fn delete_messages<C, M>(
&self,
chat_id: C,
message_ids: M,
) -> <Throttle<B> as Requester>::DeleteMessages ⓘ
fn delete_messages<C, M>( &self, chat_id: C, message_ids: M, ) -> <Throttle<B> as Requester>::DeleteMessages ⓘ
DeleteMessages.Source§fn get_sticker_set<N>(
&self,
name: N,
) -> <Throttle<B> as Requester>::GetStickerSet ⓘ
fn get_sticker_set<N>( &self, name: N, ) -> <Throttle<B> as Requester>::GetStickerSet ⓘ
GetStickerSet.Source§fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C,
) -> <Throttle<B> as Requester>::GetCustomEmojiStickers ⓘwhere
C: IntoIterator<Item = CustomEmojiId>,
fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C,
) -> <Throttle<B> as Requester>::GetCustomEmojiStickers ⓘwhere
C: IntoIterator<Item = CustomEmojiId>,
GetCustomEmojiStickers.Source§fn upload_sticker_file(
&self,
user_id: UserId,
sticker: InputFile,
sticker_format: StickerFormat,
) -> <Throttle<B> as Requester>::UploadStickerFile ⓘ
fn upload_sticker_file( &self, user_id: UserId, sticker: InputFile, sticker_format: StickerFormat, ) -> <Throttle<B> as Requester>::UploadStickerFile ⓘ
UploadStickerFile.Source§fn create_new_sticker_set<N, T, S>(
&self,
user_id: UserId,
name: N,
title: T,
stickers: S,
) -> <Throttle<B> as Requester>::CreateNewStickerSet ⓘ
fn create_new_sticker_set<N, T, S>( &self, user_id: UserId, name: N, title: T, stickers: S, ) -> <Throttle<B> as Requester>::CreateNewStickerSet ⓘ
CreateNewStickerSet.Source§fn add_sticker_to_set<N>(
&self,
user_id: UserId,
name: N,
sticker: InputSticker,
) -> <Throttle<B> as Requester>::AddStickerToSet ⓘ
fn add_sticker_to_set<N>( &self, user_id: UserId, name: N, sticker: InputSticker, ) -> <Throttle<B> as Requester>::AddStickerToSet ⓘ
AddStickerToSet.Source§fn set_sticker_position_in_set<S>(
&self,
sticker: S,
position: u32,
) -> <Throttle<B> as Requester>::SetStickerPositionInSet ⓘ
fn set_sticker_position_in_set<S>( &self, sticker: S, position: u32, ) -> <Throttle<B> as Requester>::SetStickerPositionInSet ⓘ
SetStickerPositionInSet.Source§fn delete_sticker_from_set<S>(
&self,
sticker: S,
) -> <Throttle<B> as Requester>::DeleteStickerFromSet ⓘ
fn delete_sticker_from_set<S>( &self, sticker: S, ) -> <Throttle<B> as Requester>::DeleteStickerFromSet ⓘ
DeleteStickerFromSet.Source§fn replace_sticker_in_set<N, O>(
&self,
user_id: UserId,
name: N,
old_sticker: O,
sticker: InputSticker,
) -> <Throttle<B> as Requester>::ReplaceStickerInSet ⓘ
fn replace_sticker_in_set<N, O>( &self, user_id: UserId, name: N, old_sticker: O, sticker: InputSticker, ) -> <Throttle<B> as Requester>::ReplaceStickerInSet ⓘ
ReplaceStickerInSet.Source§fn set_sticker_set_thumbnail<N>(
&self,
name: N,
user_id: UserId,
format: StickerFormat,
) -> <Throttle<B> as Requester>::SetStickerSetThumbnail ⓘ
fn set_sticker_set_thumbnail<N>( &self, name: N, user_id: UserId, format: StickerFormat, ) -> <Throttle<B> as Requester>::SetStickerSetThumbnail ⓘ
SetStickerSetThumbnail.Source§fn set_custom_emoji_sticker_set_thumbnail<N>(
&self,
name: N,
) -> <Throttle<B> as Requester>::SetCustomEmojiStickerSetThumbnail ⓘ
fn set_custom_emoji_sticker_set_thumbnail<N>( &self, name: N, ) -> <Throttle<B> as Requester>::SetCustomEmojiStickerSetThumbnail ⓘ
SetCustomEmojiStickerSetThumbnail.Source§fn set_sticker_set_title<N, T>(
&self,
name: N,
title: T,
) -> <Throttle<B> as Requester>::SetStickerSetTitle ⓘ
fn set_sticker_set_title<N, T>( &self, name: N, title: T, ) -> <Throttle<B> as Requester>::SetStickerSetTitle ⓘ
SetStickerSetTitle.Source§fn delete_sticker_set<N>(
&self,
name: N,
) -> <Throttle<B> as Requester>::DeleteStickerSet ⓘ
fn delete_sticker_set<N>( &self, name: N, ) -> <Throttle<B> as Requester>::DeleteStickerSet ⓘ
DeleteStickerSet.Source§fn set_sticker_emoji_list<S, E>(
&self,
sticker: S,
emoji_list: E,
) -> <Throttle<B> as Requester>::SetStickerEmojiList ⓘ
fn set_sticker_emoji_list<S, E>( &self, sticker: S, emoji_list: E, ) -> <Throttle<B> as Requester>::SetStickerEmojiList ⓘ
SetStickerEmojiList.Source§fn set_sticker_keywords<S>(
&self,
sticker: S,
) -> <Throttle<B> as Requester>::SetStickerKeywords ⓘ
fn set_sticker_keywords<S>( &self, sticker: S, ) -> <Throttle<B> as Requester>::SetStickerKeywords ⓘ
SetStickerKeywords.Source§fn set_sticker_mask_position<S>(
&self,
sticker: S,
) -> <Throttle<B> as Requester>::SetStickerMaskPosition ⓘ
fn set_sticker_mask_position<S>( &self, sticker: S, ) -> <Throttle<B> as Requester>::SetStickerMaskPosition ⓘ
SetStickerMaskPosition.Source§fn get_available_gifts(&self) -> <Throttle<B> as Requester>::GetAvailableGifts ⓘ
fn get_available_gifts(&self) -> <Throttle<B> as Requester>::GetAvailableGifts ⓘ
GetAvailableGifts.Source§fn send_gift(
&self,
user_id: UserId,
gift_id: GiftId,
) -> <Throttle<B> as Requester>::SendGift ⓘ
fn send_gift( &self, user_id: UserId, gift_id: GiftId, ) -> <Throttle<B> as Requester>::SendGift ⓘ
SendGift.Source§fn send_gift_chat<C>(
&self,
chat_id: C,
gift_id: GiftId,
) -> <Throttle<B> as Requester>::SendGiftChat ⓘ
fn send_gift_chat<C>( &self, chat_id: C, gift_id: GiftId, ) -> <Throttle<B> as Requester>::SendGiftChat ⓘ
SendGiftChat.GiftPremiumSubscription.Source§fn verify_user(&self, user_id: UserId) -> <Throttle<B> as Requester>::VerifyUser ⓘ
fn verify_user(&self, user_id: UserId) -> <Throttle<B> as Requester>::VerifyUser ⓘ
VerifyUser.Source§fn verify_chat<C>(&self, chat_id: C) -> <Throttle<B> as Requester>::VerifyChat ⓘ
fn verify_chat<C>(&self, chat_id: C) -> <Throttle<B> as Requester>::VerifyChat ⓘ
VerifyChat.Source§fn remove_user_verification(
&self,
user_id: UserId,
) -> <Throttle<B> as Requester>::RemoveUserVerification ⓘ
fn remove_user_verification( &self, user_id: UserId, ) -> <Throttle<B> as Requester>::RemoveUserVerification ⓘ
RemoveUserVerification.Source§fn remove_chat_verification<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::RemoveChatVerification ⓘ
fn remove_chat_verification<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::RemoveChatVerification ⓘ
RemoveChatVerification.Source§fn read_business_message<C>(
&self,
business_connection_id: BusinessConnectionId,
chat_id: C,
message_id: MessageId,
) -> <Throttle<B> as Requester>::ReadBusinessMessage ⓘ
fn read_business_message<C>( &self, business_connection_id: BusinessConnectionId, chat_id: C, message_id: MessageId, ) -> <Throttle<B> as Requester>::ReadBusinessMessage ⓘ
ReadBusinessMessage.Source§fn delete_business_messages<M>(
&self,
business_connection_id: BusinessConnectionId,
message_ids: M,
) -> <Throttle<B> as Requester>::DeleteBusinessMessages ⓘwhere
M: IntoIterator<Item = MessageId>,
fn delete_business_messages<M>(
&self,
business_connection_id: BusinessConnectionId,
message_ids: M,
) -> <Throttle<B> as Requester>::DeleteBusinessMessages ⓘwhere
M: IntoIterator<Item = MessageId>,
DeleteBusinessMessages.Source§fn set_business_account_name<F>(
&self,
business_connection_id: BusinessConnectionId,
first_name: F,
) -> <Throttle<B> as Requester>::SetBusinessAccountName ⓘ
fn set_business_account_name<F>( &self, business_connection_id: BusinessConnectionId, first_name: F, ) -> <Throttle<B> as Requester>::SetBusinessAccountName ⓘ
SetBusinessAccountName.Source§fn set_business_account_username(
&self,
business_connection_id: BusinessConnectionId,
) -> <Throttle<B> as Requester>::SetBusinessAccountUsername ⓘ
fn set_business_account_username( &self, business_connection_id: BusinessConnectionId, ) -> <Throttle<B> as Requester>::SetBusinessAccountUsername ⓘ
SetBusinessAccountUsername.Source§fn set_business_account_bio(
&self,
business_connection_id: BusinessConnectionId,
) -> <Throttle<B> as Requester>::SetBusinessAccountBio ⓘ
fn set_business_account_bio( &self, business_connection_id: BusinessConnectionId, ) -> <Throttle<B> as Requester>::SetBusinessAccountBio ⓘ
SetBusinessAccountBio.Source§fn set_business_account_profile_photo(
&self,
business_connection_id: BusinessConnectionId,
photo: InputProfilePhoto,
) -> <Throttle<B> as Requester>::SetBusinessAccountProfilePhoto ⓘ
fn set_business_account_profile_photo( &self, business_connection_id: BusinessConnectionId, photo: InputProfilePhoto, ) -> <Throttle<B> as Requester>::SetBusinessAccountProfilePhoto ⓘ
SetBusinessAccountProfilePhoto.Source§fn remove_business_account_profile_photo(
&self,
business_connection_id: BusinessConnectionId,
) -> <Throttle<B> as Requester>::RemoveBusinessAccountProfilePhoto ⓘ
fn remove_business_account_profile_photo( &self, business_connection_id: BusinessConnectionId, ) -> <Throttle<B> as Requester>::RemoveBusinessAccountProfilePhoto ⓘ
RemoveBusinessAccountProfilePhoto.Source§fn set_business_account_gift_settings(
&self,
business_connection_id: BusinessConnectionId,
show_gift_button: bool,
accepted_gift_types: AcceptedGiftTypes,
) -> <Throttle<B> as Requester>::SetBusinessAccountGiftSettings ⓘ
fn set_business_account_gift_settings( &self, business_connection_id: BusinessConnectionId, show_gift_button: bool, accepted_gift_types: AcceptedGiftTypes, ) -> <Throttle<B> as Requester>::SetBusinessAccountGiftSettings ⓘ
SetBusinessAccountGiftSettings.Source§fn get_business_account_star_balance(
&self,
business_connection_id: BusinessConnectionId,
) -> <Throttle<B> as Requester>::GetBusinessAccountStarBalance ⓘ
fn get_business_account_star_balance( &self, business_connection_id: BusinessConnectionId, ) -> <Throttle<B> as Requester>::GetBusinessAccountStarBalance ⓘ
GetBusinessAccountStarBalance.Source§fn transfer_business_account_stars(
&self,
business_connection_id: BusinessConnectionId,
star_count: u32,
) -> <Throttle<B> as Requester>::TransferBusinessAccountStars ⓘ
fn transfer_business_account_stars( &self, business_connection_id: BusinessConnectionId, star_count: u32, ) -> <Throttle<B> as Requester>::TransferBusinessAccountStars ⓘ
TransferBusinessAccountStars.Source§fn get_business_account_gifts(
&self,
business_connection_id: BusinessConnectionId,
) -> <Throttle<B> as Requester>::GetBusinessAccountGifts ⓘ
fn get_business_account_gifts( &self, business_connection_id: BusinessConnectionId, ) -> <Throttle<B> as Requester>::GetBusinessAccountGifts ⓘ
GetBusinessAccountGifts.Source§fn get_user_gifts(
&self,
user_id: UserId,
) -> <Throttle<B> as Requester>::GetUserGifts ⓘ
fn get_user_gifts( &self, user_id: UserId, ) -> <Throttle<B> as Requester>::GetUserGifts ⓘ
GetUserGifts.Source§fn get_chat_gifts<C>(
&self,
chat_id: C,
) -> <Throttle<B> as Requester>::GetChatGifts ⓘ
fn get_chat_gifts<C>( &self, chat_id: C, ) -> <Throttle<B> as Requester>::GetChatGifts ⓘ
GetChatGifts.Source§fn convert_gift_to_stars(
&self,
business_connection_id: BusinessConnectionId,
owned_gift_id: OwnedGiftId,
) -> <Throttle<B> as Requester>::ConvertGiftToStars ⓘ
fn convert_gift_to_stars( &self, business_connection_id: BusinessConnectionId, owned_gift_id: OwnedGiftId, ) -> <Throttle<B> as Requester>::ConvertGiftToStars ⓘ
ConvertGiftToStars.Source§fn upgrade_gift(
&self,
business_connection_id: BusinessConnectionId,
owned_gift_id: OwnedGiftId,
) -> <Throttle<B> as Requester>::UpgradeGift ⓘ
fn upgrade_gift( &self, business_connection_id: BusinessConnectionId, owned_gift_id: OwnedGiftId, ) -> <Throttle<B> as Requester>::UpgradeGift ⓘ
UpgradeGift.Source§fn transfer_gift<N>(
&self,
business_connection_id: BusinessConnectionId,
owned_gift_id: OwnedGiftId,
new_owner_chat_id: N,
) -> <Throttle<B> as Requester>::TransferGift ⓘ
fn transfer_gift<N>( &self, business_connection_id: BusinessConnectionId, owned_gift_id: OwnedGiftId, new_owner_chat_id: N, ) -> <Throttle<B> as Requester>::TransferGift ⓘ
TransferGift.Source§fn post_story(
&self,
business_connection_id: BusinessConnectionId,
content: InputStoryContent,
active_period: Seconds,
) -> <Throttle<B> as Requester>::PostStory ⓘ
fn post_story( &self, business_connection_id: BusinessConnectionId, content: InputStoryContent, active_period: Seconds, ) -> <Throttle<B> as Requester>::PostStory ⓘ
PostStory.Source§fn repost_story<F>(
&self,
business_connection_id: BusinessConnectionId,
from_chat_id: F,
from_story_id: StoryId,
active_period: Seconds,
) -> <Throttle<B> as Requester>::RepostStory ⓘ
fn repost_story<F>( &self, business_connection_id: BusinessConnectionId, from_chat_id: F, from_story_id: StoryId, active_period: Seconds, ) -> <Throttle<B> as Requester>::RepostStory ⓘ
RepostStory.Source§fn edit_story(
&self,
business_connection_id: BusinessConnectionId,
story_id: StoryId,
content: InputStoryContent,
) -> <Throttle<B> as Requester>::EditStory ⓘ
fn edit_story( &self, business_connection_id: BusinessConnectionId, story_id: StoryId, content: InputStoryContent, ) -> <Throttle<B> as Requester>::EditStory ⓘ
EditStory.Source§fn delete_story(
&self,
business_connection_id: BusinessConnectionId,
story_id: StoryId,
) -> <Throttle<B> as Requester>::DeleteStory ⓘ
fn delete_story( &self, business_connection_id: BusinessConnectionId, story_id: StoryId, ) -> <Throttle<B> as Requester>::DeleteStory ⓘ
DeleteStory.Source§fn answer_shipping_query(
&self,
shipping_query_id: ShippingQueryId,
ok: bool,
) -> <Throttle<B> as Requester>::AnswerShippingQuery ⓘ
fn answer_shipping_query( &self, shipping_query_id: ShippingQueryId, ok: bool, ) -> <Throttle<B> as Requester>::AnswerShippingQuery ⓘ
AnswerShippingQuery.Source§fn create_invoice_link<T, D, Pa, C, P>(
&self,
title: T,
description: D,
payload: Pa,
currency: C,
prices: P,
) -> <Throttle<B> as Requester>::CreateInvoiceLink ⓘwhere
T: Into<String>,
D: Into<String>,
Pa: Into<String>,
C: Into<String>,
P: IntoIterator<Item = LabeledPrice>,
fn create_invoice_link<T, D, Pa, C, P>(
&self,
title: T,
description: D,
payload: Pa,
currency: C,
prices: P,
) -> <Throttle<B> as Requester>::CreateInvoiceLink ⓘwhere
T: Into<String>,
D: Into<String>,
Pa: Into<String>,
C: Into<String>,
P: IntoIterator<Item = LabeledPrice>,
CreateInvoiceLink.Source§fn answer_pre_checkout_query(
&self,
pre_checkout_query_id: PreCheckoutQueryId,
ok: bool,
) -> <Throttle<B> as Requester>::AnswerPreCheckoutQuery ⓘ
fn answer_pre_checkout_query( &self, pre_checkout_query_id: PreCheckoutQueryId, ok: bool, ) -> <Throttle<B> as Requester>::AnswerPreCheckoutQuery ⓘ
AnswerPreCheckoutQuery.Source§fn get_my_star_balance(&self) -> <Throttle<B> as Requester>::GetMyStarBalance ⓘ
fn get_my_star_balance(&self) -> <Throttle<B> as Requester>::GetMyStarBalance ⓘ
GetMyStarBalance.Source§fn get_star_transactions(
&self,
) -> <Throttle<B> as Requester>::GetStarTransactions ⓘ
fn get_star_transactions( &self, ) -> <Throttle<B> as Requester>::GetStarTransactions ⓘ
GetStarTransactions.Source§fn refund_star_payment(
&self,
user_id: UserId,
telegram_payment_charge_id: TelegramTransactionId,
) -> <Throttle<B> as Requester>::RefundStarPayment ⓘ
fn refund_star_payment( &self, user_id: UserId, telegram_payment_charge_id: TelegramTransactionId, ) -> <Throttle<B> as Requester>::RefundStarPayment ⓘ
RefundStarPayment.Source§fn edit_user_star_subscription(
&self,
user_id: UserId,
telegram_payment_charge_id: TelegramTransactionId,
is_canceled: bool,
) -> <Throttle<B> as Requester>::EditUserStarSubscription ⓘ
fn edit_user_star_subscription( &self, user_id: UserId, telegram_payment_charge_id: TelegramTransactionId, is_canceled: bool, ) -> <Throttle<B> as Requester>::EditUserStarSubscription ⓘ
EditUserStarSubscription.Source§fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E,
) -> <Throttle<B> as Requester>::SetPassportDataErrors ⓘwhere
E: IntoIterator<Item = PassportElementError>,
fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E,
) -> <Throttle<B> as Requester>::SetPassportDataErrors ⓘwhere
E: IntoIterator<Item = PassportElementError>,
SetPassportDataErrors.Source§fn set_game_score(
&self,
user_id: UserId,
score: u64,
chat_id: u32,
message_id: MessageId,
) -> <Throttle<B> as Requester>::SetGameScore ⓘ
fn set_game_score( &self, user_id: UserId, score: u64, chat_id: u32, message_id: MessageId, ) -> <Throttle<B> as Requester>::SetGameScore ⓘ
SetGameScore.Source§fn set_game_score_inline<I>(
&self,
user_id: UserId,
score: u64,
inline_message_id: I,
) -> <Throttle<B> as Requester>::SetGameScoreInline ⓘ
fn set_game_score_inline<I>( &self, user_id: UserId, score: u64, inline_message_id: I, ) -> <Throttle<B> as Requester>::SetGameScoreInline ⓘ
SetGameScoreInline.Source§fn approve_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId,
) -> <Throttle<B> as Requester>::ApproveChatJoinRequest ⓘ
fn approve_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> <Throttle<B> as Requester>::ApproveChatJoinRequest ⓘ
ApproveChatJoinRequest.Source§fn decline_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId,
) -> <Throttle<B> as Requester>::DeclineChatJoinRequest ⓘ
fn decline_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> <Throttle<B> as Requester>::DeclineChatJoinRequest ⓘ
DeclineChatJoinRequest.Source§fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T,
) -> <Throttle<B> as Requester>::GetGameHighScores ⓘwhere
T: Into<TargetMessage>,
fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T,
) -> <Throttle<B> as Requester>::GetGameHighScores ⓘwhere
T: Into<TargetMessage>,
GetGameHighScores.Auto Trait Implementations§
impl<B> Freeze for Throttle<B>where
B: Freeze,
impl<B> RefUnwindSafe for Throttle<B>where
B: RefUnwindSafe,
impl<B> Send for Throttle<B>where
B: Send,
impl<B> Sync for Throttle<B>where
B: Sync,
impl<B> Unpin for Throttle<B>where
B: Unpin,
impl<B> UnsafeUnpin for Throttle<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for Throttle<B>where
B: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<R> BotMessagesExt for Rwhere
R: Requester,
impl<R> BotMessagesExt for Rwhere
R: Requester,
Source§fn forward<C>(
&self,
to_chat_id: C,
message: &Message,
) -> <R as Requester>::ForwardMessage
fn forward<C>( &self, to_chat_id: C, message: &Message, ) -> <R as Requester>::ForwardMessage
Bot::forward_message,
but can take in Message to forward it.Source§fn edit_live_location(
&self,
message: &Message,
latitude: f64,
longitude: f64,
) -> <R as Requester>::EditMessageLiveLocation
fn edit_live_location( &self, message: &Message, latitude: f64, longitude: f64, ) -> <R as Requester>::EditMessageLiveLocation
Bot::edit_message_live_location,
but can take in Message to edit it.Source§fn stop_live_location(
&self,
message: &Message,
) -> <R as Requester>::StopMessageLiveLocation
fn stop_live_location( &self, message: &Message, ) -> <R as Requester>::StopMessageLiveLocation
Bot::stop_message_live_location,
but can take in Message to stop the live location in it.Source§fn set_reaction(
&self,
message: &Message,
) -> <R as Requester>::SetMessageReaction
fn set_reaction( &self, message: &Message, ) -> <R as Requester>::SetMessageReaction
Bot::set_message_reaction,
but can take in Message to set a reaction on it.Source§fn pin(&self, message: &Message) -> <R as Requester>::PinChatMessage
fn pin(&self, message: &Message) -> <R as Requester>::PinChatMessage
Bot::pin_chat_message,
but can take in Message to pin it.Source§fn unpin(&self, message: &Message) -> <R as Requester>::UnpinChatMessage
fn unpin(&self, message: &Message) -> <R as Requester>::UnpinChatMessage
Bot::unpin_chat_message,
but can take in Message to unpin it.Source§fn edit_text<T>(
&self,
message: &Message,
text: T,
) -> <R as Requester>::EditMessageText
fn edit_text<T>( &self, message: &Message, text: T, ) -> <R as Requester>::EditMessageText
Bot::edit_message_text,
but can take in Message to edit it.Source§fn edit_caption(
&self,
message: &Message,
) -> <R as Requester>::EditMessageCaption
fn edit_caption( &self, message: &Message, ) -> <R as Requester>::EditMessageCaption
Bot::edit_message_caption,
but can take in Message to edit it.Source§fn edit_media(
&self,
message: &Message,
media: InputMedia,
) -> <R as Requester>::EditMessageMedia
fn edit_media( &self, message: &Message, media: InputMedia, ) -> <R as Requester>::EditMessageMedia
Bot::edit_message_media,
but can take in Message to edit it.Source§fn edit_reply_markup(
&self,
message: &Message,
) -> <R as Requester>::EditMessageReplyMarkup
fn edit_reply_markup( &self, message: &Message, ) -> <R as Requester>::EditMessageReplyMarkup
Bot::edit_message_reply_markup,
but can take in Message to edit it.Source§fn stop_poll_message(&self, message: &Message) -> <R as Requester>::StopPoll
fn stop_poll_message(&self, message: &Message) -> <R as Requester>::StopPoll
Bot::stop_poll,
but can take in Message to stop the poll in it.Source§fn delete(&self, message: &Message) -> <R as Requester>::DeleteMessage
fn delete(&self, message: &Message) -> <R as Requester>::DeleteMessage
Bot::delete_message,
but can take in Message to delete it.Source§fn copy<C>(
&self,
to_chat_id: C,
message: &Message,
) -> <R as Requester>::CopyMessage
fn copy<C>( &self, to_chat_id: C, message: &Message, ) -> <R as Requester>::CopyMessage
Bot::copy_message,
but can take in Message to copy it.fn iter_star_transactions(&self) -> impl Stream<Item = StarTransaction>
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> RequesterExt for Twhere
T: Requester,
impl<T> RequesterExt for Twhere
T: Requester,
Source§fn cache_me(self) -> CacheMe<Self> ⓘwhere
Self: Sized,
fn cache_me(self) -> CacheMe<Self> ⓘwhere
Self: Sized,
cache_me only.get_me caching ability, see CacheMe for more.Source§fn erase<'a>(self) -> ErasedRequester<'a, Self::Err> ⓘwhere
Self: 'a + Sized,
fn erase<'a>(self) -> ErasedRequester<'a, Self::Err> ⓘwhere
Self: 'a + Sized,
erased only.Source§fn trace(self, settings: Settings) -> Trace<Self> ⓘwhere
Self: Sized,
fn trace(self, settings: Settings) -> Trace<Self> ⓘwhere
Self: Sized,
trace_adaptor only.Trace for more.Source§fn throttle(self, limits: Limits) -> Throttle<Self> ⓘ
fn throttle(self, limits: Limits) -> Throttle<Self> ⓘ
throttle only.