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
sourceimpl<B> CacheMe<B>
impl<B> CacheMe<B>
sourcepub fn new(bot: B) -> CacheMe<B>ⓘNotable traits for CacheMe<B>impl<B> Requester for CacheMe<B>where
B: Requester, type Err = B::Err; type GetMe = CachedMeRequest<B::GetMe>; type LogOut = B::LogOut; type Close = B::Close; type GetUpdates = B::GetUpdates; type SetWebhook = B::SetWebhook; type DeleteWebhook = B::DeleteWebhook; type GetWebhookInfo = B::GetWebhookInfo; type ForwardMessage = B::ForwardMessage; type CopyMessage = B::CopyMessage; type SendMessage = B::SendMessage; type SendPhoto = B::SendPhoto; type SendAudio = B::SendAudio; type SendDocument = B::SendDocument; type SendVideo = B::SendVideo; type SendAnimation = B::SendAnimation; type SendVoice = B::SendVoice; type SendVideoNote = B::SendVideoNote; type SendMediaGroup = B::SendMediaGroup; type SendLocation = B::SendLocation; type EditMessageLiveLocation = B::EditMessageLiveLocation; type EditMessageLiveLocationInline = B::EditMessageLiveLocationInline; type StopMessageLiveLocation = B::StopMessageLiveLocation; type StopMessageLiveLocationInline = B::StopMessageLiveLocationInline; type SendVenue = B::SendVenue; type SendContact = B::SendContact; type SendPoll = B::SendPoll; type SendDice = B::SendDice; type SendChatAction = B::SendChatAction; type GetUserProfilePhotos = B::GetUserProfilePhotos; type GetFile = B::GetFile; type KickChatMember = B::KickChatMember; type BanChatMember = B::BanChatMember; type UnbanChatMember = B::UnbanChatMember; type RestrictChatMember = B::RestrictChatMember; type PromoteChatMember = B::PromoteChatMember; type SetChatAdministratorCustomTitle = B::SetChatAdministratorCustomTitle; type BanChatSenderChat = B::BanChatSenderChat; type UnbanChatSenderChat = B::UnbanChatSenderChat; type SetChatPermissions = B::SetChatPermissions; type ExportChatInviteLink = B::ExportChatInviteLink; type CreateChatInviteLink = B::CreateChatInviteLink; type EditChatInviteLink = B::EditChatInviteLink; type RevokeChatInviteLink = B::RevokeChatInviteLink; type SetChatPhoto = B::SetChatPhoto; type DeleteChatPhoto = B::DeleteChatPhoto; type SetChatTitle = B::SetChatTitle; type SetChatDescription = B::SetChatDescription; type PinChatMessage = B::PinChatMessage; type UnpinChatMessage = B::UnpinChatMessage; type UnpinAllChatMessages = B::UnpinAllChatMessages; type LeaveChat = B::LeaveChat; type GetChat = B::GetChat; type GetChatAdministrators = B::GetChatAdministrators; type GetChatMembersCount = B::GetChatMembersCount; type GetChatMemberCount = B::GetChatMemberCount; type GetChatMember = B::GetChatMember; type SetChatStickerSet = B::SetChatStickerSet; type DeleteChatStickerSet = B::DeleteChatStickerSet; type AnswerCallbackQuery = B::AnswerCallbackQuery; type SetMyCommands = B::SetMyCommands; type GetMyCommands = B::GetMyCommands; type SetChatMenuButton = B::SetChatMenuButton; type GetChatMenuButton = B::GetChatMenuButton; type SetMyDefaultAdministratorRights = B::SetMyDefaultAdministratorRights; type GetMyDefaultAdministratorRights = B::GetMyDefaultAdministratorRights; type DeleteMyCommands = B::DeleteMyCommands; type AnswerInlineQuery = B::AnswerInlineQuery; type AnswerWebAppQuery = B::AnswerWebAppQuery; type EditMessageText = B::EditMessageText; type EditMessageTextInline = B::EditMessageTextInline; type EditMessageCaption = B::EditMessageCaption; type EditMessageCaptionInline = B::EditMessageCaptionInline; type EditMessageMedia = B::EditMessageMedia; type EditMessageMediaInline = B::EditMessageMediaInline; type EditMessageReplyMarkup = B::EditMessageReplyMarkup; type EditMessageReplyMarkupInline = B::EditMessageReplyMarkupInline; type StopPoll = B::StopPoll; type DeleteMessage = B::DeleteMessage; type SendSticker = B::SendSticker; type GetStickerSet = B::GetStickerSet; type GetCustomEmojiStickers = B::GetCustomEmojiStickers; type UploadStickerFile = B::UploadStickerFile; type CreateNewStickerSet = B::CreateNewStickerSet; type AddStickerToSet = B::AddStickerToSet; type SetStickerPositionInSet = B::SetStickerPositionInSet; type DeleteStickerFromSet = B::DeleteStickerFromSet; type SetStickerSetThumb = B::SetStickerSetThumb; type SendInvoice = B::SendInvoice; type CreateInvoiceLink = B::CreateInvoiceLink; type AnswerShippingQuery = B::AnswerShippingQuery; type AnswerPreCheckoutQuery = B::AnswerPreCheckoutQuery; type SetPassportDataErrors = B::SetPassportDataErrors; type SendGame = B::SendGame; type SetGameScore = B::SetGameScore; type SetGameScoreInline = B::SetGameScoreInline; type GetGameHighScores = B::GetGameHighScores; type ApproveChatJoinRequest = B::ApproveChatJoinRequest; type DeclineChatJoinRequest = B::DeclineChatJoinRequest;
pub fn new(bot: B) -> CacheMe<B>ⓘNotable traits for CacheMe<B>impl<B> Requester for CacheMe<B>where
B: Requester, type Err = B::Err; type GetMe = CachedMeRequest<B::GetMe>; type LogOut = B::LogOut; type Close = B::Close; type GetUpdates = B::GetUpdates; type SetWebhook = B::SetWebhook; type DeleteWebhook = B::DeleteWebhook; type GetWebhookInfo = B::GetWebhookInfo; type ForwardMessage = B::ForwardMessage; type CopyMessage = B::CopyMessage; type SendMessage = B::SendMessage; type SendPhoto = B::SendPhoto; type SendAudio = B::SendAudio; type SendDocument = B::SendDocument; type SendVideo = B::SendVideo; type SendAnimation = B::SendAnimation; type SendVoice = B::SendVoice; type SendVideoNote = B::SendVideoNote; type SendMediaGroup = B::SendMediaGroup; type SendLocation = B::SendLocation; type EditMessageLiveLocation = B::EditMessageLiveLocation; type EditMessageLiveLocationInline = B::EditMessageLiveLocationInline; type StopMessageLiveLocation = B::StopMessageLiveLocation; type StopMessageLiveLocationInline = B::StopMessageLiveLocationInline; type SendVenue = B::SendVenue; type SendContact = B::SendContact; type SendPoll = B::SendPoll; type SendDice = B::SendDice; type SendChatAction = B::SendChatAction; type GetUserProfilePhotos = B::GetUserProfilePhotos; type GetFile = B::GetFile; type KickChatMember = B::KickChatMember; type BanChatMember = B::BanChatMember; type UnbanChatMember = B::UnbanChatMember; type RestrictChatMember = B::RestrictChatMember; type PromoteChatMember = B::PromoteChatMember; type SetChatAdministratorCustomTitle = B::SetChatAdministratorCustomTitle; type BanChatSenderChat = B::BanChatSenderChat; type UnbanChatSenderChat = B::UnbanChatSenderChat; type SetChatPermissions = B::SetChatPermissions; type ExportChatInviteLink = B::ExportChatInviteLink; type CreateChatInviteLink = B::CreateChatInviteLink; type EditChatInviteLink = B::EditChatInviteLink; type RevokeChatInviteLink = B::RevokeChatInviteLink; type SetChatPhoto = B::SetChatPhoto; type DeleteChatPhoto = B::DeleteChatPhoto; type SetChatTitle = B::SetChatTitle; type SetChatDescription = B::SetChatDescription; type PinChatMessage = B::PinChatMessage; type UnpinChatMessage = B::UnpinChatMessage; type UnpinAllChatMessages = B::UnpinAllChatMessages; type LeaveChat = B::LeaveChat; type GetChat = B::GetChat; type GetChatAdministrators = B::GetChatAdministrators; type GetChatMembersCount = B::GetChatMembersCount; type GetChatMemberCount = B::GetChatMemberCount; type GetChatMember = B::GetChatMember; type SetChatStickerSet = B::SetChatStickerSet; type DeleteChatStickerSet = B::DeleteChatStickerSet; type AnswerCallbackQuery = B::AnswerCallbackQuery; type SetMyCommands = B::SetMyCommands; type GetMyCommands = B::GetMyCommands; type SetChatMenuButton = B::SetChatMenuButton; type GetChatMenuButton = B::GetChatMenuButton; type SetMyDefaultAdministratorRights = B::SetMyDefaultAdministratorRights; type GetMyDefaultAdministratorRights = B::GetMyDefaultAdministratorRights; type DeleteMyCommands = B::DeleteMyCommands; type AnswerInlineQuery = B::AnswerInlineQuery; type AnswerWebAppQuery = B::AnswerWebAppQuery; type EditMessageText = B::EditMessageText; type EditMessageTextInline = B::EditMessageTextInline; type EditMessageCaption = B::EditMessageCaption; type EditMessageCaptionInline = B::EditMessageCaptionInline; type EditMessageMedia = B::EditMessageMedia; type EditMessageMediaInline = B::EditMessageMediaInline; type EditMessageReplyMarkup = B::EditMessageReplyMarkup; type EditMessageReplyMarkupInline = B::EditMessageReplyMarkupInline; type StopPoll = B::StopPoll; type DeleteMessage = B::DeleteMessage; type SendSticker = B::SendSticker; type GetStickerSet = B::GetStickerSet; type GetCustomEmojiStickers = B::GetCustomEmojiStickers; type UploadStickerFile = B::UploadStickerFile; type CreateNewStickerSet = B::CreateNewStickerSet; type AddStickerToSet = B::AddStickerToSet; type SetStickerPositionInSet = B::SetStickerPositionInSet; type DeleteStickerFromSet = B::DeleteStickerFromSet; type SetStickerSetThumb = B::SetStickerSetThumb; type SendInvoice = B::SendInvoice; type CreateInvoiceLink = B::CreateInvoiceLink; type AnswerShippingQuery = B::AnswerShippingQuery; type AnswerPreCheckoutQuery = B::AnswerPreCheckoutQuery; type SetPassportDataErrors = B::SetPassportDataErrors; type SendGame = B::SendGame; type SetGameScore = B::SetGameScore; type SetGameScoreInline = B::SetGameScoreInline; type GetGameHighScores = B::GetGameHighScores; type ApproveChatJoinRequest = B::ApproveChatJoinRequest; type DeclineChatJoinRequest = B::DeclineChatJoinRequest;
B: Requester, type Err = B::Err; type GetMe = CachedMeRequest<B::GetMe>; type LogOut = B::LogOut; type Close = B::Close; type GetUpdates = B::GetUpdates; type SetWebhook = B::SetWebhook; type DeleteWebhook = B::DeleteWebhook; type GetWebhookInfo = B::GetWebhookInfo; type ForwardMessage = B::ForwardMessage; type CopyMessage = B::CopyMessage; type SendMessage = B::SendMessage; type SendPhoto = B::SendPhoto; type SendAudio = B::SendAudio; type SendDocument = B::SendDocument; type SendVideo = B::SendVideo; type SendAnimation = B::SendAnimation; type SendVoice = B::SendVoice; type SendVideoNote = B::SendVideoNote; type SendMediaGroup = B::SendMediaGroup; type SendLocation = B::SendLocation; type EditMessageLiveLocation = B::EditMessageLiveLocation; type EditMessageLiveLocationInline = B::EditMessageLiveLocationInline; type StopMessageLiveLocation = B::StopMessageLiveLocation; type StopMessageLiveLocationInline = B::StopMessageLiveLocationInline; type SendVenue = B::SendVenue; type SendContact = B::SendContact; type SendPoll = B::SendPoll; type SendDice = B::SendDice; type SendChatAction = B::SendChatAction; type GetUserProfilePhotos = B::GetUserProfilePhotos; type GetFile = B::GetFile; type KickChatMember = B::KickChatMember; type BanChatMember = B::BanChatMember; type UnbanChatMember = B::UnbanChatMember; type RestrictChatMember = B::RestrictChatMember; type PromoteChatMember = B::PromoteChatMember; type SetChatAdministratorCustomTitle = B::SetChatAdministratorCustomTitle; type BanChatSenderChat = B::BanChatSenderChat; type UnbanChatSenderChat = B::UnbanChatSenderChat; type SetChatPermissions = B::SetChatPermissions; type ExportChatInviteLink = B::ExportChatInviteLink; type CreateChatInviteLink = B::CreateChatInviteLink; type EditChatInviteLink = B::EditChatInviteLink; type RevokeChatInviteLink = B::RevokeChatInviteLink; type SetChatPhoto = B::SetChatPhoto; type DeleteChatPhoto = B::DeleteChatPhoto; type SetChatTitle = B::SetChatTitle; type SetChatDescription = B::SetChatDescription; type PinChatMessage = B::PinChatMessage; type UnpinChatMessage = B::UnpinChatMessage; type UnpinAllChatMessages = B::UnpinAllChatMessages; type LeaveChat = B::LeaveChat; type GetChat = B::GetChat; type GetChatAdministrators = B::GetChatAdministrators; type GetChatMembersCount = B::GetChatMembersCount; type GetChatMemberCount = B::GetChatMemberCount; type GetChatMember = B::GetChatMember; type SetChatStickerSet = B::SetChatStickerSet; type DeleteChatStickerSet = B::DeleteChatStickerSet; type AnswerCallbackQuery = B::AnswerCallbackQuery; type SetMyCommands = B::SetMyCommands; type GetMyCommands = B::GetMyCommands; type SetChatMenuButton = B::SetChatMenuButton; type GetChatMenuButton = B::GetChatMenuButton; type SetMyDefaultAdministratorRights = B::SetMyDefaultAdministratorRights; type GetMyDefaultAdministratorRights = B::GetMyDefaultAdministratorRights; type DeleteMyCommands = B::DeleteMyCommands; type AnswerInlineQuery = B::AnswerInlineQuery; type AnswerWebAppQuery = B::AnswerWebAppQuery; type EditMessageText = B::EditMessageText; type EditMessageTextInline = B::EditMessageTextInline; type EditMessageCaption = B::EditMessageCaption; type EditMessageCaptionInline = B::EditMessageCaptionInline; type EditMessageMedia = B::EditMessageMedia; type EditMessageMediaInline = B::EditMessageMediaInline; type EditMessageReplyMarkup = B::EditMessageReplyMarkup; type EditMessageReplyMarkupInline = B::EditMessageReplyMarkupInline; type StopPoll = B::StopPoll; type DeleteMessage = B::DeleteMessage; type SendSticker = B::SendSticker; type GetStickerSet = B::GetStickerSet; type GetCustomEmojiStickers = B::GetCustomEmojiStickers; type UploadStickerFile = B::UploadStickerFile; type CreateNewStickerSet = B::CreateNewStickerSet; type AddStickerToSet = B::AddStickerToSet; type SetStickerPositionInSet = B::SetStickerPositionInSet; type DeleteStickerFromSet = B::DeleteStickerFromSet; type SetStickerSetThumb = B::SetStickerSetThumb; type SendInvoice = B::SendInvoice; type CreateInvoiceLink = B::CreateInvoiceLink; type AnswerShippingQuery = B::AnswerShippingQuery; type AnswerPreCheckoutQuery = B::AnswerPreCheckoutQuery; type SetPassportDataErrors = B::SetPassportDataErrors; type SendGame = B::SendGame; type SetGameScore = B::SetGameScore; type SetGameScoreInline = B::SetGameScoreInline; type GetGameHighScores = B::GetGameHighScores; type ApproveChatJoinRequest = B::ApproveChatJoinRequest; type DeclineChatJoinRequest = B::DeclineChatJoinRequest;
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
sourceimpl<B: Clone> Clone for CacheMe<B>
impl<B: Clone> Clone for CacheMe<B>
sourcefn clone(&self) -> CacheMe<B>ⓘNotable traits for CacheMe<B>impl<B> Requester for CacheMe<B>where
B: Requester, type Err = B::Err; type GetMe = CachedMeRequest<B::GetMe>; type LogOut = B::LogOut; type Close = B::Close; type GetUpdates = B::GetUpdates; type SetWebhook = B::SetWebhook; type DeleteWebhook = B::DeleteWebhook; type GetWebhookInfo = B::GetWebhookInfo; type ForwardMessage = B::ForwardMessage; type CopyMessage = B::CopyMessage; type SendMessage = B::SendMessage; type SendPhoto = B::SendPhoto; type SendAudio = B::SendAudio; type SendDocument = B::SendDocument; type SendVideo = B::SendVideo; type SendAnimation = B::SendAnimation; type SendVoice = B::SendVoice; type SendVideoNote = B::SendVideoNote; type SendMediaGroup = B::SendMediaGroup; type SendLocation = B::SendLocation; type EditMessageLiveLocation = B::EditMessageLiveLocation; type EditMessageLiveLocationInline = B::EditMessageLiveLocationInline; type StopMessageLiveLocation = B::StopMessageLiveLocation; type StopMessageLiveLocationInline = B::StopMessageLiveLocationInline; type SendVenue = B::SendVenue; type SendContact = B::SendContact; type SendPoll = B::SendPoll; type SendDice = B::SendDice; type SendChatAction = B::SendChatAction; type GetUserProfilePhotos = B::GetUserProfilePhotos; type GetFile = B::GetFile; type KickChatMember = B::KickChatMember; type BanChatMember = B::BanChatMember; type UnbanChatMember = B::UnbanChatMember; type RestrictChatMember = B::RestrictChatMember; type PromoteChatMember = B::PromoteChatMember; type SetChatAdministratorCustomTitle = B::SetChatAdministratorCustomTitle; type BanChatSenderChat = B::BanChatSenderChat; type UnbanChatSenderChat = B::UnbanChatSenderChat; type SetChatPermissions = B::SetChatPermissions; type ExportChatInviteLink = B::ExportChatInviteLink; type CreateChatInviteLink = B::CreateChatInviteLink; type EditChatInviteLink = B::EditChatInviteLink; type RevokeChatInviteLink = B::RevokeChatInviteLink; type SetChatPhoto = B::SetChatPhoto; type DeleteChatPhoto = B::DeleteChatPhoto; type SetChatTitle = B::SetChatTitle; type SetChatDescription = B::SetChatDescription; type PinChatMessage = B::PinChatMessage; type UnpinChatMessage = B::UnpinChatMessage; type UnpinAllChatMessages = B::UnpinAllChatMessages; type LeaveChat = B::LeaveChat; type GetChat = B::GetChat; type GetChatAdministrators = B::GetChatAdministrators; type GetChatMembersCount = B::GetChatMembersCount; type GetChatMemberCount = B::GetChatMemberCount; type GetChatMember = B::GetChatMember; type SetChatStickerSet = B::SetChatStickerSet; type DeleteChatStickerSet = B::DeleteChatStickerSet; type AnswerCallbackQuery = B::AnswerCallbackQuery; type SetMyCommands = B::SetMyCommands; type GetMyCommands = B::GetMyCommands; type SetChatMenuButton = B::SetChatMenuButton; type GetChatMenuButton = B::GetChatMenuButton; type SetMyDefaultAdministratorRights = B::SetMyDefaultAdministratorRights; type GetMyDefaultAdministratorRights = B::GetMyDefaultAdministratorRights; type DeleteMyCommands = B::DeleteMyCommands; type AnswerInlineQuery = B::AnswerInlineQuery; type AnswerWebAppQuery = B::AnswerWebAppQuery; type EditMessageText = B::EditMessageText; type EditMessageTextInline = B::EditMessageTextInline; type EditMessageCaption = B::EditMessageCaption; type EditMessageCaptionInline = B::EditMessageCaptionInline; type EditMessageMedia = B::EditMessageMedia; type EditMessageMediaInline = B::EditMessageMediaInline; type EditMessageReplyMarkup = B::EditMessageReplyMarkup; type EditMessageReplyMarkupInline = B::EditMessageReplyMarkupInline; type StopPoll = B::StopPoll; type DeleteMessage = B::DeleteMessage; type SendSticker = B::SendSticker; type GetStickerSet = B::GetStickerSet; type GetCustomEmojiStickers = B::GetCustomEmojiStickers; type UploadStickerFile = B::UploadStickerFile; type CreateNewStickerSet = B::CreateNewStickerSet; type AddStickerToSet = B::AddStickerToSet; type SetStickerPositionInSet = B::SetStickerPositionInSet; type DeleteStickerFromSet = B::DeleteStickerFromSet; type SetStickerSetThumb = B::SetStickerSetThumb; type SendInvoice = B::SendInvoice; type CreateInvoiceLink = B::CreateInvoiceLink; type AnswerShippingQuery = B::AnswerShippingQuery; type AnswerPreCheckoutQuery = B::AnswerPreCheckoutQuery; type SetPassportDataErrors = B::SetPassportDataErrors; type SendGame = B::SendGame; type SetGameScore = B::SetGameScore; type SetGameScoreInline = B::SetGameScoreInline; type GetGameHighScores = B::GetGameHighScores; type ApproveChatJoinRequest = B::ApproveChatJoinRequest; type DeclineChatJoinRequest = B::DeclineChatJoinRequest;
fn clone(&self) -> CacheMe<B>ⓘNotable traits for CacheMe<B>impl<B> Requester for CacheMe<B>where
B: Requester, type Err = B::Err; type GetMe = CachedMeRequest<B::GetMe>; type LogOut = B::LogOut; type Close = B::Close; type GetUpdates = B::GetUpdates; type SetWebhook = B::SetWebhook; type DeleteWebhook = B::DeleteWebhook; type GetWebhookInfo = B::GetWebhookInfo; type ForwardMessage = B::ForwardMessage; type CopyMessage = B::CopyMessage; type SendMessage = B::SendMessage; type SendPhoto = B::SendPhoto; type SendAudio = B::SendAudio; type SendDocument = B::SendDocument; type SendVideo = B::SendVideo; type SendAnimation = B::SendAnimation; type SendVoice = B::SendVoice; type SendVideoNote = B::SendVideoNote; type SendMediaGroup = B::SendMediaGroup; type SendLocation = B::SendLocation; type EditMessageLiveLocation = B::EditMessageLiveLocation; type EditMessageLiveLocationInline = B::EditMessageLiveLocationInline; type StopMessageLiveLocation = B::StopMessageLiveLocation; type StopMessageLiveLocationInline = B::StopMessageLiveLocationInline; type SendVenue = B::SendVenue; type SendContact = B::SendContact; type SendPoll = B::SendPoll; type SendDice = B::SendDice; type SendChatAction = B::SendChatAction; type GetUserProfilePhotos = B::GetUserProfilePhotos; type GetFile = B::GetFile; type KickChatMember = B::KickChatMember; type BanChatMember = B::BanChatMember; type UnbanChatMember = B::UnbanChatMember; type RestrictChatMember = B::RestrictChatMember; type PromoteChatMember = B::PromoteChatMember; type SetChatAdministratorCustomTitle = B::SetChatAdministratorCustomTitle; type BanChatSenderChat = B::BanChatSenderChat; type UnbanChatSenderChat = B::UnbanChatSenderChat; type SetChatPermissions = B::SetChatPermissions; type ExportChatInviteLink = B::ExportChatInviteLink; type CreateChatInviteLink = B::CreateChatInviteLink; type EditChatInviteLink = B::EditChatInviteLink; type RevokeChatInviteLink = B::RevokeChatInviteLink; type SetChatPhoto = B::SetChatPhoto; type DeleteChatPhoto = B::DeleteChatPhoto; type SetChatTitle = B::SetChatTitle; type SetChatDescription = B::SetChatDescription; type PinChatMessage = B::PinChatMessage; type UnpinChatMessage = B::UnpinChatMessage; type UnpinAllChatMessages = B::UnpinAllChatMessages; type LeaveChat = B::LeaveChat; type GetChat = B::GetChat; type GetChatAdministrators = B::GetChatAdministrators; type GetChatMembersCount = B::GetChatMembersCount; type GetChatMemberCount = B::GetChatMemberCount; type GetChatMember = B::GetChatMember; type SetChatStickerSet = B::SetChatStickerSet; type DeleteChatStickerSet = B::DeleteChatStickerSet; type AnswerCallbackQuery = B::AnswerCallbackQuery; type SetMyCommands = B::SetMyCommands; type GetMyCommands = B::GetMyCommands; type SetChatMenuButton = B::SetChatMenuButton; type GetChatMenuButton = B::GetChatMenuButton; type SetMyDefaultAdministratorRights = B::SetMyDefaultAdministratorRights; type GetMyDefaultAdministratorRights = B::GetMyDefaultAdministratorRights; type DeleteMyCommands = B::DeleteMyCommands; type AnswerInlineQuery = B::AnswerInlineQuery; type AnswerWebAppQuery = B::AnswerWebAppQuery; type EditMessageText = B::EditMessageText; type EditMessageTextInline = B::EditMessageTextInline; type EditMessageCaption = B::EditMessageCaption; type EditMessageCaptionInline = B::EditMessageCaptionInline; type EditMessageMedia = B::EditMessageMedia; type EditMessageMediaInline = B::EditMessageMediaInline; type EditMessageReplyMarkup = B::EditMessageReplyMarkup; type EditMessageReplyMarkupInline = B::EditMessageReplyMarkupInline; type StopPoll = B::StopPoll; type DeleteMessage = B::DeleteMessage; type SendSticker = B::SendSticker; type GetStickerSet = B::GetStickerSet; type GetCustomEmojiStickers = B::GetCustomEmojiStickers; type UploadStickerFile = B::UploadStickerFile; type CreateNewStickerSet = B::CreateNewStickerSet; type AddStickerToSet = B::AddStickerToSet; type SetStickerPositionInSet = B::SetStickerPositionInSet; type DeleteStickerFromSet = B::DeleteStickerFromSet; type SetStickerSetThumb = B::SetStickerSetThumb; type SendInvoice = B::SendInvoice; type CreateInvoiceLink = B::CreateInvoiceLink; type AnswerShippingQuery = B::AnswerShippingQuery; type AnswerPreCheckoutQuery = B::AnswerPreCheckoutQuery; type SetPassportDataErrors = B::SetPassportDataErrors; type SendGame = B::SendGame; type SetGameScore = B::SetGameScore; type SetGameScoreInline = B::SetGameScoreInline; type GetGameHighScores = B::GetGameHighScores; type ApproveChatJoinRequest = B::ApproveChatJoinRequest; type DeclineChatJoinRequest = B::DeclineChatJoinRequest;
B: Requester, type Err = B::Err; type GetMe = CachedMeRequest<B::GetMe>; type LogOut = B::LogOut; type Close = B::Close; type GetUpdates = B::GetUpdates; type SetWebhook = B::SetWebhook; type DeleteWebhook = B::DeleteWebhook; type GetWebhookInfo = B::GetWebhookInfo; type ForwardMessage = B::ForwardMessage; type CopyMessage = B::CopyMessage; type SendMessage = B::SendMessage; type SendPhoto = B::SendPhoto; type SendAudio = B::SendAudio; type SendDocument = B::SendDocument; type SendVideo = B::SendVideo; type SendAnimation = B::SendAnimation; type SendVoice = B::SendVoice; type SendVideoNote = B::SendVideoNote; type SendMediaGroup = B::SendMediaGroup; type SendLocation = B::SendLocation; type EditMessageLiveLocation = B::EditMessageLiveLocation; type EditMessageLiveLocationInline = B::EditMessageLiveLocationInline; type StopMessageLiveLocation = B::StopMessageLiveLocation; type StopMessageLiveLocationInline = B::StopMessageLiveLocationInline; type SendVenue = B::SendVenue; type SendContact = B::SendContact; type SendPoll = B::SendPoll; type SendDice = B::SendDice; type SendChatAction = B::SendChatAction; type GetUserProfilePhotos = B::GetUserProfilePhotos; type GetFile = B::GetFile; type KickChatMember = B::KickChatMember; type BanChatMember = B::BanChatMember; type UnbanChatMember = B::UnbanChatMember; type RestrictChatMember = B::RestrictChatMember; type PromoteChatMember = B::PromoteChatMember; type SetChatAdministratorCustomTitle = B::SetChatAdministratorCustomTitle; type BanChatSenderChat = B::BanChatSenderChat; type UnbanChatSenderChat = B::UnbanChatSenderChat; type SetChatPermissions = B::SetChatPermissions; type ExportChatInviteLink = B::ExportChatInviteLink; type CreateChatInviteLink = B::CreateChatInviteLink; type EditChatInviteLink = B::EditChatInviteLink; type RevokeChatInviteLink = B::RevokeChatInviteLink; type SetChatPhoto = B::SetChatPhoto; type DeleteChatPhoto = B::DeleteChatPhoto; type SetChatTitle = B::SetChatTitle; type SetChatDescription = B::SetChatDescription; type PinChatMessage = B::PinChatMessage; type UnpinChatMessage = B::UnpinChatMessage; type UnpinAllChatMessages = B::UnpinAllChatMessages; type LeaveChat = B::LeaveChat; type GetChat = B::GetChat; type GetChatAdministrators = B::GetChatAdministrators; type GetChatMembersCount = B::GetChatMembersCount; type GetChatMemberCount = B::GetChatMemberCount; type GetChatMember = B::GetChatMember; type SetChatStickerSet = B::SetChatStickerSet; type DeleteChatStickerSet = B::DeleteChatStickerSet; type AnswerCallbackQuery = B::AnswerCallbackQuery; type SetMyCommands = B::SetMyCommands; type GetMyCommands = B::GetMyCommands; type SetChatMenuButton = B::SetChatMenuButton; type GetChatMenuButton = B::GetChatMenuButton; type SetMyDefaultAdministratorRights = B::SetMyDefaultAdministratorRights; type GetMyDefaultAdministratorRights = B::GetMyDefaultAdministratorRights; type DeleteMyCommands = B::DeleteMyCommands; type AnswerInlineQuery = B::AnswerInlineQuery; type AnswerWebAppQuery = B::AnswerWebAppQuery; type EditMessageText = B::EditMessageText; type EditMessageTextInline = B::EditMessageTextInline; type EditMessageCaption = B::EditMessageCaption; type EditMessageCaptionInline = B::EditMessageCaptionInline; type EditMessageMedia = B::EditMessageMedia; type EditMessageMediaInline = B::EditMessageMediaInline; type EditMessageReplyMarkup = B::EditMessageReplyMarkup; type EditMessageReplyMarkupInline = B::EditMessageReplyMarkupInline; type StopPoll = B::StopPoll; type DeleteMessage = B::DeleteMessage; type SendSticker = B::SendSticker; type GetStickerSet = B::GetStickerSet; type GetCustomEmojiStickers = B::GetCustomEmojiStickers; type UploadStickerFile = B::UploadStickerFile; type CreateNewStickerSet = B::CreateNewStickerSet; type AddStickerToSet = B::AddStickerToSet; type SetStickerPositionInSet = B::SetStickerPositionInSet; type DeleteStickerFromSet = B::DeleteStickerFromSet; type SetStickerSetThumb = B::SetStickerSetThumb; type SendInvoice = B::SendInvoice; type CreateInvoiceLink = B::CreateInvoiceLink; type AnswerShippingQuery = B::AnswerShippingQuery; type AnswerPreCheckoutQuery = B::AnswerPreCheckoutQuery; type SetPassportDataErrors = B::SetPassportDataErrors; type SendGame = B::SendGame; type SetGameScore = B::SetGameScore; type SetGameScoreInline = B::SetGameScoreInline; type GetGameHighScores = B::GetGameHighScores; type ApproveChatJoinRequest = B::ApproveChatJoinRequest; type DeclineChatJoinRequest = B::DeclineChatJoinRequest;
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<'w, B: Download<'w>> Download<'w> for CacheMe<B>
impl<'w, B: Download<'w>> Download<'w> for CacheMe<B>
type Err = <B as Download<'w>>::Err
type Err = <B as Download<'w>>::Err
An error returned from
download_file.type Fut = <B as Download<'w>>::Fut
type Fut = <B as Download<'w>>::Fut
A future returned from
download_file.sourcefn download_file(
&self,
path: &str,
destination: &'w mut (dyn AsyncWrite + Unpin + Send)
) -> Self::Fut
fn download_file(
&self,
path: &str,
destination: &'w mut (dyn AsyncWrite + Unpin + Send)
) -> Self::Fut
Download a file from Telegram into
destination. Read moretype StreamErr = <B as Download<'w>>::StreamErr
type StreamErr = <B as Download<'w>>::StreamErr
An error returned from
download_file_stream. Read moretype Stream = <B as Download<'w>>::Stream
type Stream = <B as Download<'w>>::Stream
A stream returned from
download_file_stream. Read moresourcefn download_file_stream(&self, path: &str) -> Self::Stream
fn download_file_stream(&self, path: &str) -> Self::Stream
Download a file from Telegram as [
Stream]. Read moresourceimpl<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
sourcefn get_updates(&self) -> Self::GetUpdates
fn get_updates(&self) -> Self::GetUpdates
For Telegram documentation see
GetUpdates.type SetWebhook = <B as Requester>::SetWebhook
sourcefn set_webhook(&self, url: Url) -> Self::SetWebhook
fn set_webhook(&self, url: Url) -> Self::SetWebhook
For Telegram documentation see
SetWebhook.type DeleteWebhook = <B as Requester>::DeleteWebhook
sourcefn delete_webhook(&self) -> Self::DeleteWebhook
fn delete_webhook(&self) -> Self::DeleteWebhook
For Telegram documentation see
DeleteWebhook.type GetWebhookInfo = <B as Requester>::GetWebhookInfo
sourcefn get_webhook_info(&self) -> Self::GetWebhookInfo
fn get_webhook_info(&self) -> Self::GetWebhookInfo
For Telegram documentation see
GetWebhookInfo.type ForwardMessage = <B as Requester>::ForwardMessage
sourcefn forward_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId
) -> Self::ForwardMessagewhere
C: Into<Recipient>,
F: Into<Recipient>,
fn forward_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId
) -> Self::ForwardMessagewhere
C: Into<Recipient>,
F: Into<Recipient>,
For Telegram documentation see
ForwardMessage.type CopyMessage = <B as Requester>::CopyMessage
sourcefn copy_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId
) -> Self::CopyMessagewhere
C: Into<Recipient>,
F: Into<Recipient>,
fn copy_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId
) -> Self::CopyMessagewhere
C: Into<Recipient>,
F: Into<Recipient>,
For Telegram documentation see
CopyMessage.type SendMessage = <B as Requester>::SendMessage
sourcefn send_message<C, T>(&self, chat_id: C, text: T) -> Self::SendMessagewhere
C: Into<Recipient>,
T: Into<String>,
fn send_message<C, T>(&self, chat_id: C, text: T) -> Self::SendMessagewhere
C: Into<Recipient>,
T: Into<String>,
For Telegram documentation see
SendMessage.type SendPhoto = <B as Requester>::SendPhoto
sourcefn send_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SendPhotowhere
C: Into<Recipient>,
fn send_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SendPhotowhere
C: Into<Recipient>,
For Telegram documentation see
SendPhoto.type SendAudio = <B as Requester>::SendAudio
sourcefn send_audio<C>(&self, chat_id: C, audio: InputFile) -> Self::SendAudiowhere
C: Into<Recipient>,
fn send_audio<C>(&self, chat_id: C, audio: InputFile) -> Self::SendAudiowhere
C: Into<Recipient>,
For Telegram documentation see
SendAudio.type SendDocument = <B as Requester>::SendDocument
sourcefn send_document<C>(&self, chat_id: C, document: InputFile) -> Self::SendDocumentwhere
C: Into<Recipient>,
fn send_document<C>(&self, chat_id: C, document: InputFile) -> Self::SendDocumentwhere
C: Into<Recipient>,
For Telegram documentation see
SendDocument.type SendVideo = <B as Requester>::SendVideo
sourcefn send_video<C>(&self, chat_id: C, video: InputFile) -> Self::SendVideowhere
C: Into<Recipient>,
fn send_video<C>(&self, chat_id: C, video: InputFile) -> Self::SendVideowhere
C: Into<Recipient>,
For Telegram documentation see
SendVideo.type SendAnimation = <B as Requester>::SendAnimation
sourcefn send_animation<C>(
&self,
chat_id: C,
animation: InputFile
) -> Self::SendAnimationwhere
C: Into<Recipient>,
fn send_animation<C>(
&self,
chat_id: C,
animation: InputFile
) -> Self::SendAnimationwhere
C: Into<Recipient>,
For Telegram documentation see
SendAnimation.type SendVoice = <B as Requester>::SendVoice
sourcefn send_voice<C>(&self, chat_id: C, voice: InputFile) -> Self::SendVoicewhere
C: Into<Recipient>,
fn send_voice<C>(&self, chat_id: C, voice: InputFile) -> Self::SendVoicewhere
C: Into<Recipient>,
For Telegram documentation see
SendVoice.type SendVideoNote = <B as Requester>::SendVideoNote
sourcefn send_video_note<C>(
&self,
chat_id: C,
video_note: InputFile
) -> Self::SendVideoNotewhere
C: Into<Recipient>,
fn send_video_note<C>(
&self,
chat_id: C,
video_note: InputFile
) -> Self::SendVideoNotewhere
C: Into<Recipient>,
For Telegram documentation see
SendVideoNote.type SendMediaGroup = <B as Requester>::SendMediaGroup
sourcefn send_media_group<C, M>(&self, chat_id: C, media: M) -> Self::SendMediaGroupwhere
C: Into<Recipient>,
M: IntoIterator<Item = InputMedia>,
fn send_media_group<C, M>(&self, chat_id: C, media: M) -> Self::SendMediaGroupwhere
C: Into<Recipient>,
M: IntoIterator<Item = InputMedia>,
For Telegram documentation see
SendMediaGroup.type SendLocation = <B as Requester>::SendLocation
sourcefn send_location<C>(
&self,
chat_id: C,
latitude: f64,
longitude: f64
) -> Self::SendLocationwhere
C: Into<Recipient>,
fn send_location<C>(
&self,
chat_id: C,
latitude: f64,
longitude: f64
) -> Self::SendLocationwhere
C: Into<Recipient>,
For Telegram documentation see
SendLocation.type EditMessageLiveLocation = <B as Requester>::EditMessageLiveLocation
sourcefn edit_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64
) -> Self::EditMessageLiveLocationwhere
C: Into<Recipient>,
fn edit_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64
) -> Self::EditMessageLiveLocationwhere
C: Into<Recipient>,
For Telegram documentation see
EditMessageLiveLocation.type EditMessageLiveLocationInline = <B as Requester>::EditMessageLiveLocationInline
sourcefn edit_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64
) -> Self::EditMessageLiveLocationInlinewhere
I: Into<String>,
fn edit_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64
) -> Self::EditMessageLiveLocationInlinewhere
I: Into<String>,
For Telegram documentation see
EditMessageLiveLocationInline.type StopMessageLiveLocation = <B as Requester>::StopMessageLiveLocation
sourcefn stop_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64
) -> Self::StopMessageLiveLocationwhere
C: Into<Recipient>,
fn stop_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64
) -> Self::StopMessageLiveLocationwhere
C: Into<Recipient>,
For Telegram documentation see
StopMessageLiveLocation.type StopMessageLiveLocationInline = <B as Requester>::StopMessageLiveLocationInline
sourcefn stop_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64
) -> Self::StopMessageLiveLocationInlinewhere
I: Into<String>,
fn stop_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64
) -> Self::StopMessageLiveLocationInlinewhere
I: Into<String>,
For Telegram documentation see
StopMessageLiveLocationInline.type SendVenue = <B as Requester>::SendVenue
sourcefn send_venue<C, T, A>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
title: T,
address: A
) -> Self::SendVenuewhere
C: Into<Recipient>,
T: Into<String>,
A: Into<String>,
fn send_venue<C, T, A>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
title: T,
address: A
) -> Self::SendVenuewhere
C: Into<Recipient>,
T: Into<String>,
A: Into<String>,
For Telegram documentation see
SendVenue.type SendContact = <B as Requester>::SendContact
sourcefn send_contact<C, P, F>(
&self,
chat_id: C,
phone_number: P,
first_name: F
) -> Self::SendContactwhere
C: Into<Recipient>,
P: Into<String>,
F: Into<String>,
fn send_contact<C, P, F>(
&self,
chat_id: C,
phone_number: P,
first_name: F
) -> Self::SendContactwhere
C: Into<Recipient>,
P: Into<String>,
F: Into<String>,
For Telegram documentation see
SendContact.type SendPoll = <B as Requester>::SendPoll
sourcefn send_poll<C, Q, O>(&self, chat_id: C, question: Q, options: O) -> Self::SendPollwhere
C: Into<Recipient>,
Q: Into<String>,
O: IntoIterator<Item = String>,
fn send_poll<C, Q, O>(&self, chat_id: C, question: Q, options: O) -> Self::SendPollwhere
C: Into<Recipient>,
Q: Into<String>,
O: IntoIterator<Item = String>,
For Telegram documentation see
SendPoll.type SendDice = <B as Requester>::SendDice
sourcefn send_dice<C>(&self, chat_id: C) -> Self::SendDicewhere
C: Into<Recipient>,
fn send_dice<C>(&self, chat_id: C) -> Self::SendDicewhere
C: Into<Recipient>,
For Telegram documentation see
SendDice.type SendChatAction = <B as Requester>::SendChatAction
sourcefn send_chat_action<C>(
&self,
chat_id: C,
action: ChatAction
) -> Self::SendChatActionwhere
C: Into<Recipient>,
fn send_chat_action<C>(
&self,
chat_id: C,
action: ChatAction
) -> Self::SendChatActionwhere
C: Into<Recipient>,
For Telegram documentation see
SendChatAction.type GetUserProfilePhotos = <B as Requester>::GetUserProfilePhotos
sourcefn get_user_profile_photos(&self, user_id: UserId) -> Self::GetUserProfilePhotos
fn get_user_profile_photos(&self, user_id: UserId) -> Self::GetUserProfilePhotos
For Telegram documentation see
GetUserProfilePhotos.type GetFile = <B as Requester>::GetFile
sourcefn get_file<F>(&self, file_id: F) -> Self::GetFilewhere
F: Into<String>,
fn get_file<F>(&self, file_id: F) -> Self::GetFilewhere
F: Into<String>,
For Telegram documentation see
GetFile.type KickChatMember = <B as Requester>::KickChatMember
sourcefn kick_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::KickChatMemberwhere
C: Into<Recipient>,
fn kick_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::KickChatMemberwhere
C: Into<Recipient>,
For Telegram documentation see
KickChatMember.type BanChatMember = <B as Requester>::BanChatMember
sourcefn ban_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::BanChatMemberwhere
C: Into<Recipient>,
fn ban_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::BanChatMemberwhere
C: Into<Recipient>,
For Telegram documentation see
BanChatMember.type UnbanChatMember = <B as Requester>::UnbanChatMember
sourcefn unban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> Self::UnbanChatMemberwhere
C: Into<Recipient>,
fn unban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> Self::UnbanChatMemberwhere
C: Into<Recipient>,
For Telegram documentation see
UnbanChatMember.type RestrictChatMember = <B as Requester>::RestrictChatMember
sourcefn restrict_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
permissions: ChatPermissions
) -> Self::RestrictChatMemberwhere
C: Into<Recipient>,
fn restrict_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
permissions: ChatPermissions
) -> Self::RestrictChatMemberwhere
C: Into<Recipient>,
For Telegram documentation see
RestrictChatMember.type PromoteChatMember = <B as Requester>::PromoteChatMember
sourcefn promote_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> Self::PromoteChatMemberwhere
C: Into<Recipient>,
fn promote_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> Self::PromoteChatMemberwhere
C: Into<Recipient>,
For Telegram documentation see
PromoteChatMember.type SetChatAdministratorCustomTitle = <B as Requester>::SetChatAdministratorCustomTitle
sourcefn set_chat_administrator_custom_title<Ch, C>(
&self,
chat_id: Ch,
user_id: UserId,
custom_title: C
) -> Self::SetChatAdministratorCustomTitlewhere
Ch: Into<Recipient>,
C: Into<String>,
fn set_chat_administrator_custom_title<Ch, C>(
&self,
chat_id: Ch,
user_id: UserId,
custom_title: C
) -> Self::SetChatAdministratorCustomTitlewhere
Ch: Into<Recipient>,
C: Into<String>,
For Telegram documentation see
SetChatAdministratorCustomTitle.type BanChatSenderChat = <B as Requester>::BanChatSenderChat
sourcefn ban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S
) -> Self::BanChatSenderChatwhere
C: Into<Recipient>,
S: Into<ChatId>,
fn ban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S
) -> Self::BanChatSenderChatwhere
C: Into<Recipient>,
S: Into<ChatId>,
For Telegram documentation see
BanChatSenderChat.type UnbanChatSenderChat = <B as Requester>::UnbanChatSenderChat
sourcefn unban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S
) -> Self::UnbanChatSenderChatwhere
C: Into<Recipient>,
S: Into<ChatId>,
fn unban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S
) -> Self::UnbanChatSenderChatwhere
C: Into<Recipient>,
S: Into<ChatId>,
For Telegram documentation see
UnbanChatSenderChat.type SetChatPermissions = <B as Requester>::SetChatPermissions
sourcefn set_chat_permissions<C>(
&self,
chat_id: C,
permissions: ChatPermissions
) -> Self::SetChatPermissionswhere
C: Into<Recipient>,
fn set_chat_permissions<C>(
&self,
chat_id: C,
permissions: ChatPermissions
) -> Self::SetChatPermissionswhere
C: Into<Recipient>,
For Telegram documentation see
SetChatPermissions.type ExportChatInviteLink = <B as Requester>::ExportChatInviteLink
sourcefn export_chat_invite_link<C>(&self, chat_id: C) -> Self::ExportChatInviteLinkwhere
C: Into<Recipient>,
fn export_chat_invite_link<C>(&self, chat_id: C) -> Self::ExportChatInviteLinkwhere
C: Into<Recipient>,
For Telegram documentation see
ExportChatInviteLink.type CreateChatInviteLink = <B as Requester>::CreateChatInviteLink
sourcefn create_chat_invite_link<C>(&self, chat_id: C) -> Self::CreateChatInviteLinkwhere
C: Into<Recipient>,
fn create_chat_invite_link<C>(&self, chat_id: C) -> Self::CreateChatInviteLinkwhere
C: Into<Recipient>,
For Telegram documentation see
CreateChatInviteLink.type EditChatInviteLink = <B as Requester>::EditChatInviteLink
sourcefn edit_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I
) -> Self::EditChatInviteLinkwhere
C: Into<Recipient>,
I: Into<String>,
fn edit_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I
) -> Self::EditChatInviteLinkwhere
C: Into<Recipient>,
I: Into<String>,
For Telegram documentation see
EditChatInviteLink.type RevokeChatInviteLink = <B as Requester>::RevokeChatInviteLink
sourcefn revoke_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I
) -> Self::RevokeChatInviteLinkwhere
C: Into<Recipient>,
I: Into<String>,
fn revoke_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I
) -> Self::RevokeChatInviteLinkwhere
C: Into<Recipient>,
I: Into<String>,
For Telegram documentation see
RevokeChatInviteLink.type SetChatPhoto = <B as Requester>::SetChatPhoto
sourcefn set_chat_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SetChatPhotowhere
C: Into<Recipient>,
fn set_chat_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SetChatPhotowhere
C: Into<Recipient>,
For Telegram documentation see
SetChatPhoto.type DeleteChatPhoto = <B as Requester>::DeleteChatPhoto
sourcefn delete_chat_photo<C>(&self, chat_id: C) -> Self::DeleteChatPhotowhere
C: Into<Recipient>,
fn delete_chat_photo<C>(&self, chat_id: C) -> Self::DeleteChatPhotowhere
C: Into<Recipient>,
For Telegram documentation see
DeleteChatPhoto.type SetChatTitle = <B as Requester>::SetChatTitle
sourcefn set_chat_title<C, T>(&self, chat_id: C, title: T) -> Self::SetChatTitlewhere
C: Into<Recipient>,
T: Into<String>,
fn set_chat_title<C, T>(&self, chat_id: C, title: T) -> Self::SetChatTitlewhere
C: Into<Recipient>,
T: Into<String>,
For Telegram documentation see
SetChatTitle.type SetChatDescription = <B as Requester>::SetChatDescription
sourcefn set_chat_description<C>(&self, chat_id: C) -> Self::SetChatDescriptionwhere
C: Into<Recipient>,
fn set_chat_description<C>(&self, chat_id: C) -> Self::SetChatDescriptionwhere
C: Into<Recipient>,
For Telegram documentation see
SetChatDescription.type PinChatMessage = <B as Requester>::PinChatMessage
sourcefn pin_chat_message<C>(
&self,
chat_id: C,
message_id: MessageId
) -> Self::PinChatMessagewhere
C: Into<Recipient>,
fn pin_chat_message<C>(
&self,
chat_id: C,
message_id: MessageId
) -> Self::PinChatMessagewhere
C: Into<Recipient>,
For Telegram documentation see
PinChatMessage.type UnpinChatMessage = <B as Requester>::UnpinChatMessage
sourcefn unpin_chat_message<C>(&self, chat_id: C) -> Self::UnpinChatMessagewhere
C: Into<Recipient>,
fn unpin_chat_message<C>(&self, chat_id: C) -> Self::UnpinChatMessagewhere
C: Into<Recipient>,
For Telegram documentation see
UnpinChatMessage.type UnpinAllChatMessages = <B as Requester>::UnpinAllChatMessages
sourcefn unpin_all_chat_messages<C>(&self, chat_id: C) -> Self::UnpinAllChatMessageswhere
C: Into<Recipient>,
fn unpin_all_chat_messages<C>(&self, chat_id: C) -> Self::UnpinAllChatMessageswhere
C: Into<Recipient>,
For Telegram documentation see
UnpinAllChatMessages.type LeaveChat = <B as Requester>::LeaveChat
sourcefn leave_chat<C>(&self, chat_id: C) -> Self::LeaveChatwhere
C: Into<Recipient>,
fn leave_chat<C>(&self, chat_id: C) -> Self::LeaveChatwhere
C: Into<Recipient>,
For Telegram documentation see
LeaveChat.type GetChat = <B as Requester>::GetChat
sourcefn get_chat<C>(&self, chat_id: C) -> Self::GetChatwhere
C: Into<Recipient>,
fn get_chat<C>(&self, chat_id: C) -> Self::GetChatwhere
C: Into<Recipient>,
For Telegram documentation see
GetChat.type GetChatAdministrators = <B as Requester>::GetChatAdministrators
sourcefn get_chat_administrators<C>(&self, chat_id: C) -> Self::GetChatAdministratorswhere
C: Into<Recipient>,
fn get_chat_administrators<C>(&self, chat_id: C) -> Self::GetChatAdministratorswhere
C: Into<Recipient>,
For Telegram documentation see
GetChatAdministrators.type GetChatMembersCount = <B as Requester>::GetChatMembersCount
sourcefn get_chat_members_count<C>(&self, chat_id: C) -> Self::GetChatMembersCountwhere
C: Into<Recipient>,
fn get_chat_members_count<C>(&self, chat_id: C) -> Self::GetChatMembersCountwhere
C: Into<Recipient>,
For Telegram documentation see
GetChatMembersCount.type GetChatMemberCount = <B as Requester>::GetChatMemberCount
sourcefn get_chat_member_count<C>(&self, chat_id: C) -> Self::GetChatMemberCountwhere
C: Into<Recipient>,
fn get_chat_member_count<C>(&self, chat_id: C) -> Self::GetChatMemberCountwhere
C: Into<Recipient>,
For Telegram documentation see
GetChatMemberCount.type GetChatMember = <B as Requester>::GetChatMember
sourcefn get_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::GetChatMemberwhere
C: Into<Recipient>,
fn get_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::GetChatMemberwhere
C: Into<Recipient>,
For Telegram documentation see
GetChatMember.type SetChatStickerSet = <B as Requester>::SetChatStickerSet
sourcefn set_chat_sticker_set<C, S>(
&self,
chat_id: C,
sticker_set_name: S
) -> Self::SetChatStickerSetwhere
C: Into<Recipient>,
S: Into<String>,
fn set_chat_sticker_set<C, S>(
&self,
chat_id: C,
sticker_set_name: S
) -> Self::SetChatStickerSetwhere
C: Into<Recipient>,
S: Into<String>,
For Telegram documentation see
SetChatStickerSet.type DeleteChatStickerSet = <B as Requester>::DeleteChatStickerSet
sourcefn delete_chat_sticker_set<C>(&self, chat_id: C) -> Self::DeleteChatStickerSetwhere
C: Into<Recipient>,
fn delete_chat_sticker_set<C>(&self, chat_id: C) -> Self::DeleteChatStickerSetwhere
C: Into<Recipient>,
For Telegram documentation see
DeleteChatStickerSet.type AnswerCallbackQuery = <B as Requester>::AnswerCallbackQuery
sourcefn answer_callback_query<C>(
&self,
callback_query_id: C
) -> Self::AnswerCallbackQuerywhere
C: Into<String>,
fn answer_callback_query<C>(
&self,
callback_query_id: C
) -> Self::AnswerCallbackQuerywhere
C: Into<String>,
For Telegram documentation see
AnswerCallbackQuery.type SetMyCommands = <B as Requester>::SetMyCommands
sourcefn set_my_commands<C>(&self, commands: C) -> Self::SetMyCommandswhere
C: IntoIterator<Item = BotCommand>,
fn set_my_commands<C>(&self, commands: C) -> Self::SetMyCommandswhere
C: IntoIterator<Item = BotCommand>,
For Telegram documentation see
SetMyCommands.type GetMyCommands = <B as Requester>::GetMyCommands
sourcefn get_my_commands(&self) -> Self::GetMyCommands
fn get_my_commands(&self) -> Self::GetMyCommands
For Telegram documentation see
GetMyCommands.type SetChatMenuButton = <B as Requester>::SetChatMenuButton
For Telegram documentation see
SetChatMenuButton.type GetChatMenuButton = <B as Requester>::GetChatMenuButton
For Telegram documentation see
GetChatMenuButton.type SetMyDefaultAdministratorRights = <B as Requester>::SetMyDefaultAdministratorRights
sourcefn set_my_default_administrator_rights(
&self
) -> Self::SetMyDefaultAdministratorRights
fn set_my_default_administrator_rights(
&self
) -> Self::SetMyDefaultAdministratorRights
For Telegram documentation see
SetMyDefaultAdministratorRights.type GetMyDefaultAdministratorRights = <B as Requester>::GetMyDefaultAdministratorRights
sourcefn get_my_default_administrator_rights(
&self
) -> Self::GetMyDefaultAdministratorRights
fn get_my_default_administrator_rights(
&self
) -> Self::GetMyDefaultAdministratorRights
For Telegram documentation see
GetMyDefaultAdministratorRights.type DeleteMyCommands = <B as Requester>::DeleteMyCommands
sourcefn delete_my_commands(&self) -> Self::DeleteMyCommands
fn delete_my_commands(&self) -> Self::DeleteMyCommands
For Telegram documentation see
DeleteMyCommands.type AnswerInlineQuery = <B as Requester>::AnswerInlineQuery
sourcefn answer_inline_query<I, R>(
&self,
inline_query_id: I,
results: R
) -> Self::AnswerInlineQuerywhere
I: Into<String>,
R: IntoIterator<Item = InlineQueryResult>,
fn answer_inline_query<I, R>(
&self,
inline_query_id: I,
results: R
) -> Self::AnswerInlineQuerywhere
I: Into<String>,
R: IntoIterator<Item = InlineQueryResult>,
For Telegram documentation see
AnswerInlineQuery.type AnswerWebAppQuery = <B as Requester>::AnswerWebAppQuery
sourcefn answer_web_app_query<W>(
&self,
web_app_query_id: W,
result: InlineQueryResult
) -> Self::AnswerWebAppQuerywhere
W: Into<String>,
fn answer_web_app_query<W>(
&self,
web_app_query_id: W,
result: InlineQueryResult
) -> Self::AnswerWebAppQuerywhere
W: Into<String>,
For Telegram documentation see
AnswerWebAppQuery.type EditMessageText = <B as Requester>::EditMessageText
sourcefn edit_message_text<C, T>(
&self,
chat_id: C,
message_id: MessageId,
text: T
) -> Self::EditMessageTextwhere
C: Into<Recipient>,
T: Into<String>,
fn edit_message_text<C, T>(
&self,
chat_id: C,
message_id: MessageId,
text: T
) -> Self::EditMessageTextwhere
C: Into<Recipient>,
T: Into<String>,
For Telegram documentation see
EditMessageText.type EditMessageTextInline = <B as Requester>::EditMessageTextInline
sourcefn edit_message_text_inline<I, T>(
&self,
inline_message_id: I,
text: T
) -> Self::EditMessageTextInlinewhere
I: Into<String>,
T: Into<String>,
fn edit_message_text_inline<I, T>(
&self,
inline_message_id: I,
text: T
) -> Self::EditMessageTextInlinewhere
I: Into<String>,
T: Into<String>,
For Telegram documentation see
EditMessageTextInline.type EditMessageCaption = <B as Requester>::EditMessageCaption
sourcefn edit_message_caption<C>(
&self,
chat_id: C,
message_id: MessageId
) -> Self::EditMessageCaptionwhere
C: Into<Recipient>,
fn edit_message_caption<C>(
&self,
chat_id: C,
message_id: MessageId
) -> Self::EditMessageCaptionwhere
C: Into<Recipient>,
For Telegram documentation see
EditMessageCaption.type EditMessageCaptionInline = <B as Requester>::EditMessageCaptionInline
sourcefn edit_message_caption_inline<I>(
&self,
inline_message_id: I
) -> Self::EditMessageCaptionInlinewhere
I: Into<String>,
fn edit_message_caption_inline<I>(
&self,
inline_message_id: I
) -> Self::EditMessageCaptionInlinewhere
I: Into<String>,
For Telegram documentation see
EditMessageCaptionInline.type EditMessageMedia = <B as Requester>::EditMessageMedia
sourcefn edit_message_media<C>(
&self,
chat_id: C,
message_id: MessageId,
media: InputMedia
) -> Self::EditMessageMediawhere
C: Into<Recipient>,
fn edit_message_media<C>(
&self,
chat_id: C,
message_id: MessageId,
media: InputMedia
) -> Self::EditMessageMediawhere
C: Into<Recipient>,
For Telegram documentation see
EditMessageMedia.type EditMessageMediaInline = <B as Requester>::EditMessageMediaInline
sourcefn edit_message_media_inline<I>(
&self,
inline_message_id: I,
media: InputMedia
) -> Self::EditMessageMediaInlinewhere
I: Into<String>,
fn edit_message_media_inline<I>(
&self,
inline_message_id: I,
media: InputMedia
) -> Self::EditMessageMediaInlinewhere
I: Into<String>,
For Telegram documentation see
EditMessageMediaInline.type EditMessageReplyMarkup = <B as Requester>::EditMessageReplyMarkup
sourcefn edit_message_reply_markup<C>(
&self,
chat_id: C,
message_id: MessageId
) -> Self::EditMessageReplyMarkupwhere
C: Into<Recipient>,
fn edit_message_reply_markup<C>(
&self,
chat_id: C,
message_id: MessageId
) -> Self::EditMessageReplyMarkupwhere
C: Into<Recipient>,
For Telegram documentation see
EditMessageReplyMarkup.type EditMessageReplyMarkupInline = <B as Requester>::EditMessageReplyMarkupInline
sourcefn edit_message_reply_markup_inline<I>(
&self,
inline_message_id: I
) -> Self::EditMessageReplyMarkupInlinewhere
I: Into<String>,
fn edit_message_reply_markup_inline<I>(
&self,
inline_message_id: I
) -> Self::EditMessageReplyMarkupInlinewhere
I: Into<String>,
For Telegram documentation see
EditMessageReplyMarkupInline.type StopPoll = <B as Requester>::StopPoll
sourcefn stop_poll<C>(&self, chat_id: C, message_id: MessageId) -> Self::StopPollwhere
C: Into<Recipient>,
fn stop_poll<C>(&self, chat_id: C, message_id: MessageId) -> Self::StopPollwhere
C: Into<Recipient>,
For Telegram documentation see
StopPoll.type DeleteMessage = <B as Requester>::DeleteMessage
sourcefn delete_message<C>(
&self,
chat_id: C,
message_id: MessageId
) -> Self::DeleteMessagewhere
C: Into<Recipient>,
fn delete_message<C>(
&self,
chat_id: C,
message_id: MessageId
) -> Self::DeleteMessagewhere
C: Into<Recipient>,
For Telegram documentation see
DeleteMessage.type SendSticker = <B as Requester>::SendSticker
sourcefn send_sticker<C>(&self, chat_id: C, sticker: InputFile) -> Self::SendStickerwhere
C: Into<Recipient>,
fn send_sticker<C>(&self, chat_id: C, sticker: InputFile) -> Self::SendStickerwhere
C: Into<Recipient>,
For Telegram documentation see
SendSticker.type GetStickerSet = <B as Requester>::GetStickerSet
sourcefn get_sticker_set<N>(&self, name: N) -> Self::GetStickerSetwhere
N: Into<String>,
fn get_sticker_set<N>(&self, name: N) -> Self::GetStickerSetwhere
N: Into<String>,
For Telegram documentation see
GetStickerSet.type GetCustomEmojiStickers = <B as Requester>::GetCustomEmojiStickers
sourcefn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C
) -> Self::GetCustomEmojiStickerswhere
C: IntoIterator<Item = String>,
fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C
) -> Self::GetCustomEmojiStickerswhere
C: IntoIterator<Item = String>,
For Telegram documentation see
GetCustomEmojiStickers.type UploadStickerFile = <B as Requester>::UploadStickerFile
sourcefn upload_sticker_file(
&self,
user_id: UserId,
png_sticker: InputFile
) -> Self::UploadStickerFile
fn upload_sticker_file(
&self,
user_id: UserId,
png_sticker: InputFile
) -> Self::UploadStickerFile
For Telegram documentation see
UploadStickerFile.type CreateNewStickerSet = <B as Requester>::CreateNewStickerSet
sourcefn create_new_sticker_set<N, T, E>(
&self,
user_id: UserId,
name: N,
title: T,
sticker: InputSticker,
emojis: E
) -> Self::CreateNewStickerSetwhere
N: Into<String>,
T: Into<String>,
E: Into<String>,
fn create_new_sticker_set<N, T, E>(
&self,
user_id: UserId,
name: N,
title: T,
sticker: InputSticker,
emojis: E
) -> Self::CreateNewStickerSetwhere
N: Into<String>,
T: Into<String>,
E: Into<String>,
For Telegram documentation see
CreateNewStickerSet.type AddStickerToSet = <B as Requester>::AddStickerToSet
sourcefn add_sticker_to_set<N, E>(
&self,
user_id: UserId,
name: N,
sticker: InputSticker,
emojis: E
) -> Self::AddStickerToSetwhere
N: Into<String>,
E: Into<String>,
fn add_sticker_to_set<N, E>(
&self,
user_id: UserId,
name: N,
sticker: InputSticker,
emojis: E
) -> Self::AddStickerToSetwhere
N: Into<String>,
E: Into<String>,
For Telegram documentation see
AddStickerToSet.type SetStickerPositionInSet = <B as Requester>::SetStickerPositionInSet
sourcefn set_sticker_position_in_set<S>(
&self,
sticker: S,
position: u32
) -> Self::SetStickerPositionInSetwhere
S: Into<String>,
fn set_sticker_position_in_set<S>(
&self,
sticker: S,
position: u32
) -> Self::SetStickerPositionInSetwhere
S: Into<String>,
For Telegram documentation see
SetStickerPositionInSet.type DeleteStickerFromSet = <B as Requester>::DeleteStickerFromSet
sourcefn delete_sticker_from_set<S>(&self, sticker: S) -> Self::DeleteStickerFromSetwhere
S: Into<String>,
fn delete_sticker_from_set<S>(&self, sticker: S) -> Self::DeleteStickerFromSetwhere
S: Into<String>,
For Telegram documentation see
DeleteStickerFromSet.type SetStickerSetThumb = <B as Requester>::SetStickerSetThumb
sourcefn set_sticker_set_thumb<N>(
&self,
name: N,
user_id: UserId
) -> Self::SetStickerSetThumbwhere
N: Into<String>,
fn set_sticker_set_thumb<N>(
&self,
name: N,
user_id: UserId
) -> Self::SetStickerSetThumbwhere
N: Into<String>,
For Telegram documentation see
SetStickerSetThumb.type SendInvoice = <B as Requester>::SendInvoice
sourcefn send_invoice<Ch, T, D, Pa, P, C, Pri>(
&self,
chat_id: Ch,
title: T,
description: D,
payload: Pa,
provider_token: P,
currency: C,
prices: Pri
) -> Self::SendInvoicewhere
Ch: Into<Recipient>,
T: Into<String>,
D: Into<String>,
Pa: Into<String>,
P: Into<String>,
C: Into<String>,
Pri: IntoIterator<Item = LabeledPrice>,
fn send_invoice<Ch, T, D, Pa, P, C, Pri>(
&self,
chat_id: Ch,
title: T,
description: D,
payload: Pa,
provider_token: P,
currency: C,
prices: Pri
) -> Self::SendInvoicewhere
Ch: Into<Recipient>,
T: Into<String>,
D: Into<String>,
Pa: Into<String>,
P: Into<String>,
C: Into<String>,
Pri: IntoIterator<Item = LabeledPrice>,
For Telegram documentation see
SendInvoice.type CreateInvoiceLink = <B as Requester>::CreateInvoiceLink
sourcefn create_invoice_link<T, D, Pa, P, C, Pri>(
&self,
title: T,
description: D,
payload: Pa,
provider_token: P,
currency: C,
prices: Pri
) -> Self::CreateInvoiceLinkwhere
T: Into<String>,
D: Into<String>,
Pa: Into<String>,
P: Into<String>,
C: Into<String>,
Pri: IntoIterator<Item = LabeledPrice>,
fn create_invoice_link<T, D, Pa, P, C, Pri>(
&self,
title: T,
description: D,
payload: Pa,
provider_token: P,
currency: C,
prices: Pri
) -> Self::CreateInvoiceLinkwhere
T: Into<String>,
D: Into<String>,
Pa: Into<String>,
P: Into<String>,
C: Into<String>,
Pri: IntoIterator<Item = LabeledPrice>,
For Telegram documentation see
CreateInvoiceLink.type AnswerShippingQuery = <B as Requester>::AnswerShippingQuery
sourcefn answer_shipping_query<S>(
&self,
shipping_query_id: S,
ok: bool
) -> Self::AnswerShippingQuerywhere
S: Into<String>,
fn answer_shipping_query<S>(
&self,
shipping_query_id: S,
ok: bool
) -> Self::AnswerShippingQuerywhere
S: Into<String>,
For Telegram documentation see
AnswerShippingQuery.type AnswerPreCheckoutQuery = <B as Requester>::AnswerPreCheckoutQuery
sourcefn answer_pre_checkout_query<P>(
&self,
pre_checkout_query_id: P,
ok: bool
) -> Self::AnswerPreCheckoutQuerywhere
P: Into<String>,
fn answer_pre_checkout_query<P>(
&self,
pre_checkout_query_id: P,
ok: bool
) -> Self::AnswerPreCheckoutQuerywhere
P: Into<String>,
For Telegram documentation see
AnswerPreCheckoutQuery.type SetPassportDataErrors = <B as Requester>::SetPassportDataErrors
sourcefn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E
) -> Self::SetPassportDataErrorswhere
E: IntoIterator<Item = PassportElementError>,
fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E
) -> Self::SetPassportDataErrorswhere
E: IntoIterator<Item = PassportElementError>,
For Telegram documentation see
SetPassportDataErrors.type SendGame = <B as Requester>::SendGame
sourcefn send_game<G>(&self, chat_id: u32, game_short_name: G) -> Self::SendGamewhere
G: Into<String>,
fn send_game<G>(&self, chat_id: u32, game_short_name: G) -> Self::SendGamewhere
G: Into<String>,
For Telegram documentation see
SendGame.type SetGameScore = <B as Requester>::SetGameScore
sourcefn set_game_score(
&self,
user_id: UserId,
score: u64,
chat_id: u32,
message_id: MessageId
) -> Self::SetGameScore
fn set_game_score(
&self,
user_id: UserId,
score: u64,
chat_id: u32,
message_id: MessageId
) -> Self::SetGameScore
For Telegram documentation see
SetGameScore.type SetGameScoreInline = <B as Requester>::SetGameScoreInline
sourcefn set_game_score_inline<I>(
&self,
user_id: UserId,
score: u64,
inline_message_id: I
) -> Self::SetGameScoreInlinewhere
I: Into<String>,
fn set_game_score_inline<I>(
&self,
user_id: UserId,
score: u64,
inline_message_id: I
) -> Self::SetGameScoreInlinewhere
I: Into<String>,
For Telegram documentation see
SetGameScoreInline.type GetGameHighScores = <B as Requester>::GetGameHighScores
sourcefn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T
) -> Self::GetGameHighScoreswhere
T: Into<TargetMessage>,
fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T
) -> Self::GetGameHighScoreswhere
T: Into<TargetMessage>,
For Telegram documentation see
GetGameHighScores.type ApproveChatJoinRequest = <B as Requester>::ApproveChatJoinRequest
sourcefn approve_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId
) -> Self::ApproveChatJoinRequestwhere
C: Into<Recipient>,
fn approve_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId
) -> Self::ApproveChatJoinRequestwhere
C: Into<Recipient>,
For Telegram documentation see
ApproveChatJoinRequest.type DeclineChatJoinRequest = <B as Requester>::DeclineChatJoinRequest
sourcefn decline_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId
) -> Self::DeclineChatJoinRequestwhere
C: Into<Recipient>,
fn decline_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId
) -> Self::DeclineChatJoinRequestwhere
C: Into<Recipient>,
For Telegram documentation see
DeclineChatJoinRequest.Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
