Skip to main content

CacheMe

Struct CacheMe 

Source
pub struct CacheMe<B> { /* private fields */ }
Expand description

get_me cache.

Bot’s user is hardly ever changed, so sometimes it’s reasonable to cache response from get_me method.

Implementations§

Source§

impl<B> CacheMe<B>

Source

pub fn new(bot: B) -> CacheMe<B>

Available on crate feature cache_me only.

Creates new cache.

Note: it’s recommended to use RequesterExt::cache_me instead.

Source

pub fn inner(&self) -> &B

Available on crate feature cache_me only.

Allows to access inner bot

Source

pub fn into_inner(self) -> B

Available on crate feature cache_me only.

Unwraps inner bot

Source

pub fn clear(&mut self) -> Option<Me>

Available on crate feature cache_me only.

Clear cache.

Returns cached response from get_me, if it was cached.

Note: internally this uses Arc::make_mut so this will not clear cache of clones of self.

Trait Implementations§

Source§

impl<B> Clone for CacheMe<B>
where B: Clone,

Source§

fn clone(&self) -> CacheMe<B>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<B> Debug for CacheMe<B>
where B: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<B> Download for CacheMe<B>
where B: Download,

Source§

type Err<'dst> = <B as Download>::Err<'dst>

An error returned from download_file.
Source§

type Fut<'dst> = <B as Download>::Fut<'dst>

A future returned from download_file.
Source§

type StreamErr = <B as Download>::StreamErr

An error returned from download_file_stream.
Source§

type Stream = <B as Download>::Stream

A stream returned from download_file_stream.
Source§

fn download_file<'dst>( &self, path: &str, destination: &'dst mut (dyn AsyncWrite + Send + Unpin), ) -> <CacheMe<B> as Download>::Fut<'dst>

Download a file from Telegram into destination. Read more
Source§

fn download_file_stream(&self, path: &str) -> <CacheMe<B> as Download>::Stream

Download a file from Telegram as Stream. Read more
Source§

impl<B> Requester for CacheMe<B>
where B: Requester,

Source§

type Err = <B as Requester>::Err

Error type returned by all requests.
Source§

type GetMe = CachedMeRequest<<B as Requester>::GetMe>

Source§

type LogOut = <B as Requester>::LogOut

Source§

type Close = <B as Requester>::Close

Source§

type GetUpdates = <B as Requester>::GetUpdates

Source§

type SetWebhook = <B as Requester>::SetWebhook

Source§

type DeleteWebhook = <B as Requester>::DeleteWebhook

Source§

type GetWebhookInfo = <B as Requester>::GetWebhookInfo

Source§

type ForwardMessage = <B as Requester>::ForwardMessage

Source§

type ForwardMessages = <B as Requester>::ForwardMessages

Source§

type CopyMessage = <B as Requester>::CopyMessage

Source§

type CopyMessages = <B as Requester>::CopyMessages

Source§

type SendMessage = <B as Requester>::SendMessage

Source§

type SendMessageDraft = <B as Requester>::SendMessageDraft

Source§

type SendPhoto = <B as Requester>::SendPhoto

Source§

type SendAudio = <B as Requester>::SendAudio

Source§

type SendDocument = <B as Requester>::SendDocument

Source§

type SendVideo = <B as Requester>::SendVideo

Source§

type SendAnimation = <B as Requester>::SendAnimation

Source§

type SendVoice = <B as Requester>::SendVoice

Source§

type SendVideoNote = <B as Requester>::SendVideoNote

Source§

type SendPaidMedia = <B as Requester>::SendPaidMedia

Source§

type SendMediaGroup = <B as Requester>::SendMediaGroup

Source§

type SendLocation = <B as Requester>::SendLocation

Source§

type EditMessageLiveLocation = <B as Requester>::EditMessageLiveLocation

Source§

type EditMessageLiveLocationInline = <B as Requester>::EditMessageLiveLocationInline

Source§

type StopMessageLiveLocation = <B as Requester>::StopMessageLiveLocation

Source§

type StopMessageLiveLocationInline = <B as Requester>::StopMessageLiveLocationInline

Source§

type EditMessageChecklist = <B as Requester>::EditMessageChecklist

Source§

type SendVenue = <B as Requester>::SendVenue

Source§

type SendContact = <B as Requester>::SendContact

Source§

type SendPoll = <B as Requester>::SendPoll

Source§

type SendChecklist = <B as Requester>::SendChecklist

Source§

type SendDice = <B as Requester>::SendDice

Source§

type SendChatAction = <B as Requester>::SendChatAction

Source§

type SetMessageReaction = <B as Requester>::SetMessageReaction

Source§

type GetUserProfilePhotos = <B as Requester>::GetUserProfilePhotos

Source§

type SetUserEmojiStatus = <B as Requester>::SetUserEmojiStatus

Source§

type GetFile = <B as Requester>::GetFile

Source§

type KickChatMember = <B as Requester>::KickChatMember

Source§

type BanChatMember = <B as Requester>::BanChatMember

Source§

type UnbanChatMember = <B as Requester>::UnbanChatMember

Source§

type RestrictChatMember = <B as Requester>::RestrictChatMember

Source§

type PromoteChatMember = <B as Requester>::PromoteChatMember

Source§

type SetChatAdministratorCustomTitle = <B as Requester>::SetChatAdministratorCustomTitle

Source§

type BanChatSenderChat = <B as Requester>::BanChatSenderChat

Source§

type UnbanChatSenderChat = <B as Requester>::UnbanChatSenderChat

Source§

type SetChatPermissions = <B as Requester>::SetChatPermissions

Source§

type SetChatPhoto = <B as Requester>::SetChatPhoto

Source§

type DeleteChatPhoto = <B as Requester>::DeleteChatPhoto

Source§

type SetChatTitle = <B as Requester>::SetChatTitle

Source§

type SetChatDescription = <B as Requester>::SetChatDescription

Source§

type PinChatMessage = <B as Requester>::PinChatMessage

Source§

type UnpinChatMessage = <B as Requester>::UnpinChatMessage

Source§

type UnpinAllChatMessages = <B as Requester>::UnpinAllChatMessages

Source§

type LeaveChat = <B as Requester>::LeaveChat

Source§

type GetChat = <B as Requester>::GetChat

Source§

type GetChatAdministrators = <B as Requester>::GetChatAdministrators

Source§

type GetChatMembersCount = <B as Requester>::GetChatMembersCount

Source§

type GetChatMemberCount = <B as Requester>::GetChatMemberCount

Source§

type GetChatMember = <B as Requester>::GetChatMember

Source§

type SetChatStickerSet = <B as Requester>::SetChatStickerSet

Source§

type DeleteChatStickerSet = <B as Requester>::DeleteChatStickerSet

Source§

type GetForumTopicIconStickers = <B as Requester>::GetForumTopicIconStickers

Source§

type CreateForumTopic = <B as Requester>::CreateForumTopic

Source§

type EditForumTopic = <B as Requester>::EditForumTopic

Source§

type CloseForumTopic = <B as Requester>::CloseForumTopic

Source§

type ReopenForumTopic = <B as Requester>::ReopenForumTopic

Source§

type DeleteForumTopic = <B as Requester>::DeleteForumTopic

Source§

type UnpinAllForumTopicMessages = <B as Requester>::UnpinAllForumTopicMessages

Source§

type EditGeneralForumTopic = <B as Requester>::EditGeneralForumTopic

Source§

type CloseGeneralForumTopic = <B as Requester>::CloseGeneralForumTopic

Source§

type ReopenGeneralForumTopic = <B as Requester>::ReopenGeneralForumTopic

Source§

type HideGeneralForumTopic = <B as Requester>::HideGeneralForumTopic

Source§

type UnhideGeneralForumTopic = <B as Requester>::UnhideGeneralForumTopic

Source§

type UnpinAllGeneralForumTopicMessages = <B as Requester>::UnpinAllGeneralForumTopicMessages

Source§

type AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery

Source§

type GetUserChatBoosts = <B as Requester>::GetUserChatBoosts

Source§

type SetMyCommands = <B as Requester>::SetMyCommands

Source§

type GetBusinessConnection = <B as Requester>::GetBusinessConnection

Source§

type GetMyCommands = <B as Requester>::GetMyCommands

Source§

type SetMyName = <B as Requester>::SetMyName

Source§

type GetMyName = <B as Requester>::GetMyName

Source§

type SetMyDescription = <B as Requester>::SetMyDescription

Source§

type GetMyDescription = <B as Requester>::GetMyDescription

Source§

type SetMyShortDescription = <B as Requester>::SetMyShortDescription

Source§

type GetMyShortDescription = <B as Requester>::GetMyShortDescription

Source§

type SetChatMenuButton = <B as Requester>::SetChatMenuButton

Source§

type GetChatMenuButton = <B as Requester>::GetChatMenuButton

Source§

type SetMyDefaultAdministratorRights = <B as Requester>::SetMyDefaultAdministratorRights

Source§

type GetMyDefaultAdministratorRights = <B as Requester>::GetMyDefaultAdministratorRights

Source§

type DeleteMyCommands = <B as Requester>::DeleteMyCommands

Source§

type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery

Source§

type AnswerWebAppQuery = <B as Requester>::AnswerWebAppQuery

Source§

type SavePreparedInlineMessage = <B as Requester>::SavePreparedInlineMessage

Source§

type EditMessageText = <B as Requester>::EditMessageText

Source§

type EditMessageTextInline = <B as Requester>::EditMessageTextInline

Source§

type EditMessageCaption = <B as Requester>::EditMessageCaption

Source§

type EditMessageCaptionInline = <B as Requester>::EditMessageCaptionInline

Source§

type EditMessageMedia = <B as Requester>::EditMessageMedia

Source§

type EditMessageMediaInline = <B as Requester>::EditMessageMediaInline

Source§

type EditMessageReplyMarkup = <B as Requester>::EditMessageReplyMarkup

Source§

type EditMessageReplyMarkupInline = <B as Requester>::EditMessageReplyMarkupInline

Source§

type StopPoll = <B as Requester>::StopPoll

Source§

type ApproveSuggestedPost = <B as Requester>::ApproveSuggestedPost

Source§

type DeclineSuggestedPost = <B as Requester>::DeclineSuggestedPost

Source§

type DeleteMessage = <B as Requester>::DeleteMessage

Source§

type DeleteMessages = <B as Requester>::DeleteMessages

Source§

type SendSticker = <B as Requester>::SendSticker

Source§

type GetStickerSet = <B as Requester>::GetStickerSet

Source§

type GetCustomEmojiStickers = <B as Requester>::GetCustomEmojiStickers

Source§

type UploadStickerFile = <B as Requester>::UploadStickerFile

Source§

type CreateNewStickerSet = <B as Requester>::CreateNewStickerSet

Source§

type AddStickerToSet = <B as Requester>::AddStickerToSet

Source§

type SetStickerPositionInSet = <B as Requester>::SetStickerPositionInSet

Source§

type DeleteStickerFromSet = <B as Requester>::DeleteStickerFromSet

Source§

type ReplaceStickerInSet = <B as Requester>::ReplaceStickerInSet

Source§

type SetStickerSetThumbnail = <B as Requester>::SetStickerSetThumbnail

Source§

type SetCustomEmojiStickerSetThumbnail = <B as Requester>::SetCustomEmojiStickerSetThumbnail

Source§

type SetStickerSetTitle = <B as Requester>::SetStickerSetTitle

Source§

type DeleteStickerSet = <B as Requester>::DeleteStickerSet

Source§

type SetStickerEmojiList = <B as Requester>::SetStickerEmojiList

Source§

type SetStickerKeywords = <B as Requester>::SetStickerKeywords

Source§

type SetStickerMaskPosition = <B as Requester>::SetStickerMaskPosition

Source§

type GetAvailableGifts = <B as Requester>::GetAvailableGifts

Source§

type SendGift = <B as Requester>::SendGift

Source§

type SendGiftChat = <B as Requester>::SendGiftChat

Source§

type GiftPremiumSubscription = <B as Requester>::GiftPremiumSubscription

Source§

type VerifyUser = <B as Requester>::VerifyUser

Source§

type VerifyChat = <B as Requester>::VerifyChat

Source§

type RemoveUserVerification = <B as Requester>::RemoveUserVerification

Source§

type RemoveChatVerification = <B as Requester>::RemoveChatVerification

Source§

type ReadBusinessMessage = <B as Requester>::ReadBusinessMessage

Source§

type DeleteBusinessMessages = <B as Requester>::DeleteBusinessMessages

Source§

type SetBusinessAccountName = <B as Requester>::SetBusinessAccountName

Source§

type SetBusinessAccountUsername = <B as Requester>::SetBusinessAccountUsername

Source§

type SetBusinessAccountBio = <B as Requester>::SetBusinessAccountBio

Source§

type SetBusinessAccountProfilePhoto = <B as Requester>::SetBusinessAccountProfilePhoto

Source§

type RemoveBusinessAccountProfilePhoto = <B as Requester>::RemoveBusinessAccountProfilePhoto

Source§

type SetBusinessAccountGiftSettings = <B as Requester>::SetBusinessAccountGiftSettings

Source§

type GetBusinessAccountStarBalance = <B as Requester>::GetBusinessAccountStarBalance

Source§

type TransferBusinessAccountStars = <B as Requester>::TransferBusinessAccountStars

Source§

type GetBusinessAccountGifts = <B as Requester>::GetBusinessAccountGifts

Source§

type GetUserGifts = <B as Requester>::GetUserGifts

Source§

type GetChatGifts = <B as Requester>::GetChatGifts

Source§

type ConvertGiftToStars = <B as Requester>::ConvertGiftToStars

Source§

type UpgradeGift = <B as Requester>::UpgradeGift

Source§

type TransferGift = <B as Requester>::TransferGift

Source§

type PostStory = <B as Requester>::PostStory

Source§

type EditStory = <B as Requester>::EditStory

Source§

type DeleteStory = <B as Requester>::DeleteStory

Source§

type RepostStory = <B as Requester>::RepostStory

Source§

type SendInvoice = <B as Requester>::SendInvoice

Source§

type AnswerShippingQuery = <B as Requester>::AnswerShippingQuery

Source§

type AnswerPreCheckoutQuery = <B as Requester>::AnswerPreCheckoutQuery

Source§

type GetMyStarBalance = <B as Requester>::GetMyStarBalance

Source§

type GetStarTransactions = <B as Requester>::GetStarTransactions

Source§

type RefundStarPayment = <B as Requester>::RefundStarPayment

Source§

type EditUserStarSubscription = <B as Requester>::EditUserStarSubscription

Source§

type SetPassportDataErrors = <B as Requester>::SetPassportDataErrors

Source§

type SendGame = <B as Requester>::SendGame

Source§

type SetGameScore = <B as Requester>::SetGameScore

Source§

type SetGameScoreInline = <B as Requester>::SetGameScoreInline

Source§

type GetGameHighScores = <B as Requester>::GetGameHighScores

Source§

type ApproveChatJoinRequest = <B as Requester>::ApproveChatJoinRequest

Source§

type DeclineChatJoinRequest = <B as Requester>::DeclineChatJoinRequest

Source§

fn get_me(&self) -> <CacheMe<B> as Requester>::GetMe

For Telegram documentation see GetMe.
Source§

fn log_out(&self) -> <CacheMe<B> as Requester>::LogOut

For Telegram documentation see LogOut.
Source§

fn close(&self) -> <CacheMe<B> as Requester>::Close

For Telegram documentation see Close.
Source§

fn get_updates(&self) -> <CacheMe<B> as Requester>::GetUpdates

For Telegram documentation see GetUpdates.
Source§

fn set_webhook(&self, url: Url) -> <CacheMe<B> as Requester>::SetWebhook

For Telegram documentation see SetWebhook.
Source§

fn delete_webhook(&self) -> <CacheMe<B> as Requester>::DeleteWebhook

For Telegram documentation see DeleteWebhook.
Source§

fn get_webhook_info(&self) -> <CacheMe<B> as Requester>::GetWebhookInfo

For Telegram documentation see GetWebhookInfo.
Source§

fn forward_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> <CacheMe<B> as Requester>::ForwardMessage
where C: Into<Recipient>, F: Into<Recipient>,

For Telegram documentation see ForwardMessage.
Source§

fn forward_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> <CacheMe<B> as Requester>::ForwardMessages
where C: Into<Recipient>, F: Into<Recipient>, M: IntoIterator<Item = MessageId>,

For Telegram documentation see ForwardMessages.
Source§

fn copy_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> <CacheMe<B> as Requester>::CopyMessage
where C: Into<Recipient>, F: Into<Recipient>,

For Telegram documentation see CopyMessage.
Source§

fn copy_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> <CacheMe<B> as Requester>::CopyMessages
where C: Into<Recipient>, F: Into<Recipient>, M: IntoIterator<Item = MessageId>,

For Telegram documentation see CopyMessages.
Source§

fn send_message<C, T>( &self, chat_id: C, text: T, ) -> <CacheMe<B> as Requester>::SendMessage
where C: Into<Recipient>, T: Into<String>,

For Telegram documentation see SendMessage.
Source§

fn send_message_draft<C, T>( &self, chat_id: C, draft_id: u32, text: T, ) -> <CacheMe<B> as Requester>::SendMessageDraft
where C: Into<ChatId>, T: Into<String>,

For Telegram documentation see SendMessageDraft.
Source§

fn send_photo<C>( &self, chat_id: C, photo: InputFile, ) -> <CacheMe<B> as Requester>::SendPhoto
where C: Into<Recipient>,

For Telegram documentation see SendPhoto.
Source§

fn send_audio<C>( &self, chat_id: C, audio: InputFile, ) -> <CacheMe<B> as Requester>::SendAudio
where C: Into<Recipient>,

For Telegram documentation see SendAudio.
Source§

fn send_document<C>( &self, chat_id: C, document: InputFile, ) -> <CacheMe<B> as Requester>::SendDocument
where C: Into<Recipient>,

For Telegram documentation see SendDocument.
Source§

fn send_video<C>( &self, chat_id: C, video: InputFile, ) -> <CacheMe<B> as Requester>::SendVideo
where C: Into<Recipient>,

For Telegram documentation see SendVideo.
Source§

fn send_animation<C>( &self, chat_id: C, animation: InputFile, ) -> <CacheMe<B> as Requester>::SendAnimation
where C: Into<Recipient>,

For Telegram documentation see SendAnimation.
Source§

fn send_voice<C>( &self, chat_id: C, voice: InputFile, ) -> <CacheMe<B> as Requester>::SendVoice
where C: Into<Recipient>,

For Telegram documentation see SendVoice.
Source§

fn send_video_note<C>( &self, chat_id: C, video_note: InputFile, ) -> <CacheMe<B> as Requester>::SendVideoNote
where C: Into<Recipient>,

For Telegram documentation see SendVideoNote.
Source§

fn send_paid_media<C, M>( &self, chat_id: C, star_count: u32, media: M, ) -> <CacheMe<B> as Requester>::SendPaidMedia
where C: Into<Recipient>, M: IntoIterator<Item = InputPaidMedia>,

For Telegram documentation see SendPaidMedia.
Source§

fn send_media_group<C, M>( &self, chat_id: C, media: M, ) -> <CacheMe<B> as Requester>::SendMediaGroup
where C: Into<Recipient>, M: IntoIterator<Item = InputMedia>,

For Telegram documentation see SendMediaGroup.
Source§

fn send_location<C>( &self, chat_id: C, latitude: f64, longitude: f64, ) -> <CacheMe<B> as Requester>::SendLocation
where C: Into<Recipient>,

For Telegram documentation see SendLocation.
Source§

fn edit_message_live_location<C>( &self, chat_id: C, message_id: MessageId, latitude: f64, longitude: f64, ) -> <CacheMe<B> as Requester>::EditMessageLiveLocation
where C: Into<Recipient>,

For Telegram documentation see EditMessageLiveLocation.
Source§

fn edit_message_live_location_inline<I>( &self, inline_message_id: I, latitude: f64, longitude: f64, ) -> <CacheMe<B> as Requester>::EditMessageLiveLocationInline
where I: Into<String>,

For Telegram documentation see EditMessageLiveLocationInline.
Source§

fn stop_message_live_location<C>( &self, chat_id: C, message_id: MessageId, ) -> <CacheMe<B> as Requester>::StopMessageLiveLocation
where C: Into<Recipient>,

For Telegram documentation see StopMessageLiveLocation.
Source§

fn stop_message_live_location_inline<I>( &self, inline_message_id: I, ) -> <CacheMe<B> as Requester>::StopMessageLiveLocationInline
where I: Into<String>,

For Telegram documentation see StopMessageLiveLocationInline.
Source§

fn edit_message_checklist<C>( &self, business_connection_id: BusinessConnectionId, chat_id: C, message_id: MessageId, checklist: InputChecklist, ) -> <CacheMe<B> as Requester>::EditMessageChecklist
where C: Into<ChatId>,

For Telegram documentation see EditMessageChecklist.
Source§

fn send_venue<C, T, A>( &self, chat_id: C, latitude: f64, longitude: f64, title: T, address: A, ) -> <CacheMe<B> as Requester>::SendVenue
where C: Into<Recipient>, T: Into<String>, A: Into<String>,

For Telegram documentation see SendVenue.
Source§

fn send_contact<C, P, F>( &self, chat_id: C, phone_number: P, first_name: F, ) -> <CacheMe<B> as Requester>::SendContact
where C: Into<Recipient>, P: Into<String>, F: Into<String>,

For Telegram documentation see SendContact.
Source§

fn send_poll<C, Q, O>( &self, chat_id: C, question: Q, options: O, ) -> <CacheMe<B> as Requester>::SendPoll

For Telegram documentation see SendPoll.
Source§

fn send_checklist<C>( &self, business_connection_id: BusinessConnectionId, chat_id: C, checklist: InputChecklist, ) -> <CacheMe<B> as Requester>::SendChecklist
where C: Into<ChatId>,

For Telegram documentation see SendChecklist.
Source§

fn send_dice<C>(&self, chat_id: C) -> <CacheMe<B> as Requester>::SendDice
where C: Into<Recipient>,

For Telegram documentation see SendDice.
Source§

fn send_chat_action<C>( &self, chat_id: C, action: ChatAction, ) -> <CacheMe<B> as Requester>::SendChatAction
where C: Into<Recipient>,

For Telegram documentation see SendChatAction.
Source§

fn set_message_reaction<C>( &self, chat_id: C, message_id: MessageId, ) -> <CacheMe<B> as Requester>::SetMessageReaction
where C: Into<Recipient>,

For Telegram documentation see SetMessageReaction.
Source§

fn get_user_profile_photos( &self, user_id: UserId, ) -> <CacheMe<B> as Requester>::GetUserProfilePhotos

For Telegram documentation see GetUserProfilePhotos.
Source§

fn set_user_emoji_status( &self, user_id: UserId, ) -> <CacheMe<B> as Requester>::SetUserEmojiStatus

For Telegram documentation see SetUserEmojiStatus.
Source§

fn get_file(&self, file_id: FileId) -> <CacheMe<B> as Requester>::GetFile

For Telegram documentation see GetFile.
Source§

fn kick_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> <CacheMe<B> as Requester>::KickChatMember
where C: Into<Recipient>,

For Telegram documentation see KickChatMember.
Source§

fn ban_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> <CacheMe<B> as Requester>::BanChatMember
where C: Into<Recipient>,

For Telegram documentation see BanChatMember.
Source§

fn unban_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> <CacheMe<B> as Requester>::UnbanChatMember
where C: Into<Recipient>,

For Telegram documentation see UnbanChatMember.
Source§

fn restrict_chat_member<C>( &self, chat_id: C, user_id: UserId, permissions: ChatPermissions, ) -> <CacheMe<B> as Requester>::RestrictChatMember
where C: Into<Recipient>,

For Telegram documentation see RestrictChatMember.
Source§

fn promote_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> <CacheMe<B> as Requester>::PromoteChatMember
where C: Into<Recipient>,

For Telegram documentation see PromoteChatMember.
Source§

fn set_chat_administrator_custom_title<Ch, C>( &self, chat_id: Ch, user_id: UserId, custom_title: C, ) -> <CacheMe<B> as Requester>::SetChatAdministratorCustomTitle
where Ch: Into<Recipient>, C: Into<String>,

For Telegram documentation see SetChatAdministratorCustomTitle.
Source§

fn ban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> <CacheMe<B> as Requester>::BanChatSenderChat
where C: Into<Recipient>, S: Into<ChatId>,

For Telegram documentation see BanChatSenderChat.
Source§

fn unban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> <CacheMe<B> as Requester>::UnbanChatSenderChat
where C: Into<Recipient>, S: Into<ChatId>,

For Telegram documentation see UnbanChatSenderChat.
Source§

fn set_chat_permissions<C>( &self, chat_id: C, permissions: ChatPermissions, ) -> <CacheMe<B> as Requester>::SetChatPermissions
where C: Into<Recipient>,

For Telegram documentation see SetChatPermissions.
For Telegram documentation see ExportChatInviteLink.
For Telegram documentation see CreateChatInviteLink.
For Telegram documentation see EditChatInviteLink.
For Telegram documentation see CreateChatSubscriptionInviteLink.
For Telegram documentation see EditChatSubscriptionInviteLink.
For Telegram documentation see RevokeChatInviteLink.
Source§

fn set_chat_photo<C>( &self, chat_id: C, photo: InputFile, ) -> <CacheMe<B> as Requester>::SetChatPhoto
where C: Into<Recipient>,

For Telegram documentation see SetChatPhoto.
Source§

fn delete_chat_photo<C>( &self, chat_id: C, ) -> <CacheMe<B> as Requester>::DeleteChatPhoto
where C: Into<Recipient>,

For Telegram documentation see DeleteChatPhoto.
Source§

fn set_chat_title<C, T>( &self, chat_id: C, title: T, ) -> <CacheMe<B> as Requester>::SetChatTitle
where C: Into<Recipient>, T: Into<String>,

For Telegram documentation see SetChatTitle.
Source§

fn set_chat_description<C>( &self, chat_id: C, ) -> <CacheMe<B> as Requester>::SetChatDescription
where C: Into<Recipient>,

For Telegram documentation see SetChatDescription.
Source§

fn pin_chat_message<C>( &self, chat_id: C, message_id: MessageId, ) -> <CacheMe<B> as Requester>::PinChatMessage
where C: Into<Recipient>,

For Telegram documentation see PinChatMessage.
Source§

fn unpin_chat_message<C>( &self, chat_id: C, ) -> <CacheMe<B> as Requester>::UnpinChatMessage
where C: Into<Recipient>,

For Telegram documentation see UnpinChatMessage.
Source§

fn unpin_all_chat_messages<C>( &self, chat_id: C, ) -> <CacheMe<B> as Requester>::UnpinAllChatMessages
where C: Into<Recipient>,

For Telegram documentation see UnpinAllChatMessages.
Source§

fn leave_chat<C>(&self, chat_id: C) -> <CacheMe<B> as Requester>::LeaveChat
where C: Into<Recipient>,

For Telegram documentation see LeaveChat.
Source§

fn get_chat<C>(&self, chat_id: C) -> <CacheMe<B> as Requester>::GetChat
where C: Into<Recipient>,

For Telegram documentation see GetChat.
Source§

fn get_chat_administrators<C>( &self, chat_id: C, ) -> <CacheMe<B> as Requester>::GetChatAdministrators
where C: Into<Recipient>,

For Telegram documentation see GetChatAdministrators.
Source§

fn get_chat_members_count<C>( &self, chat_id: C, ) -> <CacheMe<B> as Requester>::GetChatMembersCount
where C: Into<Recipient>,

For Telegram documentation see GetChatMembersCount.
Source§

fn get_chat_member_count<C>( &self, chat_id: C, ) -> <CacheMe<B> as Requester>::GetChatMemberCount
where C: Into<Recipient>,

For Telegram documentation see GetChatMemberCount.
Source§

fn get_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> <CacheMe<B> as Requester>::GetChatMember
where C: Into<Recipient>,

For Telegram documentation see GetChatMember.
Source§

fn set_chat_sticker_set<C, S>( &self, chat_id: C, sticker_set_name: S, ) -> <CacheMe<B> as Requester>::SetChatStickerSet
where C: Into<Recipient>, S: Into<String>,

For Telegram documentation see SetChatStickerSet.
Source§

fn delete_chat_sticker_set<C>( &self, chat_id: C, ) -> <CacheMe<B> as Requester>::DeleteChatStickerSet
where C: Into<Recipient>,

For Telegram documentation see DeleteChatStickerSet.
Source§

fn get_forum_topic_icon_stickers( &self, ) -> <CacheMe<B> as Requester>::GetForumTopicIconStickers

For Telegram documentation see GetForumTopicIconStickers.
Source§

fn create_forum_topic<C, N>( &self, chat_id: C, name: N, ) -> <CacheMe<B> as Requester>::CreateForumTopic
where C: Into<Recipient>, N: Into<String>,

For Telegram documentation see CreateForumTopic.
Source§

fn edit_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> <CacheMe<B> as Requester>::EditForumTopic
where C: Into<Recipient>,

For Telegram documentation see EditForumTopic.
Source§

fn close_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> <CacheMe<B> as Requester>::CloseForumTopic
where C: Into<Recipient>,

For Telegram documentation see CloseForumTopic.
Source§

fn reopen_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> <CacheMe<B> as Requester>::ReopenForumTopic
where C: Into<Recipient>,

For Telegram documentation see ReopenForumTopic.
Source§

fn delete_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> <CacheMe<B> as Requester>::DeleteForumTopic
where C: Into<Recipient>,

For Telegram documentation see DeleteForumTopic.
Source§

fn unpin_all_forum_topic_messages<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> <CacheMe<B> as Requester>::UnpinAllForumTopicMessages
where C: Into<Recipient>,

For Telegram documentation see UnpinAllForumTopicMessages.
Source§

fn edit_general_forum_topic<C, N>( &self, chat_id: C, name: N, ) -> <CacheMe<B> as Requester>::EditGeneralForumTopic
where C: Into<Recipient>, N: Into<String>,

For Telegram documentation see EditGeneralForumTopic.
Source§

fn close_general_forum_topic<C>( &self, chat_id: C, ) -> <CacheMe<B> as Requester>::CloseGeneralForumTopic
where C: Into<Recipient>,

For Telegram documentation see CloseGeneralForumTopic.
Source§

fn reopen_general_forum_topic<C>( &self, chat_id: C, ) -> <CacheMe<B> as Requester>::ReopenGeneralForumTopic
where C: Into<Recipient>,

For Telegram documentation see ReopenGeneralForumTopic.
Source§

fn hide_general_forum_topic<C>( &self, chat_id: C, ) -> <CacheMe<B> as Requester>::HideGeneralForumTopic
where C: Into<Recipient>,

For Telegram documentation see HideGeneralForumTopic.
Source§

fn unhide_general_forum_topic<C>( &self, chat_id: C, ) -> <CacheMe<B> as Requester>::UnhideGeneralForumTopic
where C: Into<Recipient>,

For Telegram documentation see UnhideGeneralForumTopic.
Source§

fn unpin_all_general_forum_topic_messages<C>( &self, chat_id: C, ) -> <CacheMe<B> as Requester>::UnpinAllGeneralForumTopicMessages
where C: Into<Recipient>,

For Telegram documentation see UnpinAllGeneralForumTopicMessages.
Source§

fn answer_callback_query( &self, callback_query_id: CallbackQueryId, ) -> <CacheMe<B> as Requester>::AnswerCallbackQuery

For Telegram documentation see AnswerCallbackQuery.
Source§

fn get_user_chat_boosts<C>( &self, chat_id: C, user_id: UserId, ) -> <CacheMe<B> as Requester>::GetUserChatBoosts
where C: Into<Recipient>,

For Telegram documentation see GetUserChatBoosts.
Source§

fn set_my_commands<C>( &self, commands: C, ) -> <CacheMe<B> as Requester>::SetMyCommands
where C: IntoIterator<Item = BotCommand>,

For Telegram documentation see SetMyCommands.
Source§

fn get_business_connection( &self, business_connection_id: BusinessConnectionId, ) -> <CacheMe<B> as Requester>::GetBusinessConnection

For Telegram documentation see GetBusinessConnection.
Source§

fn get_my_commands(&self) -> <CacheMe<B> as Requester>::GetMyCommands

For Telegram documentation see GetMyCommands.
Source§

fn set_my_name(&self) -> <CacheMe<B> as Requester>::SetMyName

For Telegram documentation see SetMyName.
Source§

fn get_my_name(&self) -> <CacheMe<B> as Requester>::GetMyName

For Telegram documentation see GetMyName.
Source§

fn set_my_description(&self) -> <CacheMe<B> as Requester>::SetMyDescription

For Telegram documentation see SetMyDescription.
Source§

fn get_my_description(&self) -> <CacheMe<B> as Requester>::GetMyDescription

For Telegram documentation see GetMyDescription.
Source§

fn set_my_short_description( &self, ) -> <CacheMe<B> as Requester>::SetMyShortDescription

For Telegram documentation see SetMyShortDescription.
Source§

fn get_my_short_description( &self, ) -> <CacheMe<B> as Requester>::GetMyShortDescription

For Telegram documentation see GetMyShortDescription.
Source§

fn set_chat_menu_button(&self) -> <CacheMe<B> as Requester>::SetChatMenuButton

For Telegram documentation see SetChatMenuButton.
Source§

fn get_chat_menu_button(&self) -> <CacheMe<B> as Requester>::GetChatMenuButton

For Telegram documentation see GetChatMenuButton.
Source§

fn set_my_default_administrator_rights( &self, ) -> <CacheMe<B> as Requester>::SetMyDefaultAdministratorRights

For Telegram documentation see SetMyDefaultAdministratorRights.
Source§

fn get_my_default_administrator_rights( &self, ) -> <CacheMe<B> as Requester>::GetMyDefaultAdministratorRights

For Telegram documentation see GetMyDefaultAdministratorRights.
Source§

fn delete_my_commands(&self) -> <CacheMe<B> as Requester>::DeleteMyCommands

For Telegram documentation see DeleteMyCommands.
Source§

fn answer_inline_query<R>( &self, inline_query_id: InlineQueryId, results: R, ) -> <CacheMe<B> as Requester>::AnswerInlineQuery

For Telegram documentation see AnswerInlineQuery.
Source§

fn answer_web_app_query<W>( &self, web_app_query_id: W, result: InlineQueryResult, ) -> <CacheMe<B> as Requester>::AnswerWebAppQuery
where W: Into<String>,

For Telegram documentation see AnswerWebAppQuery.
Source§

fn save_prepared_inline_message( &self, user_id: UserId, result: InlineQueryResult, ) -> <CacheMe<B> as Requester>::SavePreparedInlineMessage

For Telegram documentation see SavePreparedInlineMessage.
Source§

fn edit_message_text<C, T>( &self, chat_id: C, message_id: MessageId, text: T, ) -> <CacheMe<B> as Requester>::EditMessageText
where C: Into<Recipient>, T: Into<String>,

For Telegram documentation see EditMessageText.
Source§

fn edit_message_text_inline<I, T>( &self, inline_message_id: I, text: T, ) -> <CacheMe<B> as Requester>::EditMessageTextInline
where I: Into<String>, T: Into<String>,

For Telegram documentation see EditMessageTextInline.
Source§

fn edit_message_caption<C>( &self, chat_id: C, message_id: MessageId, ) -> <CacheMe<B> as Requester>::EditMessageCaption
where C: Into<Recipient>,

For Telegram documentation see EditMessageCaption.
Source§

fn edit_message_caption_inline<I>( &self, inline_message_id: I, ) -> <CacheMe<B> as Requester>::EditMessageCaptionInline
where I: Into<String>,

For Telegram documentation see EditMessageCaptionInline.
Source§

fn edit_message_media<C>( &self, chat_id: C, message_id: MessageId, media: InputMedia, ) -> <CacheMe<B> as Requester>::EditMessageMedia
where C: Into<Recipient>,

For Telegram documentation see EditMessageMedia.
Source§

fn edit_message_media_inline<I>( &self, inline_message_id: I, media: InputMedia, ) -> <CacheMe<B> as Requester>::EditMessageMediaInline
where I: Into<String>,

For Telegram documentation see EditMessageMediaInline.
Source§

fn edit_message_reply_markup<C>( &self, chat_id: C, message_id: MessageId, ) -> <CacheMe<B> as Requester>::EditMessageReplyMarkup
where C: Into<Recipient>,

For Telegram documentation see EditMessageReplyMarkup.
Source§

fn edit_message_reply_markup_inline<I>( &self, inline_message_id: I, ) -> <CacheMe<B> as Requester>::EditMessageReplyMarkupInline
where I: Into<String>,

For Telegram documentation see EditMessageReplyMarkupInline.
Source§

fn stop_poll<C>( &self, chat_id: C, message_id: MessageId, ) -> <CacheMe<B> as Requester>::StopPoll
where C: Into<Recipient>,

For Telegram documentation see StopPoll.
Source§

fn approve_suggested_post<C>( &self, chat_id: C, message_id: MessageId, ) -> <CacheMe<B> as Requester>::ApproveSuggestedPost
where C: Into<ChatId>,

For Telegram documentation see ApproveSuggestedPost.
Source§

fn decline_suggested_post<C>( &self, chat_id: C, message_id: MessageId, ) -> <CacheMe<B> as Requester>::DeclineSuggestedPost
where C: Into<ChatId>,

For Telegram documentation see DeclineSuggestedPost.
Source§

fn delete_message<C>( &self, chat_id: C, message_id: MessageId, ) -> <CacheMe<B> as Requester>::DeleteMessage
where C: Into<Recipient>,

For Telegram documentation see DeleteMessage.
Source§

fn delete_messages<C, M>( &self, chat_id: C, message_ids: M, ) -> <CacheMe<B> as Requester>::DeleteMessages
where C: Into<Recipient>, M: IntoIterator<Item = MessageId>,

For Telegram documentation see DeleteMessages.
Source§

fn send_sticker<C>( &self, chat_id: C, sticker: InputFile, ) -> <CacheMe<B> as Requester>::SendSticker
where C: Into<Recipient>,

For Telegram documentation see SendSticker.
Source§

fn get_sticker_set<N>( &self, name: N, ) -> <CacheMe<B> as Requester>::GetStickerSet
where N: Into<String>,

For Telegram documentation see GetStickerSet.
Source§

fn get_custom_emoji_stickers<C>( &self, custom_emoji_ids: C, ) -> <CacheMe<B> as Requester>::GetCustomEmojiStickers
where C: IntoIterator<Item = CustomEmojiId>,

For Telegram documentation see GetCustomEmojiStickers.
Source§

fn upload_sticker_file( &self, user_id: UserId, sticker: InputFile, sticker_format: StickerFormat, ) -> <CacheMe<B> as Requester>::UploadStickerFile

For Telegram documentation see UploadStickerFile.
Source§

fn create_new_sticker_set<N, T, S>( &self, user_id: UserId, name: N, title: T, stickers: S, ) -> <CacheMe<B> as Requester>::CreateNewStickerSet
where N: Into<String>, T: Into<String>, S: IntoIterator<Item = InputSticker>,

For Telegram documentation see CreateNewStickerSet.
Source§

fn add_sticker_to_set<N>( &self, user_id: UserId, name: N, sticker: InputSticker, ) -> <CacheMe<B> as Requester>::AddStickerToSet
where N: Into<String>,

For Telegram documentation see AddStickerToSet.
Source§

fn set_sticker_position_in_set<S>( &self, sticker: S, position: u32, ) -> <CacheMe<B> as Requester>::SetStickerPositionInSet
where S: Into<String>,

For Telegram documentation see SetStickerPositionInSet.
Source§

fn delete_sticker_from_set<S>( &self, sticker: S, ) -> <CacheMe<B> as Requester>::DeleteStickerFromSet
where S: Into<String>,

For Telegram documentation see DeleteStickerFromSet.
Source§

fn replace_sticker_in_set<N, O>( &self, user_id: UserId, name: N, old_sticker: O, sticker: InputSticker, ) -> <CacheMe<B> as Requester>::ReplaceStickerInSet
where N: Into<String>, O: Into<String>,

For Telegram documentation see ReplaceStickerInSet.
Source§

fn set_sticker_set_thumbnail<N>( &self, name: N, user_id: UserId, format: StickerFormat, ) -> <CacheMe<B> as Requester>::SetStickerSetThumbnail
where N: Into<String>,

For Telegram documentation see SetStickerSetThumbnail.
Source§

fn set_custom_emoji_sticker_set_thumbnail<N>( &self, name: N, ) -> <CacheMe<B> as Requester>::SetCustomEmojiStickerSetThumbnail
where N: Into<String>,

For Telegram documentation see SetCustomEmojiStickerSetThumbnail.
Source§

fn set_sticker_set_title<N, T>( &self, name: N, title: T, ) -> <CacheMe<B> as Requester>::SetStickerSetTitle
where N: Into<String>, T: Into<String>,

For Telegram documentation see SetStickerSetTitle.
Source§

fn delete_sticker_set<N>( &self, name: N, ) -> <CacheMe<B> as Requester>::DeleteStickerSet
where N: Into<String>,

For Telegram documentation see DeleteStickerSet.
Source§

fn set_sticker_emoji_list<S, E>( &self, sticker: S, emoji_list: E, ) -> <CacheMe<B> as Requester>::SetStickerEmojiList
where S: Into<String>, E: IntoIterator<Item = String>,

For Telegram documentation see SetStickerEmojiList.
Source§

fn set_sticker_keywords<S>( &self, sticker: S, ) -> <CacheMe<B> as Requester>::SetStickerKeywords
where S: Into<String>,

For Telegram documentation see SetStickerKeywords.
Source§

fn set_sticker_mask_position<S>( &self, sticker: S, ) -> <CacheMe<B> as Requester>::SetStickerMaskPosition
where S: Into<String>,

For Telegram documentation see SetStickerMaskPosition.
Source§

fn get_available_gifts(&self) -> <CacheMe<B> as Requester>::GetAvailableGifts

For Telegram documentation see GetAvailableGifts.
Source§

fn send_gift( &self, user_id: UserId, gift_id: GiftId, ) -> <CacheMe<B> as Requester>::SendGift

For Telegram documentation see SendGift.
Source§

fn send_gift_chat<C>( &self, chat_id: C, gift_id: GiftId, ) -> <CacheMe<B> as Requester>::SendGiftChat
where C: Into<Recipient>,

For Telegram documentation see SendGiftChat.
Source§

fn gift_premium_subscription( &self, user_id: UserId, month_count: u8, star_count: u32, ) -> <CacheMe<B> as Requester>::GiftPremiumSubscription

For Telegram documentation see GiftPremiumSubscription.
Source§

fn verify_user(&self, user_id: UserId) -> <CacheMe<B> as Requester>::VerifyUser

For Telegram documentation see VerifyUser.
Source§

fn verify_chat<C>(&self, chat_id: C) -> <CacheMe<B> as Requester>::VerifyChat
where C: Into<Recipient>,

For Telegram documentation see VerifyChat.
Source§

fn remove_user_verification( &self, user_id: UserId, ) -> <CacheMe<B> as Requester>::RemoveUserVerification

For Telegram documentation see RemoveUserVerification.
Source§

fn remove_chat_verification<C>( &self, chat_id: C, ) -> <CacheMe<B> as Requester>::RemoveChatVerification
where C: Into<Recipient>,

For Telegram documentation see RemoveChatVerification.
Source§

fn read_business_message<C>( &self, business_connection_id: BusinessConnectionId, chat_id: C, message_id: MessageId, ) -> <CacheMe<B> as Requester>::ReadBusinessMessage
where C: Into<ChatId>,

For Telegram documentation see ReadBusinessMessage.
Source§

fn delete_business_messages<M>( &self, business_connection_id: BusinessConnectionId, message_ids: M, ) -> <CacheMe<B> as Requester>::DeleteBusinessMessages
where M: IntoIterator<Item = MessageId>,

For Telegram documentation see DeleteBusinessMessages.
Source§

fn set_business_account_name<F>( &self, business_connection_id: BusinessConnectionId, first_name: F, ) -> <CacheMe<B> as Requester>::SetBusinessAccountName
where F: Into<String>,

For Telegram documentation see SetBusinessAccountName.
Source§

fn set_business_account_username( &self, business_connection_id: BusinessConnectionId, ) -> <CacheMe<B> as Requester>::SetBusinessAccountUsername

For Telegram documentation see SetBusinessAccountUsername.
Source§

fn set_business_account_bio( &self, business_connection_id: BusinessConnectionId, ) -> <CacheMe<B> as Requester>::SetBusinessAccountBio

For Telegram documentation see SetBusinessAccountBio.
Source§

fn set_business_account_profile_photo( &self, business_connection_id: BusinessConnectionId, photo: InputProfilePhoto, ) -> <CacheMe<B> as Requester>::SetBusinessAccountProfilePhoto

For Telegram documentation see SetBusinessAccountProfilePhoto.
Source§

fn remove_business_account_profile_photo( &self, business_connection_id: BusinessConnectionId, ) -> <CacheMe<B> as Requester>::RemoveBusinessAccountProfilePhoto

For Telegram documentation see RemoveBusinessAccountProfilePhoto.
Source§

fn set_business_account_gift_settings( &self, business_connection_id: BusinessConnectionId, show_gift_button: bool, accepted_gift_types: AcceptedGiftTypes, ) -> <CacheMe<B> as Requester>::SetBusinessAccountGiftSettings

For Telegram documentation see SetBusinessAccountGiftSettings.
Source§

fn get_business_account_star_balance( &self, business_connection_id: BusinessConnectionId, ) -> <CacheMe<B> as Requester>::GetBusinessAccountStarBalance

For Telegram documentation see GetBusinessAccountStarBalance.
Source§

fn transfer_business_account_stars( &self, business_connection_id: BusinessConnectionId, star_count: u32, ) -> <CacheMe<B> as Requester>::TransferBusinessAccountStars

For Telegram documentation see TransferBusinessAccountStars.
Source§

fn get_business_account_gifts( &self, business_connection_id: BusinessConnectionId, ) -> <CacheMe<B> as Requester>::GetBusinessAccountGifts

For Telegram documentation see GetBusinessAccountGifts.
Source§

fn get_user_gifts( &self, user_id: UserId, ) -> <CacheMe<B> as Requester>::GetUserGifts

For Telegram documentation see GetUserGifts.
Source§

fn get_chat_gifts<C>( &self, chat_id: C, ) -> <CacheMe<B> as Requester>::GetChatGifts
where C: Into<Recipient>,

For Telegram documentation see GetChatGifts.
Source§

fn convert_gift_to_stars( &self, business_connection_id: BusinessConnectionId, owned_gift_id: OwnedGiftId, ) -> <CacheMe<B> as Requester>::ConvertGiftToStars

For Telegram documentation see ConvertGiftToStars.
Source§

fn upgrade_gift( &self, business_connection_id: BusinessConnectionId, owned_gift_id: OwnedGiftId, ) -> <CacheMe<B> as Requester>::UpgradeGift

For Telegram documentation see UpgradeGift.
Source§

fn transfer_gift<N>( &self, business_connection_id: BusinessConnectionId, owned_gift_id: OwnedGiftId, new_owner_chat_id: N, ) -> <CacheMe<B> as Requester>::TransferGift
where N: Into<ChatId>,

For Telegram documentation see TransferGift.
Source§

fn post_story( &self, business_connection_id: BusinessConnectionId, content: InputStoryContent, active_period: Seconds, ) -> <CacheMe<B> as Requester>::PostStory

For Telegram documentation see PostStory.
Source§

fn edit_story( &self, business_connection_id: BusinessConnectionId, story_id: StoryId, content: InputStoryContent, ) -> <CacheMe<B> as Requester>::EditStory

For Telegram documentation see EditStory.
Source§

fn delete_story( &self, business_connection_id: BusinessConnectionId, story_id: StoryId, ) -> <CacheMe<B> as Requester>::DeleteStory

For Telegram documentation see DeleteStory.
Source§

fn repost_story<F>( &self, business_connection_id: BusinessConnectionId, from_chat_id: F, from_story_id: StoryId, active_period: Seconds, ) -> <CacheMe<B> as Requester>::RepostStory
where F: Into<ChatId>,

For Telegram documentation see RepostStory.
Source§

fn send_invoice<Ch, T, D, Pa, C, P>( &self, chat_id: Ch, title: T, description: D, payload: Pa, currency: C, prices: P, ) -> <CacheMe<B> as Requester>::SendInvoice
where Ch: Into<Recipient>, T: Into<String>, D: Into<String>, Pa: Into<String>, C: Into<String>, P: IntoIterator<Item = LabeledPrice>,

For Telegram documentation see SendInvoice.
For Telegram documentation see CreateInvoiceLink.
Source§

fn answer_shipping_query( &self, shipping_query_id: ShippingQueryId, ok: bool, ) -> <CacheMe<B> as Requester>::AnswerShippingQuery

For Telegram documentation see AnswerShippingQuery.
Source§

fn answer_pre_checkout_query( &self, pre_checkout_query_id: PreCheckoutQueryId, ok: bool, ) -> <CacheMe<B> as Requester>::AnswerPreCheckoutQuery

For Telegram documentation see AnswerPreCheckoutQuery.
Source§

fn get_my_star_balance(&self) -> <CacheMe<B> as Requester>::GetMyStarBalance

For Telegram documentation see GetMyStarBalance.
Source§

fn get_star_transactions( &self, ) -> <CacheMe<B> as Requester>::GetStarTransactions

For Telegram documentation see GetStarTransactions.
Source§

fn refund_star_payment( &self, user_id: UserId, telegram_payment_charge_id: TelegramTransactionId, ) -> <CacheMe<B> as Requester>::RefundStarPayment

For Telegram documentation see RefundStarPayment.
Source§

fn edit_user_star_subscription( &self, user_id: UserId, telegram_payment_charge_id: TelegramTransactionId, is_canceled: bool, ) -> <CacheMe<B> as Requester>::EditUserStarSubscription

For Telegram documentation see EditUserStarSubscription.
Source§

fn set_passport_data_errors<E>( &self, user_id: UserId, errors: E, ) -> <CacheMe<B> as Requester>::SetPassportDataErrors

For Telegram documentation see SetPassportDataErrors.
Source§

fn send_game<C, G>( &self, chat_id: C, game_short_name: G, ) -> <CacheMe<B> as Requester>::SendGame
where C: Into<ChatId>, G: Into<String>,

For Telegram documentation see SendGame.
Source§

fn set_game_score( &self, user_id: UserId, score: u64, chat_id: u32, message_id: MessageId, ) -> <CacheMe<B> as Requester>::SetGameScore

For Telegram documentation see SetGameScore.
Source§

fn set_game_score_inline<I>( &self, user_id: UserId, score: u64, inline_message_id: I, ) -> <CacheMe<B> as Requester>::SetGameScoreInline
where I: Into<String>,

For Telegram documentation see SetGameScoreInline.
Source§

fn get_game_high_scores<T>( &self, user_id: UserId, target: T, ) -> <CacheMe<B> as Requester>::GetGameHighScores
where T: Into<TargetMessage>,

For Telegram documentation see GetGameHighScores.
Source§

fn approve_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> <CacheMe<B> as Requester>::ApproveChatJoinRequest
where C: Into<Recipient>,

For Telegram documentation see ApproveChatJoinRequest.
Source§

fn decline_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> <CacheMe<B> as Requester>::DeclineChatJoinRequest
where C: Into<Recipient>,

For Telegram documentation see DeclineChatJoinRequest.

Auto Trait Implementations§

§

impl<B> Freeze for CacheMe<B>
where B: Freeze,

§

impl<B> RefUnwindSafe for CacheMe<B>
where B: RefUnwindSafe,

§

impl<B> Send for CacheMe<B>
where B: Send,

§

impl<B> Sync for CacheMe<B>
where B: Sync,

§

impl<B> Unpin for CacheMe<B>
where B: Unpin,

§

impl<B> UnwindSafe for CacheMe<B>
where B: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<R> BotMessagesExt for R
where R: Requester,

Source§

fn forward<C>( &self, to_chat_id: C, message: &Message, ) -> <R as Requester>::ForwardMessage
where C: Into<Recipient>,

This function is the same as 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

This function is the same as 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

This function is the same as 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

This function is the same as 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

This function is the same as Bot::pin_chat_message, but can take in Message to pin it.
Source§

fn unpin(&self, message: &Message) -> <R as Requester>::UnpinChatMessage

This function is the same as 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
where T: Into<String>,

This function is the same as Bot::edit_message_text, but can take in Message to edit it.
Source§

fn edit_caption( &self, message: &Message, ) -> <R as Requester>::EditMessageCaption

This function is the same as 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

This function is the same as Bot::edit_message_media, but can take in Message to edit it.
Source§

fn edit_reply_markup( &self, message: &Message, ) -> <R as Requester>::EditMessageReplyMarkup

This function is the same as 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

This function is the same as Bot::stop_poll, but can take in Message to stop the poll in it.
Source§

fn delete(&self, message: &Message) -> <R as Requester>::DeleteMessage

This function is the same as 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
where C: Into<Recipient>,

This function is the same as Bot::copy_message, but can take in Message to copy it.
Source§

fn iter_star_transactions(&self) -> impl Stream<Item = StarTransaction>

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Erasable for T

Source§

const ACK_1_1_0: bool = true

Available on non-enforce_1_1_0_semantics only.
Whether this implementor has acknowledged the 1.1.0 update to unerase’s documented implementation requirements. Read more
Source§

unsafe fn unerase(this: NonNull<Erased>) -> NonNull<T>

Unerase this erased pointer. Read more
Source§

fn erase(this: NonNull<Self>) -> NonNull<Erased>

Turn this erasable pointer into an erased pointer. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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 more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> RequesterExt for T
where T: Requester,

Source§

fn cache_me(self) -> CacheMe<Self>
where Self: Sized,

Available on crate feature cache_me only.
Add get_me caching ability, see CacheMe for more.
Source§

fn erase<'a>(self) -> ErasedRequester<'a, Self::Err>
where Self: 'a + Sized,

Available on crate feature erased only.
Erase requester type.
Source§

fn trace(self, settings: Settings) -> Trace<Self>
where Self: Sized,

Available on crate feature trace_adaptor only.
Trace requests, see Trace for more.
Source§

fn throttle(self, limits: Limits) -> Throttle<Self>
where Self: Sized + Clone + Send + Sync + 'static, Self::Err: AsResponseParameters, Self::GetChat: Send,

Available on crate feature throttle only.
Add throttling ability, see Throttle for more. Read more
Source§

fn parse_mode(self, parse_mode: ParseMode) -> DefaultParseMode<Self>
where Self: Sized,

Specifies default ParseMode, which will be used during all calls to: Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more