Struct teloxide::adaptors::erased::ErasedRequester
source · pub struct ErasedRequester<'a, E> { /* private fields */ }
Available on crate feature
erased
only.Expand description
Requester
with erased type.
Implementations§
source§impl<'a, E> ErasedRequester<'a, E>
impl<'a, E> ErasedRequester<'a, E>
sourcepub fn new<B>(requester: B) -> ErasedRequester<'a, E> ⓘwhere
B: Requester<Err = E> + 'a,
pub fn new<B>(requester: B) -> ErasedRequester<'a, E> ⓘwhere
B: Requester<Err = E> + 'a,
Erases type of requester
Note: it’s recommended to use RequesterExt::erase
instead.
Trait Implementations§
source§impl<E> Clone for ErasedRequester<'_, E>
impl<E> Clone for ErasedRequester<'_, E>
source§impl<E> Debug for ErasedRequester<'_, E>
impl<E> Debug for ErasedRequester<'_, E>
source§impl<'a, Err> Requester for ErasedRequester<'a, Err>where
Err: Error + Send,
impl<'a, Err> Requester for ErasedRequester<'a, Err>where
Err: Error + Send,
type GetMe = ErasedRequest<'a, GetMe, Err>
source§fn get_me(&self) -> <ErasedRequester<'a, Err> as Requester>::GetMe ⓘ
fn get_me(&self) -> <ErasedRequester<'a, Err> as Requester>::GetMe ⓘ
For Telegram documentation see
GetMe
.type LogOut = ErasedRequest<'a, LogOut, Err>
source§fn log_out(&self) -> <ErasedRequester<'a, Err> as Requester>::LogOut ⓘ
fn log_out(&self) -> <ErasedRequester<'a, Err> as Requester>::LogOut ⓘ
For Telegram documentation see
LogOut
.type Close = ErasedRequest<'a, Close, Err>
source§fn close(&self) -> <ErasedRequester<'a, Err> as Requester>::Close ⓘ
fn close(&self) -> <ErasedRequester<'a, Err> as Requester>::Close ⓘ
For Telegram documentation see
Close
.type GetUpdates = ErasedRequest<'a, GetUpdates, Err>
source§fn get_updates(&self) -> <ErasedRequester<'a, Err> as Requester>::GetUpdates ⓘ
fn get_updates(&self) -> <ErasedRequester<'a, Err> as Requester>::GetUpdates ⓘ
For Telegram documentation see
GetUpdates
.type SetWebhook = ErasedRequest<'a, SetWebhook, Err>
source§fn set_webhook(
&self,
url: Url
) -> <ErasedRequester<'a, Err> as Requester>::SetWebhook ⓘ
fn set_webhook(
&self,
url: Url
) -> <ErasedRequester<'a, Err> as Requester>::SetWebhook ⓘ
For Telegram documentation see
SetWebhook
.type DeleteWebhook = ErasedRequest<'a, DeleteWebhook, Err>
source§fn delete_webhook(
&self
) -> <ErasedRequester<'a, Err> as Requester>::DeleteWebhook ⓘ
fn delete_webhook(
&self
) -> <ErasedRequester<'a, Err> as Requester>::DeleteWebhook ⓘ
For Telegram documentation see
DeleteWebhook
.type GetWebhookInfo = ErasedRequest<'a, GetWebhookInfo, Err>
source§fn get_webhook_info(
&self
) -> <ErasedRequester<'a, Err> as Requester>::GetWebhookInfo ⓘ
fn get_webhook_info(
&self
) -> <ErasedRequester<'a, Err> as Requester>::GetWebhookInfo ⓘ
For Telegram documentation see
GetWebhookInfo
.type ForwardMessage = ErasedRequest<'a, ForwardMessage, Err>
source§fn forward_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId
) -> <ErasedRequester<'a, Err> as Requester>::ForwardMessage ⓘwhere
C: Into<Recipient>,
F: Into<Recipient>,
fn forward_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId
) -> <ErasedRequester<'a, Err> as Requester>::ForwardMessage ⓘwhere
C: Into<Recipient>,
F: Into<Recipient>,
For Telegram documentation see
ForwardMessage
.type CopyMessage = ErasedRequest<'a, CopyMessage, Err>
source§fn copy_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId
) -> <ErasedRequester<'a, Err> as Requester>::CopyMessage ⓘwhere
C: Into<Recipient>,
F: Into<Recipient>,
fn copy_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId
) -> <ErasedRequester<'a, Err> as Requester>::CopyMessage ⓘwhere
C: Into<Recipient>,
F: Into<Recipient>,
For Telegram documentation see
CopyMessage
.type SendMessage = ErasedRequest<'a, SendMessage, Err>
source§fn send_message<C, T>(
&self,
chat_id: C,
text: T
) -> <ErasedRequester<'a, Err> as Requester>::SendMessage ⓘwhere
C: Into<Recipient>,
T: Into<String>,
fn send_message<C, T>(
&self,
chat_id: C,
text: T
) -> <ErasedRequester<'a, Err> as Requester>::SendMessage ⓘwhere
C: Into<Recipient>,
T: Into<String>,
For Telegram documentation see
SendMessage
.type SendPhoto = ErasedRequest<'a, SendPhoto, Err>
source§fn send_photo<C>(
&self,
chat_id: C,
photo: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SendPhoto ⓘwhere
C: Into<Recipient>,
fn send_photo<C>(
&self,
chat_id: C,
photo: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SendPhoto ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
SendPhoto
.type SendAudio = ErasedRequest<'a, SendAudio, Err>
source§fn send_audio<C>(
&self,
chat_id: C,
audio: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SendAudio ⓘwhere
C: Into<Recipient>,
fn send_audio<C>(
&self,
chat_id: C,
audio: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SendAudio ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
SendAudio
.type SendDocument = ErasedRequest<'a, SendDocument, Err>
source§fn send_document<C>(
&self,
chat_id: C,
document: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SendDocument ⓘwhere
C: Into<Recipient>,
fn send_document<C>(
&self,
chat_id: C,
document: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SendDocument ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
SendDocument
.type SendVideo = ErasedRequest<'a, SendVideo, Err>
source§fn send_video<C>(
&self,
chat_id: C,
video: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SendVideo ⓘwhere
C: Into<Recipient>,
fn send_video<C>(
&self,
chat_id: C,
video: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SendVideo ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
SendVideo
.type SendAnimation = ErasedRequest<'a, SendAnimation, Err>
source§fn send_animation<C>(
&self,
chat_id: C,
animation: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SendAnimation ⓘwhere
C: Into<Recipient>,
fn send_animation<C>(
&self,
chat_id: C,
animation: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SendAnimation ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
SendAnimation
.type SendVoice = ErasedRequest<'a, SendVoice, Err>
source§fn send_voice<C>(
&self,
chat_id: C,
voice: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SendVoice ⓘwhere
C: Into<Recipient>,
fn send_voice<C>(
&self,
chat_id: C,
voice: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SendVoice ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
SendVoice
.type SendVideoNote = ErasedRequest<'a, SendVideoNote, Err>
source§fn send_video_note<C>(
&self,
chat_id: C,
video_note: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SendVideoNote ⓘwhere
C: Into<Recipient>,
fn send_video_note<C>(
&self,
chat_id: C,
video_note: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SendVideoNote ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
SendVideoNote
.type SendMediaGroup = ErasedRequest<'a, SendMediaGroup, Err>
source§fn send_media_group<C, M>(
&self,
chat_id: C,
media: M
) -> <ErasedRequester<'a, Err> as Requester>::SendMediaGroup ⓘwhere
C: Into<Recipient>,
M: IntoIterator<Item = InputMedia>,
fn send_media_group<C, M>(
&self,
chat_id: C,
media: M
) -> <ErasedRequester<'a, Err> as Requester>::SendMediaGroup ⓘwhere
C: Into<Recipient>,
M: IntoIterator<Item = InputMedia>,
For Telegram documentation see
SendMediaGroup
.type SendLocation = ErasedRequest<'a, SendLocation, Err>
source§fn send_location<C>(
&self,
chat_id: C,
latitude: f64,
longitude: f64
) -> <ErasedRequester<'a, Err> as Requester>::SendLocation ⓘwhere
C: Into<Recipient>,
fn send_location<C>(
&self,
chat_id: C,
latitude: f64,
longitude: f64
) -> <ErasedRequester<'a, Err> as Requester>::SendLocation ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
SendLocation
.type EditMessageLiveLocation = ErasedRequest<'a, EditMessageLiveLocation, Err>
source§fn edit_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64
) -> <ErasedRequester<'a, Err> as Requester>::EditMessageLiveLocation ⓘwhere
C: Into<Recipient>,
fn edit_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64
) -> <ErasedRequester<'a, Err> as Requester>::EditMessageLiveLocation ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
EditMessageLiveLocation
.type EditMessageLiveLocationInline = ErasedRequest<'a, EditMessageLiveLocationInline, Err>
source§fn edit_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64
) -> <ErasedRequester<'a, Err> as Requester>::EditMessageLiveLocationInline ⓘwhere
I: Into<String>,
fn edit_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64
) -> <ErasedRequester<'a, Err> as Requester>::EditMessageLiveLocationInline ⓘwhere
I: Into<String>,
For Telegram documentation see
EditMessageLiveLocationInline
.type StopMessageLiveLocation = ErasedRequest<'a, StopMessageLiveLocation, Err>
source§fn stop_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64
) -> <ErasedRequester<'a, Err> as Requester>::StopMessageLiveLocation ⓘwhere
C: Into<Recipient>,
fn stop_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64
) -> <ErasedRequester<'a, Err> as Requester>::StopMessageLiveLocation ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
StopMessageLiveLocation
.type StopMessageLiveLocationInline = ErasedRequest<'a, StopMessageLiveLocationInline, Err>
source§fn stop_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64
) -> <ErasedRequester<'a, Err> as Requester>::StopMessageLiveLocationInline ⓘwhere
I: Into<String>,
fn stop_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64
) -> <ErasedRequester<'a, Err> as Requester>::StopMessageLiveLocationInline ⓘwhere
I: Into<String>,
For Telegram documentation see
StopMessageLiveLocationInline
.type SendVenue = ErasedRequest<'a, SendVenue, Err>
source§fn send_venue<C, T, A>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
title: T,
address: A
) -> <ErasedRequester<'a, Err> as Requester>::SendVenue ⓘwhere
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
) -> <ErasedRequester<'a, Err> as Requester>::SendVenue ⓘwhere
C: Into<Recipient>,
T: Into<String>,
A: Into<String>,
For Telegram documentation see
SendVenue
.type SendContact = ErasedRequest<'a, SendContact, Err>
source§fn send_contact<C, P, F>(
&self,
chat_id: C,
phone_number: P,
first_name: F
) -> <ErasedRequester<'a, Err> as Requester>::SendContact ⓘwhere
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
) -> <ErasedRequester<'a, Err> as Requester>::SendContact ⓘwhere
C: Into<Recipient>,
P: Into<String>,
F: Into<String>,
For Telegram documentation see
SendContact
.type SendPoll = ErasedRequest<'a, SendPoll, Err>
source§fn send_poll<C, Q, O>(
&self,
chat_id: C,
question: Q,
options: O
) -> <ErasedRequester<'a, Err> as Requester>::SendPoll ⓘwhere
C: Into<Recipient>,
Q: Into<String>,
O: IntoIterator<Item = String>,
fn send_poll<C, Q, O>(
&self,
chat_id: C,
question: Q,
options: O
) -> <ErasedRequester<'a, Err> as Requester>::SendPoll ⓘwhere
C: Into<Recipient>,
Q: Into<String>,
O: IntoIterator<Item = String>,
For Telegram documentation see
SendPoll
.type SendDice = ErasedRequest<'a, SendDice, Err>
source§fn send_dice<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::SendDice ⓘwhere
C: Into<Recipient>,
fn send_dice<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::SendDice ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
SendDice
.type SendChatAction = ErasedRequest<'a, SendChatAction, Err>
source§fn send_chat_action<C>(
&self,
chat_id: C,
action: ChatAction
) -> <ErasedRequester<'a, Err> as Requester>::SendChatAction ⓘwhere
C: Into<Recipient>,
fn send_chat_action<C>(
&self,
chat_id: C,
action: ChatAction
) -> <ErasedRequester<'a, Err> as Requester>::SendChatAction ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
SendChatAction
.type GetUserProfilePhotos = ErasedRequest<'a, GetUserProfilePhotos, Err>
source§fn get_user_profile_photos(
&self,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::GetUserProfilePhotos ⓘ
fn get_user_profile_photos(
&self,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::GetUserProfilePhotos ⓘ
For Telegram documentation see
GetUserProfilePhotos
.type GetFile = ErasedRequest<'a, GetFile, Err>
source§fn get_file<F>(
&self,
file_id: F
) -> <ErasedRequester<'a, Err> as Requester>::GetFile ⓘwhere
F: Into<String>,
fn get_file<F>(
&self,
file_id: F
) -> <ErasedRequester<'a, Err> as Requester>::GetFile ⓘwhere
F: Into<String>,
For Telegram documentation see
GetFile
.type KickChatMember = ErasedRequest<'a, KickChatMember, Err>
source§fn kick_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::KickChatMember ⓘwhere
C: Into<Recipient>,
fn kick_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::KickChatMember ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
KickChatMember
.type BanChatMember = ErasedRequest<'a, BanChatMember, Err>
source§fn ban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::BanChatMember ⓘwhere
C: Into<Recipient>,
fn ban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::BanChatMember ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
BanChatMember
.type UnbanChatMember = ErasedRequest<'a, UnbanChatMember, Err>
source§fn unban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::UnbanChatMember ⓘwhere
C: Into<Recipient>,
fn unban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::UnbanChatMember ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
UnbanChatMember
.type RestrictChatMember = ErasedRequest<'a, RestrictChatMember, Err>
source§fn restrict_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
permissions: ChatPermissions
) -> <ErasedRequester<'a, Err> as Requester>::RestrictChatMember ⓘwhere
C: Into<Recipient>,
fn restrict_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
permissions: ChatPermissions
) -> <ErasedRequester<'a, Err> as Requester>::RestrictChatMember ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
RestrictChatMember
.type PromoteChatMember = ErasedRequest<'a, PromoteChatMember, Err>
source§fn promote_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::PromoteChatMember ⓘwhere
C: Into<Recipient>,
fn promote_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::PromoteChatMember ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
PromoteChatMember
.type SetChatAdministratorCustomTitle = ErasedRequest<'a, SetChatAdministratorCustomTitle, Err>
source§fn set_chat_administrator_custom_title<Ch, C>(
&self,
chat_id: Ch,
user_id: UserId,
custom_title: C
) -> <ErasedRequester<'a, Err> as Requester>::SetChatAdministratorCustomTitle ⓘwhere
Ch: Into<Recipient>,
C: Into<String>,
fn set_chat_administrator_custom_title<Ch, C>(
&self,
chat_id: Ch,
user_id: UserId,
custom_title: C
) -> <ErasedRequester<'a, Err> as Requester>::SetChatAdministratorCustomTitle ⓘwhere
Ch: Into<Recipient>,
C: Into<String>,
For Telegram documentation see
SetChatAdministratorCustomTitle
.type BanChatSenderChat = ErasedRequest<'a, BanChatSenderChat, Err>
source§fn ban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S
) -> <ErasedRequester<'a, Err> as Requester>::BanChatSenderChat ⓘwhere
C: Into<Recipient>,
S: Into<ChatId>,
fn ban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S
) -> <ErasedRequester<'a, Err> as Requester>::BanChatSenderChat ⓘwhere
C: Into<Recipient>,
S: Into<ChatId>,
For Telegram documentation see
BanChatSenderChat
.type UnbanChatSenderChat = ErasedRequest<'a, UnbanChatSenderChat, Err>
source§fn unban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S
) -> <ErasedRequester<'a, Err> as Requester>::UnbanChatSenderChat ⓘwhere
C: Into<Recipient>,
S: Into<ChatId>,
fn unban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S
) -> <ErasedRequester<'a, Err> as Requester>::UnbanChatSenderChat ⓘwhere
C: Into<Recipient>,
S: Into<ChatId>,
For Telegram documentation see
UnbanChatSenderChat
.type SetChatPermissions = ErasedRequest<'a, SetChatPermissions, Err>
source§fn set_chat_permissions<C>(
&self,
chat_id: C,
permissions: ChatPermissions
) -> <ErasedRequester<'a, Err> as Requester>::SetChatPermissions ⓘwhere
C: Into<Recipient>,
fn set_chat_permissions<C>(
&self,
chat_id: C,
permissions: ChatPermissions
) -> <ErasedRequester<'a, Err> as Requester>::SetChatPermissions ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
SetChatPermissions
.type ExportChatInviteLink = ErasedRequest<'a, ExportChatInviteLink, Err>
source§fn export_chat_invite_link<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::ExportChatInviteLink ⓘwhere
C: Into<Recipient>,
fn export_chat_invite_link<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::ExportChatInviteLink ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
ExportChatInviteLink
.type CreateChatInviteLink = ErasedRequest<'a, CreateChatInviteLink, Err>
source§fn create_chat_invite_link<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::CreateChatInviteLink ⓘwhere
C: Into<Recipient>,
fn create_chat_invite_link<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::CreateChatInviteLink ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
CreateChatInviteLink
.type EditChatInviteLink = ErasedRequest<'a, EditChatInviteLink, Err>
source§fn edit_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I
) -> <ErasedRequester<'a, Err> as Requester>::EditChatInviteLink ⓘwhere
C: Into<Recipient>,
I: Into<String>,
fn edit_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I
) -> <ErasedRequester<'a, Err> as Requester>::EditChatInviteLink ⓘwhere
C: Into<Recipient>,
I: Into<String>,
For Telegram documentation see
EditChatInviteLink
.type RevokeChatInviteLink = ErasedRequest<'a, RevokeChatInviteLink, Err>
source§fn revoke_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I
) -> <ErasedRequester<'a, Err> as Requester>::RevokeChatInviteLink ⓘwhere
C: Into<Recipient>,
I: Into<String>,
fn revoke_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I
) -> <ErasedRequester<'a, Err> as Requester>::RevokeChatInviteLink ⓘwhere
C: Into<Recipient>,
I: Into<String>,
For Telegram documentation see
RevokeChatInviteLink
.type SetChatPhoto = ErasedRequest<'a, SetChatPhoto, Err>
source§fn set_chat_photo<C>(
&self,
chat_id: C,
photo: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SetChatPhoto ⓘwhere
C: Into<Recipient>,
fn set_chat_photo<C>(
&self,
chat_id: C,
photo: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SetChatPhoto ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
SetChatPhoto
.type DeleteChatPhoto = ErasedRequest<'a, DeleteChatPhoto, Err>
source§fn delete_chat_photo<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::DeleteChatPhoto ⓘwhere
C: Into<Recipient>,
fn delete_chat_photo<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::DeleteChatPhoto ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
DeleteChatPhoto
.type SetChatTitle = ErasedRequest<'a, SetChatTitle, Err>
source§fn set_chat_title<C, T>(
&self,
chat_id: C,
title: T
) -> <ErasedRequester<'a, Err> as Requester>::SetChatTitle ⓘwhere
C: Into<Recipient>,
T: Into<String>,
fn set_chat_title<C, T>(
&self,
chat_id: C,
title: T
) -> <ErasedRequester<'a, Err> as Requester>::SetChatTitle ⓘwhere
C: Into<Recipient>,
T: Into<String>,
For Telegram documentation see
SetChatTitle
.type SetChatDescription = ErasedRequest<'a, SetChatDescription, Err>
source§fn set_chat_description<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::SetChatDescription ⓘwhere
C: Into<Recipient>,
fn set_chat_description<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::SetChatDescription ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
SetChatDescription
.type PinChatMessage = ErasedRequest<'a, PinChatMessage, Err>
source§fn pin_chat_message<C>(
&self,
chat_id: C,
message_id: MessageId
) -> <ErasedRequester<'a, Err> as Requester>::PinChatMessage ⓘwhere
C: Into<Recipient>,
fn pin_chat_message<C>(
&self,
chat_id: C,
message_id: MessageId
) -> <ErasedRequester<'a, Err> as Requester>::PinChatMessage ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
PinChatMessage
.type UnpinChatMessage = ErasedRequest<'a, UnpinChatMessage, Err>
source§fn unpin_chat_message<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::UnpinChatMessage ⓘwhere
C: Into<Recipient>,
fn unpin_chat_message<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::UnpinChatMessage ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
UnpinChatMessage
.type UnpinAllChatMessages = ErasedRequest<'a, UnpinAllChatMessages, Err>
source§fn unpin_all_chat_messages<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::UnpinAllChatMessages ⓘwhere
C: Into<Recipient>,
fn unpin_all_chat_messages<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::UnpinAllChatMessages ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
UnpinAllChatMessages
.type LeaveChat = ErasedRequest<'a, LeaveChat, Err>
source§fn leave_chat<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::LeaveChat ⓘwhere
C: Into<Recipient>,
fn leave_chat<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::LeaveChat ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
LeaveChat
.type GetChat = ErasedRequest<'a, GetChat, Err>
source§fn get_chat<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::GetChat ⓘwhere
C: Into<Recipient>,
fn get_chat<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::GetChat ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
GetChat
.type GetChatAdministrators = ErasedRequest<'a, GetChatAdministrators, Err>
source§fn get_chat_administrators<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::GetChatAdministrators ⓘwhere
C: Into<Recipient>,
fn get_chat_administrators<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::GetChatAdministrators ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
GetChatAdministrators
.type GetChatMembersCount = ErasedRequest<'a, GetChatMembersCount, Err>
source§fn get_chat_members_count<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::GetChatMembersCount ⓘwhere
C: Into<Recipient>,
fn get_chat_members_count<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::GetChatMembersCount ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
GetChatMembersCount
.type GetChatMemberCount = ErasedRequest<'a, GetChatMemberCount, Err>
source§fn get_chat_member_count<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::GetChatMemberCount ⓘwhere
C: Into<Recipient>,
fn get_chat_member_count<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::GetChatMemberCount ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
GetChatMemberCount
.type GetChatMember = ErasedRequest<'a, GetChatMember, Err>
source§fn get_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::GetChatMember ⓘwhere
C: Into<Recipient>,
fn get_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::GetChatMember ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
GetChatMember
.type SetChatStickerSet = ErasedRequest<'a, SetChatStickerSet, Err>
source§fn set_chat_sticker_set<C, S>(
&self,
chat_id: C,
sticker_set_name: S
) -> <ErasedRequester<'a, Err> as Requester>::SetChatStickerSet ⓘwhere
C: Into<Recipient>,
S: Into<String>,
fn set_chat_sticker_set<C, S>(
&self,
chat_id: C,
sticker_set_name: S
) -> <ErasedRequester<'a, Err> as Requester>::SetChatStickerSet ⓘwhere
C: Into<Recipient>,
S: Into<String>,
For Telegram documentation see
SetChatStickerSet
.type DeleteChatStickerSet = ErasedRequest<'a, DeleteChatStickerSet, Err>
source§fn delete_chat_sticker_set<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::DeleteChatStickerSet ⓘwhere
C: Into<Recipient>,
fn delete_chat_sticker_set<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::DeleteChatStickerSet ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
DeleteChatStickerSet
.type GetForumTopicIconStickers = ErasedRequest<'a, GetForumTopicIconStickers, Err>
source§fn get_forum_topic_icon_stickers(
&self
) -> <ErasedRequester<'a, Err> as Requester>::GetForumTopicIconStickers ⓘ
fn get_forum_topic_icon_stickers(
&self
) -> <ErasedRequester<'a, Err> as Requester>::GetForumTopicIconStickers ⓘ
For Telegram documentation see
GetForumTopicIconStickers
.type CreateForumTopic = ErasedRequest<'a, CreateForumTopic, Err>
source§fn create_forum_topic<C, N, I>(
&self,
chat_id: C,
name: N,
icon_color: u32,
icon_custom_emoji_id: I
) -> <ErasedRequester<'a, Err> as Requester>::CreateForumTopic ⓘwhere
C: Into<Recipient>,
N: Into<String>,
I: Into<String>,
fn create_forum_topic<C, N, I>(
&self,
chat_id: C,
name: N,
icon_color: u32,
icon_custom_emoji_id: I
) -> <ErasedRequester<'a, Err> as Requester>::CreateForumTopic ⓘwhere
C: Into<Recipient>,
N: Into<String>,
I: Into<String>,
For Telegram documentation see
CreateForumTopic
.type EditForumTopic = ErasedRequest<'a, EditForumTopic, Err>
source§fn edit_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <ErasedRequester<'a, Err> as Requester>::EditForumTopic ⓘwhere
C: Into<Recipient>,
fn edit_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <ErasedRequester<'a, Err> as Requester>::EditForumTopic ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
EditForumTopic
.type CloseForumTopic = ErasedRequest<'a, CloseForumTopic, Err>
source§fn close_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <ErasedRequester<'a, Err> as Requester>::CloseForumTopic ⓘwhere
C: Into<Recipient>,
fn close_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <ErasedRequester<'a, Err> as Requester>::CloseForumTopic ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
CloseForumTopic
.type ReopenForumTopic = ErasedRequest<'a, ReopenForumTopic, Err>
source§fn reopen_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <ErasedRequester<'a, Err> as Requester>::ReopenForumTopic ⓘwhere
C: Into<Recipient>,
fn reopen_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <ErasedRequester<'a, Err> as Requester>::ReopenForumTopic ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
ReopenForumTopic
.type DeleteForumTopic = ErasedRequest<'a, DeleteForumTopic, Err>
source§fn delete_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <ErasedRequester<'a, Err> as Requester>::DeleteForumTopic ⓘwhere
C: Into<Recipient>,
fn delete_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <ErasedRequester<'a, Err> as Requester>::DeleteForumTopic ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
DeleteForumTopic
.type UnpinAllForumTopicMessages = ErasedRequest<'a, UnpinAllForumTopicMessages, Err>
source§fn unpin_all_forum_topic_messages<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <ErasedRequester<'a, Err> as Requester>::UnpinAllForumTopicMessages ⓘwhere
C: Into<Recipient>,
fn unpin_all_forum_topic_messages<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <ErasedRequester<'a, Err> as Requester>::UnpinAllForumTopicMessages ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
UnpinAllForumTopicMessages
.type EditGeneralForumTopic = ErasedRequest<'a, EditGeneralForumTopic, Err>
source§fn edit_general_forum_topic<C, N>(
&self,
chat_id: C,
name: N
) -> <ErasedRequester<'a, Err> as Requester>::EditGeneralForumTopic ⓘwhere
C: Into<Recipient>,
N: Into<String>,
fn edit_general_forum_topic<C, N>(
&self,
chat_id: C,
name: N
) -> <ErasedRequester<'a, Err> as Requester>::EditGeneralForumTopic ⓘwhere
C: Into<Recipient>,
N: Into<String>,
For Telegram documentation see
EditGeneralForumTopic
.type CloseGeneralForumTopic = ErasedRequest<'a, CloseGeneralForumTopic, Err>
source§fn close_general_forum_topic<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::CloseGeneralForumTopic ⓘwhere
C: Into<Recipient>,
fn close_general_forum_topic<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::CloseGeneralForumTopic ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
CloseGeneralForumTopic
.type ReopenGeneralForumTopic = ErasedRequest<'a, ReopenGeneralForumTopic, Err>
source§fn reopen_general_forum_topic<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::ReopenGeneralForumTopic ⓘwhere
C: Into<Recipient>,
fn reopen_general_forum_topic<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::ReopenGeneralForumTopic ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
ReopenGeneralForumTopic
.type HideGeneralForumTopic = ErasedRequest<'a, HideGeneralForumTopic, Err>
source§fn hide_general_forum_topic<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::HideGeneralForumTopic ⓘwhere
C: Into<Recipient>,
fn hide_general_forum_topic<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::HideGeneralForumTopic ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
HideGeneralForumTopic
.type UnhideGeneralForumTopic = ErasedRequest<'a, UnhideGeneralForumTopic, Err>
source§fn unhide_general_forum_topic<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::UnhideGeneralForumTopic ⓘwhere
C: Into<Recipient>,
fn unhide_general_forum_topic<C>(
&self,
chat_id: C
) -> <ErasedRequester<'a, Err> as Requester>::UnhideGeneralForumTopic ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
UnhideGeneralForumTopic
.type AnswerCallbackQuery = ErasedRequest<'a, AnswerCallbackQuery, Err>
source§fn answer_callback_query<C>(
&self,
callback_query_id: C
) -> <ErasedRequester<'a, Err> as Requester>::AnswerCallbackQuery ⓘwhere
C: Into<String>,
fn answer_callback_query<C>(
&self,
callback_query_id: C
) -> <ErasedRequester<'a, Err> as Requester>::AnswerCallbackQuery ⓘwhere
C: Into<String>,
For Telegram documentation see
AnswerCallbackQuery
.type SetMyCommands = ErasedRequest<'a, SetMyCommands, Err>
source§fn set_my_commands<C>(
&self,
commands: C
) -> <ErasedRequester<'a, Err> as Requester>::SetMyCommands ⓘwhere
C: IntoIterator<Item = BotCommand>,
fn set_my_commands<C>(
&self,
commands: C
) -> <ErasedRequester<'a, Err> as Requester>::SetMyCommands ⓘwhere
C: IntoIterator<Item = BotCommand>,
For Telegram documentation see
SetMyCommands
.type GetMyCommands = ErasedRequest<'a, GetMyCommands, Err>
source§fn get_my_commands(
&self
) -> <ErasedRequester<'a, Err> as Requester>::GetMyCommands ⓘ
fn get_my_commands(
&self
) -> <ErasedRequester<'a, Err> as Requester>::GetMyCommands ⓘ
For Telegram documentation see
GetMyCommands
.type SetChatMenuButton = ErasedRequest<'a, SetChatMenuButton, Err>
For Telegram documentation see
SetChatMenuButton
.type GetChatMenuButton = ErasedRequest<'a, GetChatMenuButton, Err>
For Telegram documentation see
GetChatMenuButton
.type SetMyDefaultAdministratorRights = ErasedRequest<'a, SetMyDefaultAdministratorRights, Err>
source§fn set_my_default_administrator_rights(
&self
) -> <ErasedRequester<'a, Err> as Requester>::SetMyDefaultAdministratorRights ⓘ
fn set_my_default_administrator_rights(
&self
) -> <ErasedRequester<'a, Err> as Requester>::SetMyDefaultAdministratorRights ⓘ
For Telegram documentation see
SetMyDefaultAdministratorRights
.type GetMyDefaultAdministratorRights = ErasedRequest<'a, GetMyDefaultAdministratorRights, Err>
source§fn get_my_default_administrator_rights(
&self
) -> <ErasedRequester<'a, Err> as Requester>::GetMyDefaultAdministratorRights ⓘ
fn get_my_default_administrator_rights(
&self
) -> <ErasedRequester<'a, Err> as Requester>::GetMyDefaultAdministratorRights ⓘ
For Telegram documentation see
GetMyDefaultAdministratorRights
.type DeleteMyCommands = ErasedRequest<'a, DeleteMyCommands, Err>
source§fn delete_my_commands(
&self
) -> <ErasedRequester<'a, Err> as Requester>::DeleteMyCommands ⓘ
fn delete_my_commands(
&self
) -> <ErasedRequester<'a, Err> as Requester>::DeleteMyCommands ⓘ
For Telegram documentation see
DeleteMyCommands
.type AnswerInlineQuery = ErasedRequest<'a, AnswerInlineQuery, Err>
source§fn answer_inline_query<I, R>(
&self,
inline_query_id: I,
results: R
) -> <ErasedRequester<'a, Err> as Requester>::AnswerInlineQuery ⓘwhere
I: Into<String>,
R: IntoIterator<Item = InlineQueryResult>,
fn answer_inline_query<I, R>(
&self,
inline_query_id: I,
results: R
) -> <ErasedRequester<'a, Err> as Requester>::AnswerInlineQuery ⓘwhere
I: Into<String>,
R: IntoIterator<Item = InlineQueryResult>,
For Telegram documentation see
AnswerInlineQuery
.type AnswerWebAppQuery = ErasedRequest<'a, AnswerWebAppQuery, Err>
source§fn answer_web_app_query<W>(
&self,
web_app_query_id: W,
result: InlineQueryResult
) -> <ErasedRequester<'a, Err> as Requester>::AnswerWebAppQuery ⓘwhere
W: Into<String>,
fn answer_web_app_query<W>(
&self,
web_app_query_id: W,
result: InlineQueryResult
) -> <ErasedRequester<'a, Err> as Requester>::AnswerWebAppQuery ⓘwhere
W: Into<String>,
For Telegram documentation see
AnswerWebAppQuery
.type EditMessageText = ErasedRequest<'a, EditMessageText, Err>
source§fn edit_message_text<C, T>(
&self,
chat_id: C,
message_id: MessageId,
text: T
) -> <ErasedRequester<'a, Err> as Requester>::EditMessageText ⓘwhere
C: Into<Recipient>,
T: Into<String>,
fn edit_message_text<C, T>(
&self,
chat_id: C,
message_id: MessageId,
text: T
) -> <ErasedRequester<'a, Err> as Requester>::EditMessageText ⓘwhere
C: Into<Recipient>,
T: Into<String>,
For Telegram documentation see
EditMessageText
.type EditMessageTextInline = ErasedRequest<'a, EditMessageTextInline, Err>
source§fn edit_message_text_inline<I, T>(
&self,
inline_message_id: I,
text: T
) -> <ErasedRequester<'a, Err> as Requester>::EditMessageTextInline ⓘwhere
I: Into<String>,
T: Into<String>,
fn edit_message_text_inline<I, T>(
&self,
inline_message_id: I,
text: T
) -> <ErasedRequester<'a, Err> as Requester>::EditMessageTextInline ⓘwhere
I: Into<String>,
T: Into<String>,
For Telegram documentation see
EditMessageTextInline
.type EditMessageCaption = ErasedRequest<'a, EditMessageCaption, Err>
For Telegram documentation see
EditMessageCaption
.type EditMessageCaptionInline = ErasedRequest<'a, EditMessageCaptionInline, Err>
For Telegram documentation see
EditMessageCaptionInline
.type EditMessageMedia = ErasedRequest<'a, EditMessageMedia, Err>
source§fn edit_message_media<C>(
&self,
chat_id: C,
message_id: MessageId,
media: InputMedia
) -> <ErasedRequester<'a, Err> as Requester>::EditMessageMedia ⓘwhere
C: Into<Recipient>,
fn edit_message_media<C>(
&self,
chat_id: C,
message_id: MessageId,
media: InputMedia
) -> <ErasedRequester<'a, Err> as Requester>::EditMessageMedia ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
EditMessageMedia
.type EditMessageMediaInline = ErasedRequest<'a, EditMessageMediaInline, Err>
source§fn edit_message_media_inline<I>(
&self,
inline_message_id: I,
media: InputMedia
) -> <ErasedRequester<'a, Err> as Requester>::EditMessageMediaInline ⓘwhere
I: Into<String>,
fn edit_message_media_inline<I>(
&self,
inline_message_id: I,
media: InputMedia
) -> <ErasedRequester<'a, Err> as Requester>::EditMessageMediaInline ⓘwhere
I: Into<String>,
For Telegram documentation see
EditMessageMediaInline
.type EditMessageReplyMarkup = ErasedRequest<'a, EditMessageReplyMarkup, Err>
source§fn edit_message_reply_markup<C>(
&self,
chat_id: C,
message_id: MessageId
) -> <ErasedRequester<'a, Err> as Requester>::EditMessageReplyMarkup ⓘwhere
C: Into<Recipient>,
fn edit_message_reply_markup<C>(
&self,
chat_id: C,
message_id: MessageId
) -> <ErasedRequester<'a, Err> as Requester>::EditMessageReplyMarkup ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
EditMessageReplyMarkup
.type EditMessageReplyMarkupInline = ErasedRequest<'a, EditMessageReplyMarkupInline, Err>
source§fn edit_message_reply_markup_inline<I>(
&self,
inline_message_id: I
) -> <ErasedRequester<'a, Err> as Requester>::EditMessageReplyMarkupInline ⓘwhere
I: Into<String>,
fn edit_message_reply_markup_inline<I>(
&self,
inline_message_id: I
) -> <ErasedRequester<'a, Err> as Requester>::EditMessageReplyMarkupInline ⓘwhere
I: Into<String>,
For Telegram documentation see
EditMessageReplyMarkupInline
.type StopPoll = ErasedRequest<'a, StopPoll, Err>
source§fn stop_poll<C>(
&self,
chat_id: C,
message_id: MessageId
) -> <ErasedRequester<'a, Err> as Requester>::StopPoll ⓘwhere
C: Into<Recipient>,
fn stop_poll<C>(
&self,
chat_id: C,
message_id: MessageId
) -> <ErasedRequester<'a, Err> as Requester>::StopPoll ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
StopPoll
.type DeleteMessage = ErasedRequest<'a, DeleteMessage, Err>
source§fn delete_message<C>(
&self,
chat_id: C,
message_id: MessageId
) -> <ErasedRequester<'a, Err> as Requester>::DeleteMessage ⓘwhere
C: Into<Recipient>,
fn delete_message<C>(
&self,
chat_id: C,
message_id: MessageId
) -> <ErasedRequester<'a, Err> as Requester>::DeleteMessage ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
DeleteMessage
.type SendSticker = ErasedRequest<'a, SendSticker, Err>
source§fn send_sticker<C>(
&self,
chat_id: C,
sticker: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SendSticker ⓘwhere
C: Into<Recipient>,
fn send_sticker<C>(
&self,
chat_id: C,
sticker: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::SendSticker ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
SendSticker
.type GetStickerSet = ErasedRequest<'a, GetStickerSet, Err>
source§fn get_sticker_set<N>(
&self,
name: N
) -> <ErasedRequester<'a, Err> as Requester>::GetStickerSet ⓘwhere
N: Into<String>,
fn get_sticker_set<N>(
&self,
name: N
) -> <ErasedRequester<'a, Err> as Requester>::GetStickerSet ⓘwhere
N: Into<String>,
For Telegram documentation see
GetStickerSet
.type GetCustomEmojiStickers = ErasedRequest<'a, GetCustomEmojiStickers, Err>
source§fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C
) -> <ErasedRequester<'a, Err> as Requester>::GetCustomEmojiStickers ⓘwhere
C: IntoIterator<Item = String>,
fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C
) -> <ErasedRequester<'a, Err> as Requester>::GetCustomEmojiStickers ⓘwhere
C: IntoIterator<Item = String>,
For Telegram documentation see
GetCustomEmojiStickers
.type UploadStickerFile = ErasedRequest<'a, UploadStickerFile, Err>
source§fn upload_sticker_file(
&self,
user_id: UserId,
png_sticker: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::UploadStickerFile ⓘ
fn upload_sticker_file(
&self,
user_id: UserId,
png_sticker: InputFile
) -> <ErasedRequester<'a, Err> as Requester>::UploadStickerFile ⓘ
For Telegram documentation see
UploadStickerFile
.type CreateNewStickerSet = ErasedRequest<'a, CreateNewStickerSet, Err>
source§fn create_new_sticker_set<N, T, E>(
&self,
user_id: UserId,
name: N,
title: T,
sticker: InputSticker,
emojis: E
) -> <ErasedRequester<'a, Err> as Requester>::CreateNewStickerSet ⓘwhere
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
) -> <ErasedRequester<'a, Err> as Requester>::CreateNewStickerSet ⓘwhere
N: Into<String>,
T: Into<String>,
E: Into<String>,
For Telegram documentation see
CreateNewStickerSet
.type AddStickerToSet = ErasedRequest<'a, AddStickerToSet, Err>
source§fn add_sticker_to_set<N, E>(
&self,
user_id: UserId,
name: N,
sticker: InputSticker,
emojis: E
) -> <ErasedRequester<'a, Err> as Requester>::AddStickerToSet ⓘwhere
N: Into<String>,
E: Into<String>,
fn add_sticker_to_set<N, E>(
&self,
user_id: UserId,
name: N,
sticker: InputSticker,
emojis: E
) -> <ErasedRequester<'a, Err> as Requester>::AddStickerToSet ⓘwhere
N: Into<String>,
E: Into<String>,
For Telegram documentation see
AddStickerToSet
.type SetStickerPositionInSet = ErasedRequest<'a, SetStickerPositionInSet, Err>
source§fn set_sticker_position_in_set<S>(
&self,
sticker: S,
position: u32
) -> <ErasedRequester<'a, Err> as Requester>::SetStickerPositionInSet ⓘwhere
S: Into<String>,
fn set_sticker_position_in_set<S>(
&self,
sticker: S,
position: u32
) -> <ErasedRequester<'a, Err> as Requester>::SetStickerPositionInSet ⓘwhere
S: Into<String>,
For Telegram documentation see
SetStickerPositionInSet
.type DeleteStickerFromSet = ErasedRequest<'a, DeleteStickerFromSet, Err>
source§fn delete_sticker_from_set<S>(
&self,
sticker: S
) -> <ErasedRequester<'a, Err> as Requester>::DeleteStickerFromSet ⓘwhere
S: Into<String>,
fn delete_sticker_from_set<S>(
&self,
sticker: S
) -> <ErasedRequester<'a, Err> as Requester>::DeleteStickerFromSet ⓘwhere
S: Into<String>,
For Telegram documentation see
DeleteStickerFromSet
.type SetStickerSetThumb = ErasedRequest<'a, SetStickerSetThumb, Err>
source§fn set_sticker_set_thumb<N>(
&self,
name: N,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::SetStickerSetThumb ⓘwhere
N: Into<String>,
fn set_sticker_set_thumb<N>(
&self,
name: N,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::SetStickerSetThumb ⓘwhere
N: Into<String>,
For Telegram documentation see
SetStickerSetThumb
.type SendInvoice = ErasedRequest<'a, SendInvoice, Err>
source§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
) -> <ErasedRequester<'a, Err> as Requester>::SendInvoice ⓘwhere
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
) -> <ErasedRequester<'a, Err> as Requester>::SendInvoice ⓘwhere
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 = ErasedRequest<'a, CreateInvoiceLink, Err>
source§fn create_invoice_link<T, D, Pa, P, C, Pri>(
&self,
title: T,
description: D,
payload: Pa,
provider_token: P,
currency: C,
prices: Pri
) -> <ErasedRequester<'a, Err> as Requester>::CreateInvoiceLink ⓘwhere
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
) -> <ErasedRequester<'a, Err> as Requester>::CreateInvoiceLink ⓘwhere
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 = ErasedRequest<'a, AnswerShippingQuery, Err>
source§fn answer_shipping_query<S>(
&self,
shipping_query_id: S,
ok: bool
) -> <ErasedRequester<'a, Err> as Requester>::AnswerShippingQuery ⓘwhere
S: Into<String>,
fn answer_shipping_query<S>(
&self,
shipping_query_id: S,
ok: bool
) -> <ErasedRequester<'a, Err> as Requester>::AnswerShippingQuery ⓘwhere
S: Into<String>,
For Telegram documentation see
AnswerShippingQuery
.type AnswerPreCheckoutQuery = ErasedRequest<'a, AnswerPreCheckoutQuery, Err>
source§fn answer_pre_checkout_query<P>(
&self,
pre_checkout_query_id: P,
ok: bool
) -> <ErasedRequester<'a, Err> as Requester>::AnswerPreCheckoutQuery ⓘwhere
P: Into<String>,
fn answer_pre_checkout_query<P>(
&self,
pre_checkout_query_id: P,
ok: bool
) -> <ErasedRequester<'a, Err> as Requester>::AnswerPreCheckoutQuery ⓘwhere
P: Into<String>,
For Telegram documentation see
AnswerPreCheckoutQuery
.type SetPassportDataErrors = ErasedRequest<'a, SetPassportDataErrors, Err>
source§fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E
) -> <ErasedRequester<'a, Err> as Requester>::SetPassportDataErrors ⓘwhere
E: IntoIterator<Item = PassportElementError>,
fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E
) -> <ErasedRequester<'a, Err> as Requester>::SetPassportDataErrors ⓘwhere
E: IntoIterator<Item = PassportElementError>,
For Telegram documentation see
SetPassportDataErrors
.type SendGame = ErasedRequest<'a, SendGame, Err>
source§fn send_game<G>(
&self,
chat_id: u32,
game_short_name: G
) -> <ErasedRequester<'a, Err> as Requester>::SendGame ⓘwhere
G: Into<String>,
fn send_game<G>(
&self,
chat_id: u32,
game_short_name: G
) -> <ErasedRequester<'a, Err> as Requester>::SendGame ⓘwhere
G: Into<String>,
For Telegram documentation see
SendGame
.type SetGameScore = ErasedRequest<'a, SetGameScore, Err>
source§fn set_game_score(
&self,
user_id: UserId,
score: u64,
chat_id: u32,
message_id: MessageId
) -> <ErasedRequester<'a, Err> as Requester>::SetGameScore ⓘ
fn set_game_score(
&self,
user_id: UserId,
score: u64,
chat_id: u32,
message_id: MessageId
) -> <ErasedRequester<'a, Err> as Requester>::SetGameScore ⓘ
For Telegram documentation see
SetGameScore
.type SetGameScoreInline = ErasedRequest<'a, SetGameScoreInline, Err>
source§fn set_game_score_inline<I>(
&self,
user_id: UserId,
score: u64,
inline_message_id: I
) -> <ErasedRequester<'a, Err> as Requester>::SetGameScoreInline ⓘwhere
I: Into<String>,
fn set_game_score_inline<I>(
&self,
user_id: UserId,
score: u64,
inline_message_id: I
) -> <ErasedRequester<'a, Err> as Requester>::SetGameScoreInline ⓘwhere
I: Into<String>,
For Telegram documentation see
SetGameScoreInline
.type GetGameHighScores = ErasedRequest<'a, GetGameHighScores, Err>
source§fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T
) -> <ErasedRequester<'a, Err> as Requester>::GetGameHighScores ⓘwhere
T: Into<TargetMessage>,
fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T
) -> <ErasedRequester<'a, Err> as Requester>::GetGameHighScores ⓘwhere
T: Into<TargetMessage>,
For Telegram documentation see
GetGameHighScores
.type ApproveChatJoinRequest = ErasedRequest<'a, ApproveChatJoinRequest, Err>
source§fn approve_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::ApproveChatJoinRequest ⓘwhere
C: Into<Recipient>,
fn approve_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::ApproveChatJoinRequest ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
ApproveChatJoinRequest
.type DeclineChatJoinRequest = ErasedRequest<'a, DeclineChatJoinRequest, Err>
source§fn decline_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::DeclineChatJoinRequest ⓘwhere
C: Into<Recipient>,
fn decline_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId
) -> <ErasedRequester<'a, Err> as Requester>::DeclineChatJoinRequest ⓘwhere
C: Into<Recipient>,
For Telegram documentation see
DeclineChatJoinRequest
.Auto Trait Implementations§
impl<'a, E> !RefUnwindSafe for ErasedRequester<'a, E>
impl<'a, E> !Send for ErasedRequester<'a, E>
impl<'a, E> !Sync for ErasedRequester<'a, E>
impl<'a, E> Unpin for ErasedRequester<'a, E>
impl<'a, E> !UnwindSafe for ErasedRequester<'a, E>
Blanket Implementations§
§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> 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 auto_send(self) -> AutoSend<Self> ⓘwhere
Self: Sized,
fn auto_send(self) -> AutoSend<Self> ⓘwhere
Self: Sized,
👎Deprecated since 0.8.0:
AutoSend
is no longer required to .await
requests and is now noopAvailable on crate feature
auto_send
only.Send requests automatically, see
AutoSend
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> ⓘwhere
Self: Sized + Clone + Send + Sync + 'static,
Self::Err: AsResponseParameters,
Self::GetChat: Send,
fn throttle(self, limits: Limits) -> Throttle<Self> ⓘwhere
Self: Sized + Clone + Send + Sync + 'static,
Self::Err: AsResponseParameters,
Self::GetChat: Send,
Available on crate feature
throttle
only.