pub struct CacheMe<B> { /* private fields */ }Available on crate feature
cache_me only.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>
impl<B> CacheMe<B>
Sourcepub fn new(bot: B) -> CacheMe<B> ⓘ
pub fn new(bot: B) -> CacheMe<B> ⓘ
Creates new cache.
Note: it’s recommended to use RequesterExt::cache_me instead.
Sourcepub fn into_inner(self) -> B
pub fn into_inner(self) -> B
Unwraps inner bot
Sourcepub fn clear(&mut self) -> Option<Me>
pub fn clear(&mut self) -> Option<Me>
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: Download> Download for CacheMe<B>
impl<B: Download> Download for CacheMe<B>
Source§fn download_file<'dst>(
&self,
path: &str,
destination: &'dst mut (dyn AsyncWrite + Unpin + Send),
) -> Self::Fut<'dst>
fn download_file<'dst>( &self, path: &str, destination: &'dst mut (dyn AsyncWrite + Unpin + Send), ) -> Self::Fut<'dst>
Download a file from Telegram into
destination. Read moreSource§impl<B> Requester for CacheMe<B>where
B: Requester,
impl<B> Requester for CacheMe<B>where
B: Requester,
type GetMe = CachedMeRequest<<B as Requester>::GetMe>
type LogOut = <B as Requester>::LogOut
type Close = <B as Requester>::Close
type GetUpdates = <B as Requester>::GetUpdates
type SetWebhook = <B as Requester>::SetWebhook
type DeleteWebhook = <B as Requester>::DeleteWebhook
type GetWebhookInfo = <B as Requester>::GetWebhookInfo
type ForwardMessage = <B as Requester>::ForwardMessage
type ForwardMessages = <B as Requester>::ForwardMessages
type CopyMessage = <B as Requester>::CopyMessage
type CopyMessages = <B as Requester>::CopyMessages
type SendMessage = <B as Requester>::SendMessage
type SendPhoto = <B as Requester>::SendPhoto
type SendAudio = <B as Requester>::SendAudio
type SendDocument = <B as Requester>::SendDocument
type SendVideo = <B as Requester>::SendVideo
type SendAnimation = <B as Requester>::SendAnimation
type SendVoice = <B as Requester>::SendVoice
type SendVideoNote = <B as Requester>::SendVideoNote
type SendPaidMedia = <B as Requester>::SendPaidMedia
type SendMediaGroup = <B as Requester>::SendMediaGroup
type SendLocation = <B as Requester>::SendLocation
type EditMessageLiveLocation = <B as Requester>::EditMessageLiveLocation
type EditMessageLiveLocationInline = <B as Requester>::EditMessageLiveLocationInline
type StopMessageLiveLocation = <B as Requester>::StopMessageLiveLocation
type StopMessageLiveLocationInline = <B as Requester>::StopMessageLiveLocationInline
type EditMessageChecklist = <B as Requester>::EditMessageChecklist
type SendVenue = <B as Requester>::SendVenue
type SendContact = <B as Requester>::SendContact
type SendPoll = <B as Requester>::SendPoll
type SendChecklist = <B as Requester>::SendChecklist
type SendDice = <B as Requester>::SendDice
type SendChatAction = <B as Requester>::SendChatAction
type SetMessageReaction = <B as Requester>::SetMessageReaction
type GetUserProfilePhotos = <B as Requester>::GetUserProfilePhotos
type 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 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 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 DeleteMessage = <B as Requester>::DeleteMessage
type DeleteMessages = <B as Requester>::DeleteMessages
type SendSticker = <B as Requester>::SendSticker
type GetStickerSet = <B as Requester>::GetStickerSet
type GetCustomEmojiStickers = <B as Requester>::GetCustomEmojiStickers
type UploadStickerFile = <B as Requester>::UploadStickerFile
type CreateNewStickerSet = <B as Requester>::CreateNewStickerSet
type AddStickerToSet = <B as Requester>::AddStickerToSet
type SetStickerPositionInSet = <B as Requester>::SetStickerPositionInSet
type DeleteStickerFromSet = <B as Requester>::DeleteStickerFromSet
type 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 ConvertGiftToStars = <B as Requester>::ConvertGiftToStars
type UpgradeGift = <B as Requester>::UpgradeGift
type TransferGift = <B as Requester>::TransferGift
type PostStory = <B as Requester>::PostStory
type EditStory = <B as Requester>::EditStory
type DeleteStory = <B as Requester>::DeleteStory
type SendInvoice = <B as Requester>::SendInvoice
type CreateInvoiceLink = <B as Requester>::CreateInvoiceLink
type AnswerShippingQuery = <B as Requester>::AnswerShippingQuery
type AnswerPreCheckoutQuery = <B as Requester>::AnswerPreCheckoutQuery
type 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 SendGame = <B as Requester>::SendGame
type SetGameScore = <B as Requester>::SetGameScore
type SetGameScoreInline = <B as Requester>::SetGameScoreInline
type GetGameHighScores = <B as Requester>::GetGameHighScores
type ApproveChatJoinRequest = <B as Requester>::ApproveChatJoinRequest
type DeclineChatJoinRequest = <B as Requester>::DeclineChatJoinRequest
Source§fn get_updates(&self) -> Self::GetUpdates
fn get_updates(&self) -> Self::GetUpdates
For Telegram documentation see
GetUpdates.Source§fn set_webhook(&self, url: Url) -> Self::SetWebhook
fn set_webhook(&self, url: Url) -> Self::SetWebhook
For Telegram documentation see
SetWebhook.Source§fn delete_webhook(&self) -> Self::DeleteWebhook
fn delete_webhook(&self) -> Self::DeleteWebhook
For Telegram documentation see
DeleteWebhook.Source§fn get_webhook_info(&self) -> Self::GetWebhookInfo
fn get_webhook_info(&self) -> Self::GetWebhookInfo
For Telegram documentation see
GetWebhookInfo.Source§fn forward_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId,
) -> Self::ForwardMessage
fn forward_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> Self::ForwardMessage
For Telegram documentation see
ForwardMessage.Source§fn forward_messages<C, F, M>(
&self,
chat_id: C,
from_chat_id: F,
message_ids: M,
) -> Self::ForwardMessages
fn forward_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> Self::ForwardMessages
For Telegram documentation see
ForwardMessages.Source§fn copy_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId,
) -> Self::CopyMessage
fn copy_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> Self::CopyMessage
For Telegram documentation see
CopyMessage.Source§fn copy_messages<C, F, M>(
&self,
chat_id: C,
from_chat_id: F,
message_ids: M,
) -> Self::CopyMessages
fn copy_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> Self::CopyMessages
For Telegram documentation see
CopyMessages.Source§fn send_message<C, T>(&self, chat_id: C, text: T) -> Self::SendMessage
fn send_message<C, T>(&self, chat_id: C, text: T) -> Self::SendMessage
For Telegram documentation see
SendMessage.Source§fn send_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SendPhoto
fn send_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SendPhoto
For Telegram documentation see
SendPhoto.Source§fn send_audio<C>(&self, chat_id: C, audio: InputFile) -> Self::SendAudio
fn send_audio<C>(&self, chat_id: C, audio: InputFile) -> Self::SendAudio
For Telegram documentation see
SendAudio.Source§fn send_document<C>(
&self,
chat_id: C,
document: InputFile,
) -> Self::SendDocument
fn send_document<C>( &self, chat_id: C, document: InputFile, ) -> Self::SendDocument
For Telegram documentation see
SendDocument.Source§fn send_video<C>(&self, chat_id: C, video: InputFile) -> Self::SendVideo
fn send_video<C>(&self, chat_id: C, video: InputFile) -> Self::SendVideo
For Telegram documentation see
SendVideo.Source§fn send_animation<C>(
&self,
chat_id: C,
animation: InputFile,
) -> Self::SendAnimation
fn send_animation<C>( &self, chat_id: C, animation: InputFile, ) -> Self::SendAnimation
For Telegram documentation see
SendAnimation.Source§fn send_voice<C>(&self, chat_id: C, voice: InputFile) -> Self::SendVoice
fn send_voice<C>(&self, chat_id: C, voice: InputFile) -> Self::SendVoice
For Telegram documentation see
SendVoice.Source§fn send_video_note<C>(
&self,
chat_id: C,
video_note: InputFile,
) -> Self::SendVideoNote
fn send_video_note<C>( &self, chat_id: C, video_note: InputFile, ) -> Self::SendVideoNote
For Telegram documentation see
SendVideoNote.Source§fn send_paid_media<C, M>(
&self,
chat_id: C,
star_count: u32,
media: M,
) -> Self::SendPaidMedia
fn send_paid_media<C, M>( &self, chat_id: C, star_count: u32, media: M, ) -> Self::SendPaidMedia
For Telegram documentation see
SendPaidMedia.Source§fn send_media_group<C, M>(&self, chat_id: C, media: M) -> Self::SendMediaGroup
fn send_media_group<C, M>(&self, chat_id: C, media: M) -> Self::SendMediaGroup
For Telegram documentation see
SendMediaGroup.Source§fn send_location<C>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
) -> Self::SendLocation
fn send_location<C>( &self, chat_id: C, latitude: f64, longitude: f64, ) -> Self::SendLocation
For Telegram documentation see
SendLocation.Source§fn edit_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64,
) -> Self::EditMessageLiveLocation
fn edit_message_live_location<C>( &self, chat_id: C, message_id: MessageId, latitude: f64, longitude: f64, ) -> Self::EditMessageLiveLocation
For Telegram documentation see
EditMessageLiveLocation.Source§fn edit_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64,
) -> Self::EditMessageLiveLocationInline
fn edit_message_live_location_inline<I>( &self, inline_message_id: I, latitude: f64, longitude: f64, ) -> Self::EditMessageLiveLocationInline
For Telegram documentation see
EditMessageLiveLocationInline.Source§fn stop_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::StopMessageLiveLocation
fn stop_message_live_location<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::StopMessageLiveLocation
For Telegram documentation see
StopMessageLiveLocation.Source§fn stop_message_live_location_inline<I>(
&self,
inline_message_id: I,
) -> Self::StopMessageLiveLocationInline
fn stop_message_live_location_inline<I>( &self, inline_message_id: I, ) -> Self::StopMessageLiveLocationInline
For Telegram documentation see
StopMessageLiveLocationInline.Source§fn edit_message_checklist<C>(
&self,
business_connection_id: BusinessConnectionId,
chat_id: C,
message_id: MessageId,
checklist: InputChecklist,
) -> Self::EditMessageChecklist
fn edit_message_checklist<C>( &self, business_connection_id: BusinessConnectionId, chat_id: C, message_id: MessageId, checklist: InputChecklist, ) -> Self::EditMessageChecklist
For Telegram documentation see
EditMessageChecklist.Source§fn send_venue<C, T, A>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
title: T,
address: A,
) -> Self::SendVenue
fn send_venue<C, T, A>( &self, chat_id: C, latitude: f64, longitude: f64, title: T, address: A, ) -> Self::SendVenue
For Telegram documentation see
SendVenue.Source§fn send_contact<C, P, F>(
&self,
chat_id: C,
phone_number: P,
first_name: F,
) -> Self::SendContact
fn send_contact<C, P, F>( &self, chat_id: C, phone_number: P, first_name: F, ) -> Self::SendContact
For Telegram documentation see
SendContact.Source§fn send_poll<C, Q, O>(
&self,
chat_id: C,
question: Q,
options: O,
) -> Self::SendPoll
fn send_poll<C, Q, O>( &self, chat_id: C, question: Q, options: O, ) -> Self::SendPoll
For Telegram documentation see
SendPoll.Source§fn send_checklist<C>(
&self,
business_connection_id: BusinessConnectionId,
chat_id: C,
checklist: InputChecklist,
) -> Self::SendChecklist
fn send_checklist<C>( &self, business_connection_id: BusinessConnectionId, chat_id: C, checklist: InputChecklist, ) -> Self::SendChecklist
For Telegram documentation see
SendChecklist.Source§fn send_chat_action<C>(
&self,
chat_id: C,
action: ChatAction,
) -> Self::SendChatAction
fn send_chat_action<C>( &self, chat_id: C, action: ChatAction, ) -> Self::SendChatAction
For Telegram documentation see
SendChatAction.Source§fn set_message_reaction<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::SetMessageReaction
fn set_message_reaction<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::SetMessageReaction
For Telegram documentation see
SetMessageReaction.Source§fn get_user_profile_photos(&self, user_id: UserId) -> Self::GetUserProfilePhotos
fn get_user_profile_photos(&self, user_id: UserId) -> Self::GetUserProfilePhotos
For Telegram documentation see
GetUserProfilePhotos.Source§fn set_user_emoji_status(&self, user_id: UserId) -> Self::SetUserEmojiStatus
fn set_user_emoji_status(&self, user_id: UserId) -> Self::SetUserEmojiStatus
For Telegram documentation see
SetUserEmojiStatus.Source§fn kick_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::KickChatMember
fn kick_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::KickChatMember
For Telegram documentation see
KickChatMember.Source§fn ban_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::BanChatMember
fn ban_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::BanChatMember
For Telegram documentation see
BanChatMember.Source§fn unban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::UnbanChatMember
fn unban_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::UnbanChatMember
For Telegram documentation see
UnbanChatMember.Source§fn restrict_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
permissions: ChatPermissions,
) -> Self::RestrictChatMember
fn restrict_chat_member<C>( &self, chat_id: C, user_id: UserId, permissions: ChatPermissions, ) -> Self::RestrictChatMember
For Telegram documentation see
RestrictChatMember.Source§fn promote_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::PromoteChatMember
fn promote_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::PromoteChatMember
For Telegram documentation see
PromoteChatMember.Source§fn set_chat_administrator_custom_title<Ch, C>(
&self,
chat_id: Ch,
user_id: UserId,
custom_title: C,
) -> Self::SetChatAdministratorCustomTitle
fn set_chat_administrator_custom_title<Ch, C>( &self, chat_id: Ch, user_id: UserId, custom_title: C, ) -> Self::SetChatAdministratorCustomTitle
For Telegram documentation see
SetChatAdministratorCustomTitle.Source§fn ban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S,
) -> Self::BanChatSenderChat
fn ban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> Self::BanChatSenderChat
For Telegram documentation see
BanChatSenderChat.Source§fn unban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S,
) -> Self::UnbanChatSenderChat
fn unban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> Self::UnbanChatSenderChat
For Telegram documentation see
UnbanChatSenderChat.Source§fn set_chat_permissions<C>(
&self,
chat_id: C,
permissions: ChatPermissions,
) -> Self::SetChatPermissions
fn set_chat_permissions<C>( &self, chat_id: C, permissions: ChatPermissions, ) -> Self::SetChatPermissions
For Telegram documentation see
SetChatPermissions.Source§fn export_chat_invite_link<C>(&self, chat_id: C) -> Self::ExportChatInviteLink
fn export_chat_invite_link<C>(&self, chat_id: C) -> Self::ExportChatInviteLink
For Telegram documentation see
ExportChatInviteLink.Source§fn create_chat_invite_link<C>(&self, chat_id: C) -> Self::CreateChatInviteLink
fn create_chat_invite_link<C>(&self, chat_id: C) -> Self::CreateChatInviteLink
For Telegram documentation see
CreateChatInviteLink.Source§fn edit_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I,
) -> Self::EditChatInviteLink
fn edit_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::EditChatInviteLink
For Telegram documentation see
EditChatInviteLink.Source§fn create_chat_subscription_invite_link<C>(
&self,
chat_id: C,
subscription_period: Seconds,
subscription_price: u32,
) -> Self::CreateChatSubscriptionInviteLink
fn create_chat_subscription_invite_link<C>( &self, chat_id: C, subscription_period: Seconds, subscription_price: u32, ) -> Self::CreateChatSubscriptionInviteLink
For Telegram documentation see
CreateChatSubscriptionInviteLink.Source§fn edit_chat_subscription_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I,
) -> Self::EditChatSubscriptionInviteLink
fn edit_chat_subscription_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::EditChatSubscriptionInviteLink
For Telegram documentation see
EditChatSubscriptionInviteLink.Source§fn revoke_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I,
) -> Self::RevokeChatInviteLink
fn revoke_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::RevokeChatInviteLink
For Telegram documentation see
RevokeChatInviteLink.Source§fn set_chat_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SetChatPhoto
fn set_chat_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SetChatPhoto
For Telegram documentation see
SetChatPhoto.Source§fn delete_chat_photo<C>(&self, chat_id: C) -> Self::DeleteChatPhoto
fn delete_chat_photo<C>(&self, chat_id: C) -> Self::DeleteChatPhoto
For Telegram documentation see
DeleteChatPhoto.Source§fn set_chat_title<C, T>(&self, chat_id: C, title: T) -> Self::SetChatTitle
fn set_chat_title<C, T>(&self, chat_id: C, title: T) -> Self::SetChatTitle
For Telegram documentation see
SetChatTitle.Source§fn set_chat_description<C>(&self, chat_id: C) -> Self::SetChatDescription
fn set_chat_description<C>(&self, chat_id: C) -> Self::SetChatDescription
For Telegram documentation see
SetChatDescription.Source§fn pin_chat_message<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::PinChatMessage
fn pin_chat_message<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::PinChatMessage
For Telegram documentation see
PinChatMessage.Source§fn unpin_chat_message<C>(&self, chat_id: C) -> Self::UnpinChatMessage
fn unpin_chat_message<C>(&self, chat_id: C) -> Self::UnpinChatMessage
For Telegram documentation see
UnpinChatMessage.Source§fn unpin_all_chat_messages<C>(&self, chat_id: C) -> Self::UnpinAllChatMessages
fn unpin_all_chat_messages<C>(&self, chat_id: C) -> Self::UnpinAllChatMessages
For Telegram documentation see
UnpinAllChatMessages.Source§fn leave_chat<C>(&self, chat_id: C) -> Self::LeaveChat
fn leave_chat<C>(&self, chat_id: C) -> Self::LeaveChat
For Telegram documentation see
LeaveChat.Source§fn get_chat_administrators<C>(&self, chat_id: C) -> Self::GetChatAdministrators
fn get_chat_administrators<C>(&self, chat_id: C) -> Self::GetChatAdministrators
For Telegram documentation see
GetChatAdministrators.Source§fn get_chat_members_count<C>(&self, chat_id: C) -> Self::GetChatMembersCount
fn get_chat_members_count<C>(&self, chat_id: C) -> Self::GetChatMembersCount
For Telegram documentation see
GetChatMembersCount.Source§fn get_chat_member_count<C>(&self, chat_id: C) -> Self::GetChatMemberCount
fn get_chat_member_count<C>(&self, chat_id: C) -> Self::GetChatMemberCount
For Telegram documentation see
GetChatMemberCount.Source§fn get_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::GetChatMember
fn get_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::GetChatMember
For Telegram documentation see
GetChatMember.Source§fn set_chat_sticker_set<C, S>(
&self,
chat_id: C,
sticker_set_name: S,
) -> Self::SetChatStickerSet
fn set_chat_sticker_set<C, S>( &self, chat_id: C, sticker_set_name: S, ) -> Self::SetChatStickerSet
For Telegram documentation see
SetChatStickerSet.Source§fn delete_chat_sticker_set<C>(&self, chat_id: C) -> Self::DeleteChatStickerSet
fn delete_chat_sticker_set<C>(&self, chat_id: C) -> Self::DeleteChatStickerSet
For Telegram documentation see
DeleteChatStickerSet.Source§fn get_forum_topic_icon_stickers(&self) -> Self::GetForumTopicIconStickers
fn get_forum_topic_icon_stickers(&self) -> Self::GetForumTopicIconStickers
For Telegram documentation see
GetForumTopicIconStickers.Source§fn create_forum_topic<C, N>(
&self,
chat_id: C,
name: N,
) -> Self::CreateForumTopic
fn create_forum_topic<C, N>( &self, chat_id: C, name: N, ) -> Self::CreateForumTopic
For Telegram documentation see
CreateForumTopic.Source§fn edit_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::EditForumTopic
fn edit_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::EditForumTopic
For Telegram documentation see
EditForumTopic.Source§fn close_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::CloseForumTopic
fn close_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::CloseForumTopic
For Telegram documentation see
CloseForumTopic.Source§fn reopen_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::ReopenForumTopic
fn reopen_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::ReopenForumTopic
For Telegram documentation see
ReopenForumTopic.Source§fn delete_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::DeleteForumTopic
fn delete_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::DeleteForumTopic
For Telegram documentation see
DeleteForumTopic.Source§fn unpin_all_forum_topic_messages<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::UnpinAllForumTopicMessages
fn unpin_all_forum_topic_messages<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::UnpinAllForumTopicMessages
For Telegram documentation see
UnpinAllForumTopicMessages.Source§fn edit_general_forum_topic<C, N>(
&self,
chat_id: C,
name: N,
) -> Self::EditGeneralForumTopic
fn edit_general_forum_topic<C, N>( &self, chat_id: C, name: N, ) -> Self::EditGeneralForumTopic
For Telegram documentation see
EditGeneralForumTopic.Source§fn close_general_forum_topic<C>(
&self,
chat_id: C,
) -> Self::CloseGeneralForumTopic
fn close_general_forum_topic<C>( &self, chat_id: C, ) -> Self::CloseGeneralForumTopic
For Telegram documentation see
CloseGeneralForumTopic.Source§fn reopen_general_forum_topic<C>(
&self,
chat_id: C,
) -> Self::ReopenGeneralForumTopic
fn reopen_general_forum_topic<C>( &self, chat_id: C, ) -> Self::ReopenGeneralForumTopic
For Telegram documentation see
ReopenGeneralForumTopic.Source§fn hide_general_forum_topic<C>(&self, chat_id: C) -> Self::HideGeneralForumTopic
fn hide_general_forum_topic<C>(&self, chat_id: C) -> Self::HideGeneralForumTopic
For Telegram documentation see
HideGeneralForumTopic.Source§fn unhide_general_forum_topic<C>(
&self,
chat_id: C,
) -> Self::UnhideGeneralForumTopic
fn unhide_general_forum_topic<C>( &self, chat_id: C, ) -> Self::UnhideGeneralForumTopic
For Telegram documentation see
UnhideGeneralForumTopic.Source§fn unpin_all_general_forum_topic_messages<C>(
&self,
chat_id: C,
) -> Self::UnpinAllGeneralForumTopicMessages
fn unpin_all_general_forum_topic_messages<C>( &self, chat_id: C, ) -> Self::UnpinAllGeneralForumTopicMessages
For Telegram documentation see
UnpinAllGeneralForumTopicMessages.Source§fn answer_callback_query(
&self,
callback_query_id: CallbackQueryId,
) -> Self::AnswerCallbackQuery
fn answer_callback_query( &self, callback_query_id: CallbackQueryId, ) -> Self::AnswerCallbackQuery
For Telegram documentation see
AnswerCallbackQuery.Source§fn get_user_chat_boosts<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::GetUserChatBoosts
fn get_user_chat_boosts<C>( &self, chat_id: C, user_id: UserId, ) -> Self::GetUserChatBoosts
For Telegram documentation see
GetUserChatBoosts.Source§fn set_my_commands<C>(&self, commands: C) -> Self::SetMyCommandswhere
C: IntoIterator<Item = BotCommand>,
fn set_my_commands<C>(&self, commands: C) -> Self::SetMyCommandswhere
C: IntoIterator<Item = BotCommand>,
For Telegram documentation see
SetMyCommands.Source§fn get_business_connection(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::GetBusinessConnection
fn get_business_connection( &self, business_connection_id: BusinessConnectionId, ) -> Self::GetBusinessConnection
For Telegram documentation see
GetBusinessConnection.Source§fn get_my_commands(&self) -> Self::GetMyCommands
fn get_my_commands(&self) -> Self::GetMyCommands
For Telegram documentation see
GetMyCommands.Source§fn set_my_name(&self) -> Self::SetMyName
fn set_my_name(&self) -> Self::SetMyName
For Telegram documentation see
SetMyName.Source§fn get_my_name(&self) -> Self::GetMyName
fn get_my_name(&self) -> Self::GetMyName
For Telegram documentation see
GetMyName.Source§fn set_my_description(&self) -> Self::SetMyDescription
fn set_my_description(&self) -> Self::SetMyDescription
For Telegram documentation see
SetMyDescription.Source§fn get_my_description(&self) -> Self::GetMyDescription
fn get_my_description(&self) -> Self::GetMyDescription
For Telegram documentation see
GetMyDescription.Source§fn set_my_short_description(&self) -> Self::SetMyShortDescription
fn set_my_short_description(&self) -> Self::SetMyShortDescription
For Telegram documentation see
SetMyShortDescription.Source§fn get_my_short_description(&self) -> Self::GetMyShortDescription
fn get_my_short_description(&self) -> Self::GetMyShortDescription
For Telegram documentation see
GetMyShortDescription.For Telegram documentation see
SetChatMenuButton.For Telegram documentation see
GetChatMenuButton.Source§fn set_my_default_administrator_rights(
&self,
) -> Self::SetMyDefaultAdministratorRights
fn set_my_default_administrator_rights( &self, ) -> Self::SetMyDefaultAdministratorRights
For Telegram documentation see
SetMyDefaultAdministratorRights.Source§fn get_my_default_administrator_rights(
&self,
) -> Self::GetMyDefaultAdministratorRights
fn get_my_default_administrator_rights( &self, ) -> Self::GetMyDefaultAdministratorRights
For Telegram documentation see
GetMyDefaultAdministratorRights.Source§fn delete_my_commands(&self) -> Self::DeleteMyCommands
fn delete_my_commands(&self) -> Self::DeleteMyCommands
For Telegram documentation see
DeleteMyCommands.Source§fn answer_inline_query<R>(
&self,
inline_query_id: InlineQueryId,
results: R,
) -> Self::AnswerInlineQuerywhere
R: IntoIterator<Item = InlineQueryResult>,
fn answer_inline_query<R>(
&self,
inline_query_id: InlineQueryId,
results: R,
) -> Self::AnswerInlineQuerywhere
R: IntoIterator<Item = InlineQueryResult>,
For Telegram documentation see
AnswerInlineQuery.Source§fn answer_web_app_query<W>(
&self,
web_app_query_id: W,
result: InlineQueryResult,
) -> Self::AnswerWebAppQuery
fn answer_web_app_query<W>( &self, web_app_query_id: W, result: InlineQueryResult, ) -> Self::AnswerWebAppQuery
For Telegram documentation see
AnswerWebAppQuery.Source§fn save_prepared_inline_message(
&self,
user_id: UserId,
result: InlineQueryResult,
) -> Self::SavePreparedInlineMessage
fn save_prepared_inline_message( &self, user_id: UserId, result: InlineQueryResult, ) -> Self::SavePreparedInlineMessage
For Telegram documentation see
SavePreparedInlineMessage.Source§fn edit_message_text<C, T>(
&self,
chat_id: C,
message_id: MessageId,
text: T,
) -> Self::EditMessageText
fn edit_message_text<C, T>( &self, chat_id: C, message_id: MessageId, text: T, ) -> Self::EditMessageText
For Telegram documentation see
EditMessageText.Source§fn edit_message_text_inline<I, T>(
&self,
inline_message_id: I,
text: T,
) -> Self::EditMessageTextInline
fn edit_message_text_inline<I, T>( &self, inline_message_id: I, text: T, ) -> Self::EditMessageTextInline
For Telegram documentation see
EditMessageTextInline.Source§fn edit_message_caption<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::EditMessageCaption
fn edit_message_caption<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::EditMessageCaption
For Telegram documentation see
EditMessageCaption.Source§fn edit_message_caption_inline<I>(
&self,
inline_message_id: I,
) -> Self::EditMessageCaptionInline
fn edit_message_caption_inline<I>( &self, inline_message_id: I, ) -> Self::EditMessageCaptionInline
For Telegram documentation see
EditMessageCaptionInline.Source§fn edit_message_media<C>(
&self,
chat_id: C,
message_id: MessageId,
media: InputMedia,
) -> Self::EditMessageMedia
fn edit_message_media<C>( &self, chat_id: C, message_id: MessageId, media: InputMedia, ) -> Self::EditMessageMedia
For Telegram documentation see
EditMessageMedia.Source§fn edit_message_media_inline<I>(
&self,
inline_message_id: I,
media: InputMedia,
) -> Self::EditMessageMediaInline
fn edit_message_media_inline<I>( &self, inline_message_id: I, media: InputMedia, ) -> Self::EditMessageMediaInline
For Telegram documentation see
EditMessageMediaInline.Source§fn edit_message_reply_markup<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::EditMessageReplyMarkup
fn edit_message_reply_markup<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::EditMessageReplyMarkup
For Telegram documentation see
EditMessageReplyMarkup.Source§fn edit_message_reply_markup_inline<I>(
&self,
inline_message_id: I,
) -> Self::EditMessageReplyMarkupInline
fn edit_message_reply_markup_inline<I>( &self, inline_message_id: I, ) -> Self::EditMessageReplyMarkupInline
For Telegram documentation see
EditMessageReplyMarkupInline.Source§fn stop_poll<C>(&self, chat_id: C, message_id: MessageId) -> Self::StopPoll
fn stop_poll<C>(&self, chat_id: C, message_id: MessageId) -> Self::StopPoll
For Telegram documentation see
StopPoll.Source§fn delete_message<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::DeleteMessage
fn delete_message<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::DeleteMessage
For Telegram documentation see
DeleteMessage.Source§fn delete_messages<C, M>(
&self,
chat_id: C,
message_ids: M,
) -> Self::DeleteMessages
fn delete_messages<C, M>( &self, chat_id: C, message_ids: M, ) -> Self::DeleteMessages
For Telegram documentation see
DeleteMessages.Source§fn send_sticker<C>(&self, chat_id: C, sticker: InputFile) -> Self::SendSticker
fn send_sticker<C>(&self, chat_id: C, sticker: InputFile) -> Self::SendSticker
For Telegram documentation see
SendSticker.Source§fn get_sticker_set<N>(&self, name: N) -> Self::GetStickerSet
fn get_sticker_set<N>(&self, name: N) -> Self::GetStickerSet
For Telegram documentation see
GetStickerSet.Source§fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C,
) -> Self::GetCustomEmojiStickerswhere
C: IntoIterator<Item = CustomEmojiId>,
fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C,
) -> Self::GetCustomEmojiStickerswhere
C: IntoIterator<Item = CustomEmojiId>,
For Telegram documentation see
GetCustomEmojiStickers.Source§fn upload_sticker_file(
&self,
user_id: UserId,
sticker: InputFile,
sticker_format: StickerFormat,
) -> Self::UploadStickerFile
fn upload_sticker_file( &self, user_id: UserId, sticker: InputFile, sticker_format: StickerFormat, ) -> Self::UploadStickerFile
For Telegram documentation see
UploadStickerFile.Source§fn create_new_sticker_set<N, T, S>(
&self,
user_id: UserId,
name: N,
title: T,
stickers: S,
) -> Self::CreateNewStickerSet
fn create_new_sticker_set<N, T, S>( &self, user_id: UserId, name: N, title: T, stickers: S, ) -> Self::CreateNewStickerSet
For Telegram documentation see
CreateNewStickerSet.Source§fn add_sticker_to_set<N>(
&self,
user_id: UserId,
name: N,
sticker: InputSticker,
) -> Self::AddStickerToSet
fn add_sticker_to_set<N>( &self, user_id: UserId, name: N, sticker: InputSticker, ) -> Self::AddStickerToSet
For Telegram documentation see
AddStickerToSet.Source§fn set_sticker_position_in_set<S>(
&self,
sticker: S,
position: u32,
) -> Self::SetStickerPositionInSet
fn set_sticker_position_in_set<S>( &self, sticker: S, position: u32, ) -> Self::SetStickerPositionInSet
For Telegram documentation see
SetStickerPositionInSet.Source§fn delete_sticker_from_set<S>(&self, sticker: S) -> Self::DeleteStickerFromSet
fn delete_sticker_from_set<S>(&self, sticker: S) -> Self::DeleteStickerFromSet
For Telegram documentation see
DeleteStickerFromSet.Source§fn replace_sticker_in_set<N, O>(
&self,
user_id: UserId,
name: N,
old_sticker: O,
sticker: InputSticker,
) -> Self::ReplaceStickerInSet
fn replace_sticker_in_set<N, O>( &self, user_id: UserId, name: N, old_sticker: O, sticker: InputSticker, ) -> Self::ReplaceStickerInSet
For Telegram documentation see
ReplaceStickerInSet.Source§fn set_sticker_set_thumbnail<N>(
&self,
name: N,
user_id: UserId,
format: StickerFormat,
) -> Self::SetStickerSetThumbnail
fn set_sticker_set_thumbnail<N>( &self, name: N, user_id: UserId, format: StickerFormat, ) -> Self::SetStickerSetThumbnail
For Telegram documentation see
SetStickerSetThumbnail.Source§fn set_custom_emoji_sticker_set_thumbnail<N>(
&self,
name: N,
) -> Self::SetCustomEmojiStickerSetThumbnail
fn set_custom_emoji_sticker_set_thumbnail<N>( &self, name: N, ) -> Self::SetCustomEmojiStickerSetThumbnail
For Telegram documentation see
SetCustomEmojiStickerSetThumbnail.Source§fn set_sticker_set_title<N, T>(
&self,
name: N,
title: T,
) -> Self::SetStickerSetTitle
fn set_sticker_set_title<N, T>( &self, name: N, title: T, ) -> Self::SetStickerSetTitle
For Telegram documentation see
SetStickerSetTitle.Source§fn delete_sticker_set<N>(&self, name: N) -> Self::DeleteStickerSet
fn delete_sticker_set<N>(&self, name: N) -> Self::DeleteStickerSet
For Telegram documentation see
DeleteStickerSet.Source§fn set_sticker_emoji_list<S, E>(
&self,
sticker: S,
emoji_list: E,
) -> Self::SetStickerEmojiList
fn set_sticker_emoji_list<S, E>( &self, sticker: S, emoji_list: E, ) -> Self::SetStickerEmojiList
For Telegram documentation see
SetStickerEmojiList.Source§fn set_sticker_keywords<S>(&self, sticker: S) -> Self::SetStickerKeywords
fn set_sticker_keywords<S>(&self, sticker: S) -> Self::SetStickerKeywords
For Telegram documentation see
SetStickerKeywords.Source§fn set_sticker_mask_position<S>(
&self,
sticker: S,
) -> Self::SetStickerMaskPosition
fn set_sticker_mask_position<S>( &self, sticker: S, ) -> Self::SetStickerMaskPosition
For Telegram documentation see
SetStickerMaskPosition.Source§fn get_available_gifts(&self) -> Self::GetAvailableGifts
fn get_available_gifts(&self) -> Self::GetAvailableGifts
For Telegram documentation see
GetAvailableGifts.Source§fn send_gift(&self, user_id: UserId, gift_id: GiftId) -> Self::SendGift
fn send_gift(&self, user_id: UserId, gift_id: GiftId) -> Self::SendGift
For Telegram documentation see
SendGift.Source§fn send_gift_chat<C>(&self, chat_id: C, gift_id: GiftId) -> Self::SendGiftChat
fn send_gift_chat<C>(&self, chat_id: C, gift_id: GiftId) -> Self::SendGiftChat
For Telegram documentation see
SendGiftChat.For Telegram documentation see
GiftPremiumSubscription.Source§fn verify_user(&self, user_id: UserId) -> Self::VerifyUser
fn verify_user(&self, user_id: UserId) -> Self::VerifyUser
For Telegram documentation see
VerifyUser.Source§fn verify_chat<C>(&self, chat_id: C) -> Self::VerifyChat
fn verify_chat<C>(&self, chat_id: C) -> Self::VerifyChat
For Telegram documentation see
VerifyChat.Source§fn remove_user_verification(
&self,
user_id: UserId,
) -> Self::RemoveUserVerification
fn remove_user_verification( &self, user_id: UserId, ) -> Self::RemoveUserVerification
For Telegram documentation see
RemoveUserVerification.Source§fn remove_chat_verification<C>(
&self,
chat_id: C,
) -> Self::RemoveChatVerification
fn remove_chat_verification<C>( &self, chat_id: C, ) -> Self::RemoveChatVerification
For Telegram documentation see
RemoveChatVerification.Source§fn read_business_message<C>(
&self,
business_connection_id: BusinessConnectionId,
chat_id: C,
message_id: MessageId,
) -> Self::ReadBusinessMessage
fn read_business_message<C>( &self, business_connection_id: BusinessConnectionId, chat_id: C, message_id: MessageId, ) -> Self::ReadBusinessMessage
For Telegram documentation see
ReadBusinessMessage.Source§fn delete_business_messages<M>(
&self,
business_connection_id: BusinessConnectionId,
message_ids: M,
) -> Self::DeleteBusinessMessageswhere
M: IntoIterator<Item = MessageId>,
fn delete_business_messages<M>(
&self,
business_connection_id: BusinessConnectionId,
message_ids: M,
) -> Self::DeleteBusinessMessageswhere
M: IntoIterator<Item = MessageId>,
For Telegram documentation see
DeleteBusinessMessages.Source§fn set_business_account_name<F>(
&self,
business_connection_id: BusinessConnectionId,
first_name: F,
) -> Self::SetBusinessAccountName
fn set_business_account_name<F>( &self, business_connection_id: BusinessConnectionId, first_name: F, ) -> Self::SetBusinessAccountName
For Telegram documentation see
SetBusinessAccountName.Source§fn set_business_account_username(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::SetBusinessAccountUsername
fn set_business_account_username( &self, business_connection_id: BusinessConnectionId, ) -> Self::SetBusinessAccountUsername
For Telegram documentation see
SetBusinessAccountUsername.Source§fn set_business_account_bio(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::SetBusinessAccountBio
fn set_business_account_bio( &self, business_connection_id: BusinessConnectionId, ) -> Self::SetBusinessAccountBio
For Telegram documentation see
SetBusinessAccountBio.Source§fn set_business_account_profile_photo(
&self,
business_connection_id: BusinessConnectionId,
photo: InputProfilePhoto,
) -> Self::SetBusinessAccountProfilePhoto
fn set_business_account_profile_photo( &self, business_connection_id: BusinessConnectionId, photo: InputProfilePhoto, ) -> Self::SetBusinessAccountProfilePhoto
For Telegram documentation see
SetBusinessAccountProfilePhoto.Source§fn remove_business_account_profile_photo(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::RemoveBusinessAccountProfilePhoto
fn remove_business_account_profile_photo( &self, business_connection_id: BusinessConnectionId, ) -> Self::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,
) -> Self::SetBusinessAccountGiftSettings
fn set_business_account_gift_settings( &self, business_connection_id: BusinessConnectionId, show_gift_button: bool, accepted_gift_types: AcceptedGiftTypes, ) -> Self::SetBusinessAccountGiftSettings
For Telegram documentation see
SetBusinessAccountGiftSettings.Source§fn get_business_account_star_balance(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::GetBusinessAccountStarBalance
fn get_business_account_star_balance( &self, business_connection_id: BusinessConnectionId, ) -> Self::GetBusinessAccountStarBalance
For Telegram documentation see
GetBusinessAccountStarBalance.Source§fn transfer_business_account_stars(
&self,
business_connection_id: BusinessConnectionId,
star_count: u32,
) -> Self::TransferBusinessAccountStars
fn transfer_business_account_stars( &self, business_connection_id: BusinessConnectionId, star_count: u32, ) -> Self::TransferBusinessAccountStars
For Telegram documentation see
TransferBusinessAccountStars.Source§fn get_business_account_gifts(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::GetBusinessAccountGifts
fn get_business_account_gifts( &self, business_connection_id: BusinessConnectionId, ) -> Self::GetBusinessAccountGifts
For Telegram documentation see
GetBusinessAccountGifts.Source§fn convert_gift_to_stars(
&self,
business_connection_id: BusinessConnectionId,
owned_gift_id: OwnedGiftId,
) -> Self::ConvertGiftToStars
fn convert_gift_to_stars( &self, business_connection_id: BusinessConnectionId, owned_gift_id: OwnedGiftId, ) -> Self::ConvertGiftToStars
For Telegram documentation see
ConvertGiftToStars.Source§fn upgrade_gift(
&self,
business_connection_id: BusinessConnectionId,
owned_gift_id: OwnedGiftId,
) -> Self::UpgradeGift
fn upgrade_gift( &self, business_connection_id: BusinessConnectionId, owned_gift_id: OwnedGiftId, ) -> Self::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,
) -> Self::TransferGift
fn transfer_gift<N>( &self, business_connection_id: BusinessConnectionId, owned_gift_id: OwnedGiftId, new_owner_chat_id: N, ) -> Self::TransferGift
For Telegram documentation see
TransferGift.Source§fn post_story(
&self,
business_connection_id: BusinessConnectionId,
content: InputStoryContent,
active_period: Seconds,
) -> Self::PostStory
fn post_story( &self, business_connection_id: BusinessConnectionId, content: InputStoryContent, active_period: Seconds, ) -> Self::PostStory
For Telegram documentation see
PostStory.Source§fn edit_story(
&self,
business_connection_id: BusinessConnectionId,
story_id: StoryId,
content: InputStoryContent,
) -> Self::EditStory
fn edit_story( &self, business_connection_id: BusinessConnectionId, story_id: StoryId, content: InputStoryContent, ) -> Self::EditStory
For Telegram documentation see
EditStory.Source§fn delete_story(
&self,
business_connection_id: BusinessConnectionId,
story_id: StoryId,
) -> Self::DeleteStory
fn delete_story( &self, business_connection_id: BusinessConnectionId, story_id: StoryId, ) -> Self::DeleteStory
For Telegram documentation see
DeleteStory.Source§fn send_invoice<Ch, T, D, Pa, C, P>(
&self,
chat_id: Ch,
title: T,
description: D,
payload: Pa,
currency: C,
prices: P,
) -> Self::SendInvoice
fn send_invoice<Ch, T, D, Pa, C, P>( &self, chat_id: Ch, title: T, description: D, payload: Pa, currency: C, prices: P, ) -> Self::SendInvoice
For Telegram documentation see
SendInvoice.Source§fn create_invoice_link<T, D, Pa, C, P>(
&self,
title: T,
description: D,
payload: Pa,
currency: C,
prices: P,
) -> Self::CreateInvoiceLinkwhere
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,
) -> Self::CreateInvoiceLinkwhere
T: Into<String>,
D: Into<String>,
Pa: Into<String>,
C: Into<String>,
P: IntoIterator<Item = LabeledPrice>,
For Telegram documentation see
CreateInvoiceLink.Source§fn answer_shipping_query(
&self,
shipping_query_id: ShippingQueryId,
ok: bool,
) -> Self::AnswerShippingQuery
fn answer_shipping_query( &self, shipping_query_id: ShippingQueryId, ok: bool, ) -> Self::AnswerShippingQuery
For Telegram documentation see
AnswerShippingQuery.Source§fn answer_pre_checkout_query(
&self,
pre_checkout_query_id: PreCheckoutQueryId,
ok: bool,
) -> Self::AnswerPreCheckoutQuery
fn answer_pre_checkout_query( &self, pre_checkout_query_id: PreCheckoutQueryId, ok: bool, ) -> Self::AnswerPreCheckoutQuery
For Telegram documentation see
AnswerPreCheckoutQuery.Source§fn get_my_star_balance(&self) -> Self::GetMyStarBalance
fn get_my_star_balance(&self) -> Self::GetMyStarBalance
For Telegram documentation see
GetMyStarBalance.Source§fn get_star_transactions(&self) -> Self::GetStarTransactions
fn get_star_transactions(&self) -> Self::GetStarTransactions
For Telegram documentation see
GetStarTransactions.Source§fn refund_star_payment(
&self,
user_id: UserId,
telegram_payment_charge_id: TelegramTransactionId,
) -> Self::RefundStarPayment
fn refund_star_payment( &self, user_id: UserId, telegram_payment_charge_id: TelegramTransactionId, ) -> Self::RefundStarPayment
For Telegram documentation see
RefundStarPayment.Source§fn edit_user_star_subscription(
&self,
user_id: UserId,
telegram_payment_charge_id: TelegramTransactionId,
is_canceled: bool,
) -> Self::EditUserStarSubscription
fn edit_user_star_subscription( &self, user_id: UserId, telegram_payment_charge_id: TelegramTransactionId, is_canceled: bool, ) -> Self::EditUserStarSubscription
For Telegram documentation see
EditUserStarSubscription.Source§fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E,
) -> Self::SetPassportDataErrorswhere
E: IntoIterator<Item = PassportElementError>,
fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E,
) -> Self::SetPassportDataErrorswhere
E: IntoIterator<Item = PassportElementError>,
For Telegram documentation see
SetPassportDataErrors.Source§fn send_game<C, G>(&self, chat_id: C, game_short_name: G) -> Self::SendGame
fn send_game<C, G>(&self, chat_id: C, game_short_name: G) -> Self::SendGame
For Telegram documentation see
SendGame.Source§fn set_game_score(
&self,
user_id: UserId,
score: u64,
chat_id: u32,
message_id: MessageId,
) -> Self::SetGameScore
fn set_game_score( &self, user_id: UserId, score: u64, chat_id: u32, message_id: MessageId, ) -> Self::SetGameScore
For Telegram documentation see
SetGameScore.Source§fn set_game_score_inline<I>(
&self,
user_id: UserId,
score: u64,
inline_message_id: I,
) -> Self::SetGameScoreInline
fn set_game_score_inline<I>( &self, user_id: UserId, score: u64, inline_message_id: I, ) -> Self::SetGameScoreInline
For Telegram documentation see
SetGameScoreInline.Source§fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T,
) -> Self::GetGameHighScoreswhere
T: Into<TargetMessage>,
fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T,
) -> Self::GetGameHighScoreswhere
T: Into<TargetMessage>,
For Telegram documentation see
GetGameHighScores.Source§fn approve_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::ApproveChatJoinRequest
fn approve_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> Self::ApproveChatJoinRequest
For Telegram documentation see
ApproveChatJoinRequest.Source§fn decline_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::DeclineChatJoinRequest
fn decline_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> Self::DeclineChatJoinRequest
For Telegram documentation see
DeclineChatJoinRequest.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> 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
Mutably borrows from an owned value. Read more
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>
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 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>
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt 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,
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,
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,
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> ⓘ
fn throttle(self, limits: Limits) -> Throttle<Self> ⓘ
Available on crate feature
throttle only.