pub struct Bot { /* private fields */ }
Expand description
A requests sender.
This is the main type of the library, it allows to send requests to the Telegram Bot API and download files.
TBA methods
All TBA methods are located in the Requester
impl for Bot
. This
allows for opt-in behaviours using requester adaptors.
use teloxide_core::prelude::*;
let bot = Bot::new("TOKEN");
dbg!(bot.get_me().await?);
File download
In the similar way as with TBA methods, file downloading methods are located
in a trait — Download<'_>
. See its documentation for more.
Clone cost
Bot::clone
is relatively cheap, so if you need to share Bot
, it’s
recommended to clone it, instead of wrapping it in Arc<_>
.
Implementations§
source§impl Bot
impl Bot
Constructors
sourcepub fn new<S>(token: S) -> Bot ⓘwhere
S: Into<String>,
pub fn new<S>(token: S) -> Bot ⓘwhere
S: Into<String>,
Creates a new Bot
with the specified token and the default
http-client.
Panics
If it cannot create [reqwest::Client
].
sourcepub fn with_client<S>(token: S, client: Client) -> Bot ⓘwhere
S: Into<String>,
pub fn with_client<S>(token: S, client: Client) -> Bot ⓘwhere
S: Into<String>,
Creates a new Bot
with the specified token and your
reqwest::Client
.
Caution
Your custom client might not be configured correctly to be able to work in long time durations, see issue 223.
sourcepub fn from_env() -> Bot ⓘ
pub fn from_env() -> Bot ⓘ
Creates a new Bot
with the TELOXIDE_TOKEN
& TELOXIDE_PROXY
environmental variables (a bot’s token & a proxy) and the default
reqwest::Client
.
This function passes the value of TELOXIDE_PROXY
into
reqwest::Proxy::all
, if it exists, otherwise returns the default
client.
Panics
- If cannot get the
TELOXIDE_TOKEN
environmental variable. - If it cannot create
reqwest::Client
.
sourcepub fn from_env_with_client(client: Client) -> Bot ⓘ
pub fn from_env_with_client(client: Client) -> Bot ⓘ
Creates a new Bot
with the TELOXIDE_TOKEN
environmental variable (a
bot’s token) and your reqwest::Client
.
Panics
If cannot get the TELOXIDE_TOKEN
environmental variable.
Caution
Your custom client might not be configured correctly to be able to work in long time durations, see issue 223.
sourcepub fn set_api_url(self, url: Url) -> Bot ⓘ
pub fn set_api_url(self, url: Url) -> Bot ⓘ
Sets a custom API URL.
For example, you can run your own Telegram bot API server and set its URL using this method.
Examples
use teloxide_core::{
requests::{Request, Requester},
Bot,
};
let url = reqwest::Url::parse("https://localhost/tbas").unwrap();
let bot = Bot::new("TOKEN").set_api_url(url);
// From now all methods will use "https://localhost/tbas" as an API URL.
bot.get_me().await
Multi-instance behaviour
This method only sets the url for one bot instace, older clones are unaffected.
use teloxide_core::Bot;
let bot = Bot::new("TOKEN");
let bot2 = bot.clone();
let bot = bot.set_api_url(reqwest::Url::parse("https://example.com/").unwrap());
assert_eq!(bot.api_url().as_str(), "https://example.com/");
assert_eq!(bot.clone().api_url().as_str(), "https://example.com/");
assert_ne!(bot2.api_url().as_str(), "https://example.com/");
Trait Implementations§
source§impl<'w> Download<'w> for Bot
impl<'w> Download<'w> for Bot
§type Err = DownloadError
type Err = DownloadError
download_file
.§type Fut = Pin<Box<dyn Future<Output = Result<(), <Bot as Download<'w>>::Err>> + Send + 'w, Global>>
type Fut = Pin<Box<dyn Future<Output = Result<(), <Bot as Download<'w>>::Err>> + Send + 'w, Global>>
download_file
.source§fn download_file(
&self,
path: &str,
destination: &'w mut (dyn AsyncWrite + Send + Unpin + 'w)
) -> <Bot as Download<'w>>::Fut ⓘ
fn download_file(
&self,
path: &str,
destination: &'w mut (dyn AsyncWrite + Send + Unpin + 'w)
) -> <Bot as Download<'w>>::Fut ⓘ
destination
. Read more§type StreamErr = Error
type StreamErr = Error
download_file_stream
.source§impl Requester for Bot
impl Requester for Bot
§type Err = RequestError
type Err = RequestError
type GetUpdates = JsonRequest<GetUpdates>
source§fn get_updates(&self) -> <Bot as Requester>::GetUpdates ⓘ
fn get_updates(&self) -> <Bot as Requester>::GetUpdates ⓘ
GetUpdates
.type SetWebhook = MultipartRequest<SetWebhook>
source§fn set_webhook(&self, url: Url) -> <Bot as Requester>::SetWebhook ⓘ
fn set_webhook(&self, url: Url) -> <Bot as Requester>::SetWebhook ⓘ
SetWebhook
.type DeleteWebhook = JsonRequest<DeleteWebhook>
source§fn delete_webhook(&self) -> <Bot as Requester>::DeleteWebhook ⓘ
fn delete_webhook(&self) -> <Bot as Requester>::DeleteWebhook ⓘ
DeleteWebhook
.type GetWebhookInfo = JsonRequest<GetWebhookInfo>
source§fn get_webhook_info(&self) -> <Bot as Requester>::GetWebhookInfo ⓘ
fn get_webhook_info(&self) -> <Bot as Requester>::GetWebhookInfo ⓘ
GetWebhookInfo
.type GetMe = JsonRequest<GetMe>
type SendMessage = JsonRequest<SendMessage>
source§fn send_message<C, T>(
&self,
chat_id: C,
text: T
) -> <Bot as Requester>::SendMessage ⓘwhere
C: Into<Recipient>,
T: Into<String>,
fn send_message<C, T>(
&self,
chat_id: C,
text: T
) -> <Bot as Requester>::SendMessage ⓘwhere
C: Into<Recipient>,
T: Into<String>,
SendMessage
.type ForwardMessage = JsonRequest<ForwardMessage>
source§fn forward_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId
) -> <Bot 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
) -> <Bot as Requester>::ForwardMessage ⓘwhere
C: Into<Recipient>,
F: Into<Recipient>,
ForwardMessage
.type SendPhoto = MultipartRequest<SendPhoto>
source§fn send_photo<C>(
&self,
chat_id: C,
photo: InputFile
) -> <Bot as Requester>::SendPhoto ⓘwhere
C: Into<Recipient>,
fn send_photo<C>(
&self,
chat_id: C,
photo: InputFile
) -> <Bot as Requester>::SendPhoto ⓘwhere
C: Into<Recipient>,
SendPhoto
.type SendAudio = MultipartRequest<SendAudio>
source§fn send_audio<C>(
&self,
chat_id: C,
audio: InputFile
) -> <Bot as Requester>::SendAudio ⓘwhere
C: Into<Recipient>,
fn send_audio<C>(
&self,
chat_id: C,
audio: InputFile
) -> <Bot as Requester>::SendAudio ⓘwhere
C: Into<Recipient>,
SendAudio
.type SendDocument = MultipartRequest<SendDocument>
source§fn send_document<C>(
&self,
chat_id: C,
document: InputFile
) -> <Bot as Requester>::SendDocument ⓘwhere
C: Into<Recipient>,
fn send_document<C>(
&self,
chat_id: C,
document: InputFile
) -> <Bot as Requester>::SendDocument ⓘwhere
C: Into<Recipient>,
SendDocument
.type SendVideo = MultipartRequest<SendVideo>
source§fn send_video<C>(
&self,
chat_id: C,
video: InputFile
) -> <Bot as Requester>::SendVideo ⓘwhere
C: Into<Recipient>,
fn send_video<C>(
&self,
chat_id: C,
video: InputFile
) -> <Bot as Requester>::SendVideo ⓘwhere
C: Into<Recipient>,
SendVideo
.type SendAnimation = MultipartRequest<SendAnimation>
source§fn send_animation<C>(
&self,
chat_id: C,
animation: InputFile
) -> <Bot as Requester>::SendAnimation ⓘwhere
C: Into<Recipient>,
fn send_animation<C>(
&self,
chat_id: C,
animation: InputFile
) -> <Bot as Requester>::SendAnimation ⓘwhere
C: Into<Recipient>,
SendAnimation
.type SendVoice = MultipartRequest<SendVoice>
source§fn send_voice<C>(
&self,
chat_id: C,
voice: InputFile
) -> <Bot as Requester>::SendVoice ⓘwhere
C: Into<Recipient>,
fn send_voice<C>(
&self,
chat_id: C,
voice: InputFile
) -> <Bot as Requester>::SendVoice ⓘwhere
C: Into<Recipient>,
SendVoice
.type SendVideoNote = MultipartRequest<SendVideoNote>
source§fn send_video_note<C>(
&self,
chat_id: C,
video_note: InputFile
) -> <Bot as Requester>::SendVideoNote ⓘwhere
C: Into<Recipient>,
fn send_video_note<C>(
&self,
chat_id: C,
video_note: InputFile
) -> <Bot as Requester>::SendVideoNote ⓘwhere
C: Into<Recipient>,
SendVideoNote
.type SendMediaGroup = MultipartRequest<SendMediaGroup>
source§fn send_media_group<C, M>(
&self,
chat_id: C,
media: M
) -> <Bot as Requester>::SendMediaGroup ⓘwhere
C: Into<Recipient>,
M: IntoIterator<Item = InputMedia>,
fn send_media_group<C, M>(
&self,
chat_id: C,
media: M
) -> <Bot as Requester>::SendMediaGroup ⓘwhere
C: Into<Recipient>,
M: IntoIterator<Item = InputMedia>,
SendMediaGroup
.type SendLocation = JsonRequest<SendLocation>
source§fn send_location<C>(
&self,
chat_id: C,
latitude: f64,
longitude: f64
) -> <Bot as Requester>::SendLocation ⓘwhere
C: Into<Recipient>,
fn send_location<C>(
&self,
chat_id: C,
latitude: f64,
longitude: f64
) -> <Bot as Requester>::SendLocation ⓘwhere
C: Into<Recipient>,
SendLocation
.type EditMessageLiveLocation = JsonRequest<EditMessageLiveLocation>
source§fn edit_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64
) -> <Bot as Requester>::EditMessageLiveLocation ⓘwhere
C: Into<Recipient>,
fn edit_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64
) -> <Bot as Requester>::EditMessageLiveLocation ⓘwhere
C: Into<Recipient>,
EditMessageLiveLocation
.type EditMessageLiveLocationInline = JsonRequest<EditMessageLiveLocationInline>
source§fn edit_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64
) -> <Bot as Requester>::EditMessageLiveLocationInline ⓘwhere
I: Into<String>,
fn edit_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64
) -> <Bot as Requester>::EditMessageLiveLocationInline ⓘwhere
I: Into<String>,
EditMessageLiveLocationInline
.type StopMessageLiveLocation = JsonRequest<StopMessageLiveLocation>
source§fn stop_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64
) -> <Bot as Requester>::StopMessageLiveLocation ⓘwhere
C: Into<Recipient>,
fn stop_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64
) -> <Bot as Requester>::StopMessageLiveLocation ⓘwhere
C: Into<Recipient>,
StopMessageLiveLocation
.type StopMessageLiveLocationInline = JsonRequest<StopMessageLiveLocationInline>
source§fn stop_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64
) -> <Bot as Requester>::StopMessageLiveLocationInline ⓘwhere
I: Into<String>,
fn stop_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64
) -> <Bot as Requester>::StopMessageLiveLocationInline ⓘwhere
I: Into<String>,
StopMessageLiveLocationInline
.type SendVenue = JsonRequest<SendVenue>
source§fn send_venue<C, T, A>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
title: T,
address: A
) -> <Bot 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
) -> <Bot as Requester>::SendVenue ⓘwhere
C: Into<Recipient>,
T: Into<String>,
A: Into<String>,
SendVenue
.type SendContact = JsonRequest<SendContact>
source§fn send_contact<C, P, F>(
&self,
chat_id: C,
phone_number: P,
first_name: F
) -> <Bot 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
) -> <Bot as Requester>::SendContact ⓘwhere
C: Into<Recipient>,
P: Into<String>,
F: Into<String>,
SendContact
.type SendPoll = JsonRequest<SendPoll>
source§fn send_poll<C, Q, O>(
&self,
chat_id: C,
question: Q,
options: O
) -> <Bot 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
) -> <Bot as Requester>::SendPoll ⓘwhere
C: Into<Recipient>,
Q: Into<String>,
O: IntoIterator<Item = String>,
SendPoll
.type SendDice = JsonRequest<SendDice>
source§fn send_dice<C>(&self, chat_id: C) -> <Bot as Requester>::SendDice ⓘwhere
C: Into<Recipient>,
fn send_dice<C>(&self, chat_id: C) -> <Bot as Requester>::SendDice ⓘwhere
C: Into<Recipient>,
SendDice
.type SendChatAction = JsonRequest<SendChatAction>
source§fn send_chat_action<C>(
&self,
chat_id: C,
action: ChatAction
) -> <Bot as Requester>::SendChatAction ⓘwhere
C: Into<Recipient>,
fn send_chat_action<C>(
&self,
chat_id: C,
action: ChatAction
) -> <Bot as Requester>::SendChatAction ⓘwhere
C: Into<Recipient>,
SendChatAction
.type GetUserProfilePhotos = JsonRequest<GetUserProfilePhotos>
source§fn get_user_profile_photos(
&self,
user_id: UserId
) -> <Bot as Requester>::GetUserProfilePhotos ⓘ
fn get_user_profile_photos(
&self,
user_id: UserId
) -> <Bot as Requester>::GetUserProfilePhotos ⓘ
GetUserProfilePhotos
.type GetFile = JsonRequest<GetFile>
source§fn get_file<F>(&self, file_id: F) -> <Bot as Requester>::GetFile ⓘwhere
F: Into<String>,
fn get_file<F>(&self, file_id: F) -> <Bot as Requester>::GetFile ⓘwhere
F: Into<String>,
GetFile
.type KickChatMember = JsonRequest<KickChatMember>
source§fn kick_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <Bot as Requester>::KickChatMember ⓘwhere
C: Into<Recipient>,
fn kick_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <Bot as Requester>::KickChatMember ⓘwhere
C: Into<Recipient>,
KickChatMember
.type BanChatMember = JsonRequest<BanChatMember>
source§fn ban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <Bot as Requester>::BanChatMember ⓘwhere
C: Into<Recipient>,
fn ban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <Bot as Requester>::BanChatMember ⓘwhere
C: Into<Recipient>,
BanChatMember
.type UnbanChatMember = JsonRequest<UnbanChatMember>
source§fn unban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <Bot as Requester>::UnbanChatMember ⓘwhere
C: Into<Recipient>,
fn unban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <Bot as Requester>::UnbanChatMember ⓘwhere
C: Into<Recipient>,
UnbanChatMember
.type RestrictChatMember = JsonRequest<RestrictChatMember>
source§fn restrict_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
permissions: ChatPermissions
) -> <Bot as Requester>::RestrictChatMember ⓘwhere
C: Into<Recipient>,
fn restrict_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
permissions: ChatPermissions
) -> <Bot as Requester>::RestrictChatMember ⓘwhere
C: Into<Recipient>,
RestrictChatMember
.type PromoteChatMember = JsonRequest<PromoteChatMember>
source§fn promote_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <Bot as Requester>::PromoteChatMember ⓘwhere
C: Into<Recipient>,
fn promote_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <Bot as Requester>::PromoteChatMember ⓘwhere
C: Into<Recipient>,
PromoteChatMember
.type SetChatAdministratorCustomTitle = JsonRequest<SetChatAdministratorCustomTitle>
source§fn set_chat_administrator_custom_title<Ch, Cu>(
&self,
chat_id: Ch,
user_id: UserId,
custom_title: Cu
) -> <Bot as Requester>::SetChatAdministratorCustomTitle ⓘwhere
Ch: Into<Recipient>,
Cu: Into<String>,
fn set_chat_administrator_custom_title<Ch, Cu>(
&self,
chat_id: Ch,
user_id: UserId,
custom_title: Cu
) -> <Bot as Requester>::SetChatAdministratorCustomTitle ⓘwhere
Ch: Into<Recipient>,
Cu: Into<String>,
SetChatAdministratorCustomTitle
.type BanChatSenderChat = JsonRequest<BanChatSenderChat>
source§fn ban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S
) -> <Bot 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
) -> <Bot as Requester>::BanChatSenderChat ⓘwhere
C: Into<Recipient>,
S: Into<ChatId>,
BanChatSenderChat
.type UnbanChatSenderChat = JsonRequest<UnbanChatSenderChat>
source§fn unban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S
) -> <Bot 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
) -> <Bot as Requester>::UnbanChatSenderChat ⓘwhere
C: Into<Recipient>,
S: Into<ChatId>,
UnbanChatSenderChat
.type SetChatPermissions = JsonRequest<SetChatPermissions>
source§fn set_chat_permissions<C>(
&self,
chat_id: C,
permissions: ChatPermissions
) -> <Bot as Requester>::SetChatPermissions ⓘwhere
C: Into<Recipient>,
fn set_chat_permissions<C>(
&self,
chat_id: C,
permissions: ChatPermissions
) -> <Bot as Requester>::SetChatPermissions ⓘwhere
C: Into<Recipient>,
SetChatPermissions
.type ExportChatInviteLink = JsonRequest<ExportChatInviteLink>
source§fn export_chat_invite_link<C>(
&self,
chat_id: C
) -> <Bot as Requester>::ExportChatInviteLink ⓘwhere
C: Into<Recipient>,
fn export_chat_invite_link<C>(
&self,
chat_id: C
) -> <Bot as Requester>::ExportChatInviteLink ⓘwhere
C: Into<Recipient>,
ExportChatInviteLink
.type CreateChatInviteLink = JsonRequest<CreateChatInviteLink>
source§fn create_chat_invite_link<C>(
&self,
chat_id: C
) -> <Bot as Requester>::CreateChatInviteLink ⓘwhere
C: Into<Recipient>,
fn create_chat_invite_link<C>(
&self,
chat_id: C
) -> <Bot as Requester>::CreateChatInviteLink ⓘwhere
C: Into<Recipient>,
CreateChatInviteLink
.type EditChatInviteLink = JsonRequest<EditChatInviteLink>
source§fn edit_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I
) -> <Bot as Requester>::EditChatInviteLink ⓘwhere
C: Into<Recipient>,
I: Into<String>,
fn edit_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I
) -> <Bot as Requester>::EditChatInviteLink ⓘwhere
C: Into<Recipient>,
I: Into<String>,
EditChatInviteLink
.type RevokeChatInviteLink = JsonRequest<RevokeChatInviteLink>
source§fn revoke_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I
) -> <Bot as Requester>::RevokeChatInviteLink ⓘwhere
C: Into<Recipient>,
I: Into<String>,
fn revoke_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I
) -> <Bot as Requester>::RevokeChatInviteLink ⓘwhere
C: Into<Recipient>,
I: Into<String>,
RevokeChatInviteLink
.type ApproveChatJoinRequest = JsonRequest<ApproveChatJoinRequest>
source§fn approve_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId
) -> <Bot as Requester>::ApproveChatJoinRequest ⓘwhere
C: Into<Recipient>,
fn approve_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId
) -> <Bot as Requester>::ApproveChatJoinRequest ⓘwhere
C: Into<Recipient>,
ApproveChatJoinRequest
.type DeclineChatJoinRequest = JsonRequest<DeclineChatJoinRequest>
source§fn decline_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId
) -> <Bot as Requester>::DeclineChatJoinRequest ⓘwhere
C: Into<Recipient>,
fn decline_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId
) -> <Bot as Requester>::DeclineChatJoinRequest ⓘwhere
C: Into<Recipient>,
DeclineChatJoinRequest
.type SetChatPhoto = MultipartRequest<SetChatPhoto>
source§fn set_chat_photo<C>(
&self,
chat_id: C,
photo: InputFile
) -> <Bot as Requester>::SetChatPhoto ⓘwhere
C: Into<Recipient>,
fn set_chat_photo<C>(
&self,
chat_id: C,
photo: InputFile
) -> <Bot as Requester>::SetChatPhoto ⓘwhere
C: Into<Recipient>,
SetChatPhoto
.type DeleteChatPhoto = JsonRequest<DeleteChatPhoto>
source§fn delete_chat_photo<C>(&self, chat_id: C) -> <Bot as Requester>::DeleteChatPhoto ⓘwhere
C: Into<Recipient>,
fn delete_chat_photo<C>(&self, chat_id: C) -> <Bot as Requester>::DeleteChatPhoto ⓘwhere
C: Into<Recipient>,
DeleteChatPhoto
.type SetChatTitle = JsonRequest<SetChatTitle>
source§fn set_chat_title<C, T>(
&self,
chat_id: C,
title: T
) -> <Bot as Requester>::SetChatTitle ⓘwhere
C: Into<Recipient>,
T: Into<String>,
fn set_chat_title<C, T>(
&self,
chat_id: C,
title: T
) -> <Bot as Requester>::SetChatTitle ⓘwhere
C: Into<Recipient>,
T: Into<String>,
SetChatTitle
.type SetChatDescription = JsonRequest<SetChatDescription>
source§fn set_chat_description<C>(
&self,
chat_id: C
) -> <Bot as Requester>::SetChatDescription ⓘwhere
C: Into<Recipient>,
fn set_chat_description<C>(
&self,
chat_id: C
) -> <Bot as Requester>::SetChatDescription ⓘwhere
C: Into<Recipient>,
SetChatDescription
.type PinChatMessage = JsonRequest<PinChatMessage>
source§fn pin_chat_message<C>(
&self,
chat_id: C,
message_id: MessageId
) -> <Bot as Requester>::PinChatMessage ⓘwhere
C: Into<Recipient>,
fn pin_chat_message<C>(
&self,
chat_id: C,
message_id: MessageId
) -> <Bot as Requester>::PinChatMessage ⓘwhere
C: Into<Recipient>,
PinChatMessage
.type UnpinChatMessage = JsonRequest<UnpinChatMessage>
source§fn unpin_chat_message<C>(
&self,
chat_id: C
) -> <Bot as Requester>::UnpinChatMessage ⓘwhere
C: Into<Recipient>,
fn unpin_chat_message<C>(
&self,
chat_id: C
) -> <Bot as Requester>::UnpinChatMessage ⓘwhere
C: Into<Recipient>,
UnpinChatMessage
.type LeaveChat = JsonRequest<LeaveChat>
source§fn leave_chat<C>(&self, chat_id: C) -> <Bot as Requester>::LeaveChat ⓘwhere
C: Into<Recipient>,
fn leave_chat<C>(&self, chat_id: C) -> <Bot as Requester>::LeaveChat ⓘwhere
C: Into<Recipient>,
LeaveChat
.type GetChat = JsonRequest<GetChat>
source§fn get_chat<C>(&self, chat_id: C) -> <Bot as Requester>::GetChat ⓘwhere
C: Into<Recipient>,
fn get_chat<C>(&self, chat_id: C) -> <Bot as Requester>::GetChat ⓘwhere
C: Into<Recipient>,
GetChat
.type GetChatAdministrators = JsonRequest<GetChatAdministrators>
source§fn get_chat_administrators<C>(
&self,
chat_id: C
) -> <Bot as Requester>::GetChatAdministrators ⓘwhere
C: Into<Recipient>,
fn get_chat_administrators<C>(
&self,
chat_id: C
) -> <Bot as Requester>::GetChatAdministrators ⓘwhere
C: Into<Recipient>,
GetChatAdministrators
.type GetChatMembersCount = JsonRequest<GetChatMembersCount>
source§fn get_chat_members_count<C>(
&self,
chat_id: C
) -> <Bot as Requester>::GetChatMembersCount ⓘwhere
C: Into<Recipient>,
fn get_chat_members_count<C>(
&self,
chat_id: C
) -> <Bot as Requester>::GetChatMembersCount ⓘwhere
C: Into<Recipient>,
GetChatMembersCount
.type GetChatMemberCount = JsonRequest<GetChatMemberCount>
source§fn get_chat_member_count<C>(
&self,
chat_id: C
) -> <Bot as Requester>::GetChatMemberCount ⓘwhere
C: Into<Recipient>,
fn get_chat_member_count<C>(
&self,
chat_id: C
) -> <Bot as Requester>::GetChatMemberCount ⓘwhere
C: Into<Recipient>,
GetChatMemberCount
.type GetChatMember = JsonRequest<GetChatMember>
source§fn get_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <Bot as Requester>::GetChatMember ⓘwhere
C: Into<Recipient>,
fn get_chat_member<C>(
&self,
chat_id: C,
user_id: UserId
) -> <Bot as Requester>::GetChatMember ⓘwhere
C: Into<Recipient>,
GetChatMember
.type SetChatStickerSet = JsonRequest<SetChatStickerSet>
source§fn set_chat_sticker_set<C, S>(
&self,
chat_id: C,
sticker_set_name: S
) -> <Bot 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
) -> <Bot as Requester>::SetChatStickerSet ⓘwhere
C: Into<Recipient>,
S: Into<String>,
SetChatStickerSet
.type DeleteChatStickerSet = JsonRequest<DeleteChatStickerSet>
source§fn delete_chat_sticker_set<C>(
&self,
chat_id: C
) -> <Bot as Requester>::DeleteChatStickerSet ⓘwhere
C: Into<Recipient>,
fn delete_chat_sticker_set<C>(
&self,
chat_id: C
) -> <Bot as Requester>::DeleteChatStickerSet ⓘwhere
C: Into<Recipient>,
DeleteChatStickerSet
.type GetForumTopicIconStickers = JsonRequest<GetForumTopicIconStickers>
source§fn get_forum_topic_icon_stickers(
&self
) -> <Bot as Requester>::GetForumTopicIconStickers ⓘ
fn get_forum_topic_icon_stickers(
&self
) -> <Bot as Requester>::GetForumTopicIconStickers ⓘ
GetForumTopicIconStickers
.type CreateForumTopic = JsonRequest<CreateForumTopic>
source§fn create_forum_topic<C, N, I>(
&self,
chat_id: C,
name: N,
icon_color: u32,
icon_custom_emoji_id: I
) -> <Bot 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
) -> <Bot as Requester>::CreateForumTopic ⓘwhere
C: Into<Recipient>,
N: Into<String>,
I: Into<String>,
CreateForumTopic
.type EditForumTopic = JsonRequest<EditForumTopic>
source§fn edit_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <Bot as Requester>::EditForumTopic ⓘwhere
C: Into<Recipient>,
fn edit_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <Bot as Requester>::EditForumTopic ⓘwhere
C: Into<Recipient>,
EditForumTopic
.type CloseForumTopic = JsonRequest<CloseForumTopic>
source§fn close_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <Bot as Requester>::CloseForumTopic ⓘwhere
C: Into<Recipient>,
fn close_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <Bot as Requester>::CloseForumTopic ⓘwhere
C: Into<Recipient>,
CloseForumTopic
.type ReopenForumTopic = JsonRequest<ReopenForumTopic>
source§fn reopen_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <Bot as Requester>::ReopenForumTopic ⓘwhere
C: Into<Recipient>,
fn reopen_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <Bot as Requester>::ReopenForumTopic ⓘwhere
C: Into<Recipient>,
ReopenForumTopic
.type DeleteForumTopic = JsonRequest<DeleteForumTopic>
source§fn delete_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <Bot as Requester>::DeleteForumTopic ⓘwhere
C: Into<Recipient>,
fn delete_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <Bot as Requester>::DeleteForumTopic ⓘwhere
C: Into<Recipient>,
DeleteForumTopic
.type UnpinAllForumTopicMessages = JsonRequest<UnpinAllForumTopicMessages>
source§fn unpin_all_forum_topic_messages<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <Bot as Requester>::UnpinAllForumTopicMessages ⓘwhere
C: Into<Recipient>,
fn unpin_all_forum_topic_messages<C>(
&self,
chat_id: C,
message_thread_id: i32
) -> <Bot as Requester>::UnpinAllForumTopicMessages ⓘwhere
C: Into<Recipient>,
UnpinAllForumTopicMessages
.type EditGeneralForumTopic = JsonRequest<EditGeneralForumTopic>
source§fn edit_general_forum_topic<C, N>(
&self,
chat_id: C,
name: N
) -> <Bot as Requester>::EditGeneralForumTopic ⓘwhere
C: Into<Recipient>,
N: Into<String>,
fn edit_general_forum_topic<C, N>(
&self,
chat_id: C,
name: N
) -> <Bot as Requester>::EditGeneralForumTopic ⓘwhere
C: Into<Recipient>,
N: Into<String>,
EditGeneralForumTopic
.type CloseGeneralForumTopic = JsonRequest<CloseGeneralForumTopic>
source§fn close_general_forum_topic<C>(
&self,
chat_id: C
) -> <Bot as Requester>::CloseGeneralForumTopic ⓘwhere
C: Into<Recipient>,
fn close_general_forum_topic<C>(
&self,
chat_id: C
) -> <Bot as Requester>::CloseGeneralForumTopic ⓘwhere
C: Into<Recipient>,
CloseGeneralForumTopic
.type ReopenGeneralForumTopic = JsonRequest<ReopenGeneralForumTopic>
source§fn reopen_general_forum_topic<C>(
&self,
chat_id: C
) -> <Bot as Requester>::ReopenGeneralForumTopic ⓘwhere
C: Into<Recipient>,
fn reopen_general_forum_topic<C>(
&self,
chat_id: C
) -> <Bot as Requester>::ReopenGeneralForumTopic ⓘwhere
C: Into<Recipient>,
ReopenGeneralForumTopic
.type HideGeneralForumTopic = JsonRequest<HideGeneralForumTopic>
source§fn hide_general_forum_topic<C>(
&self,
chat_id: C
) -> <Bot as Requester>::HideGeneralForumTopic ⓘwhere
C: Into<Recipient>,
fn hide_general_forum_topic<C>(
&self,
chat_id: C
) -> <Bot as Requester>::HideGeneralForumTopic ⓘwhere
C: Into<Recipient>,
HideGeneralForumTopic
.type UnhideGeneralForumTopic = JsonRequest<UnhideGeneralForumTopic>
source§fn unhide_general_forum_topic<C>(
&self,
chat_id: C
) -> <Bot as Requester>::UnhideGeneralForumTopic ⓘwhere
C: Into<Recipient>,
fn unhide_general_forum_topic<C>(
&self,
chat_id: C
) -> <Bot as Requester>::UnhideGeneralForumTopic ⓘwhere
C: Into<Recipient>,
UnhideGeneralForumTopic
.type AnswerCallbackQuery = JsonRequest<AnswerCallbackQuery>
source§fn answer_callback_query<C>(
&self,
callback_query_id: C
) -> <Bot as Requester>::AnswerCallbackQuery ⓘwhere
C: Into<String>,
fn answer_callback_query<C>(
&self,
callback_query_id: C
) -> <Bot as Requester>::AnswerCallbackQuery ⓘwhere
C: Into<String>,
AnswerCallbackQuery
.type SetMyCommands = JsonRequest<SetMyCommands>
source§fn set_my_commands<C>(&self, commands: C) -> <Bot as Requester>::SetMyCommands ⓘwhere
C: IntoIterator<Item = BotCommand>,
fn set_my_commands<C>(&self, commands: C) -> <Bot as Requester>::SetMyCommands ⓘwhere
C: IntoIterator<Item = BotCommand>,
SetMyCommands
.type GetMyCommands = JsonRequest<GetMyCommands>
source§fn get_my_commands(&self) -> <Bot as Requester>::GetMyCommands ⓘ
fn get_my_commands(&self) -> <Bot as Requester>::GetMyCommands ⓘ
GetMyCommands
.type SetChatMenuButton = JsonRequest<SetChatMenuButton>
SetChatMenuButton
.type GetChatMenuButton = JsonRequest<GetChatMenuButton>
GetChatMenuButton
.type SetMyDefaultAdministratorRights = JsonRequest<SetMyDefaultAdministratorRights>
source§fn set_my_default_administrator_rights(
&self
) -> <Bot as Requester>::SetMyDefaultAdministratorRights ⓘ
fn set_my_default_administrator_rights(
&self
) -> <Bot as Requester>::SetMyDefaultAdministratorRights ⓘ
SetMyDefaultAdministratorRights
.type GetMyDefaultAdministratorRights = JsonRequest<GetMyDefaultAdministratorRights>
source§fn get_my_default_administrator_rights(
&self
) -> <Bot as Requester>::GetMyDefaultAdministratorRights ⓘ
fn get_my_default_administrator_rights(
&self
) -> <Bot as Requester>::GetMyDefaultAdministratorRights ⓘ
GetMyDefaultAdministratorRights
.type DeleteMyCommands = JsonRequest<DeleteMyCommands>
source§fn delete_my_commands(&self) -> <Bot as Requester>::DeleteMyCommands ⓘ
fn delete_my_commands(&self) -> <Bot as Requester>::DeleteMyCommands ⓘ
DeleteMyCommands
.type AnswerInlineQuery = JsonRequest<AnswerInlineQuery>
source§fn answer_inline_query<I, R>(
&self,
inline_query_id: I,
results: R
) -> <Bot as Requester>::AnswerInlineQuery ⓘwhere
I: Into<String>,
R: IntoIterator<Item = InlineQueryResult>,
fn answer_inline_query<I, R>(
&self,
inline_query_id: I,
results: R
) -> <Bot as Requester>::AnswerInlineQuery ⓘwhere
I: Into<String>,
R: IntoIterator<Item = InlineQueryResult>,
AnswerInlineQuery
.type AnswerWebAppQuery = JsonRequest<AnswerWebAppQuery>
source§fn answer_web_app_query<W>(
&self,
web_app_query_id: W,
result: InlineQueryResult
) -> <Bot as Requester>::AnswerWebAppQuery ⓘwhere
W: Into<String>,
fn answer_web_app_query<W>(
&self,
web_app_query_id: W,
result: InlineQueryResult
) -> <Bot as Requester>::AnswerWebAppQuery ⓘwhere
W: Into<String>,
AnswerWebAppQuery
.type EditMessageText = JsonRequest<EditMessageText>
source§fn edit_message_text<C, T>(
&self,
chat_id: C,
message_id: MessageId,
text: T
) -> <Bot 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
) -> <Bot as Requester>::EditMessageText ⓘwhere
C: Into<Recipient>,
T: Into<String>,
EditMessageText
.type EditMessageTextInline = JsonRequest<EditMessageTextInline>
source§fn edit_message_text_inline<I, T>(
&self,
inline_message_id: I,
text: T
) -> <Bot as Requester>::EditMessageTextInline ⓘwhere
I: Into<String>,
T: Into<String>,
fn edit_message_text_inline<I, T>(
&self,
inline_message_id: I,
text: T
) -> <Bot as Requester>::EditMessageTextInline ⓘwhere
I: Into<String>,
T: Into<String>,
EditMessageTextInline
.type EditMessageCaption = JsonRequest<EditMessageCaption>
EditMessageCaption
.type EditMessageCaptionInline = JsonRequest<EditMessageCaptionInline>
EditMessageCaptionInline
.type EditMessageMedia = MultipartRequest<EditMessageMedia>
source§fn edit_message_media<C>(
&self,
chat_id: C,
message_id: MessageId,
media: InputMedia
) -> <Bot as Requester>::EditMessageMedia ⓘwhere
C: Into<Recipient>,
fn edit_message_media<C>(
&self,
chat_id: C,
message_id: MessageId,
media: InputMedia
) -> <Bot as Requester>::EditMessageMedia ⓘwhere
C: Into<Recipient>,
EditMessageMedia
.type EditMessageMediaInline = MultipartRequest<EditMessageMediaInline>
source§fn edit_message_media_inline<I>(
&self,
inline_message_id: I,
media: InputMedia
) -> <Bot as Requester>::EditMessageMediaInline ⓘwhere
I: Into<String>,
fn edit_message_media_inline<I>(
&self,
inline_message_id: I,
media: InputMedia
) -> <Bot as Requester>::EditMessageMediaInline ⓘwhere
I: Into<String>,
EditMessageMediaInline
.type EditMessageReplyMarkup = JsonRequest<EditMessageReplyMarkup>
source§fn edit_message_reply_markup<C>(
&self,
chat_id: C,
message_id: MessageId
) -> <Bot as Requester>::EditMessageReplyMarkup ⓘwhere
C: Into<Recipient>,
fn edit_message_reply_markup<C>(
&self,
chat_id: C,
message_id: MessageId
) -> <Bot as Requester>::EditMessageReplyMarkup ⓘwhere
C: Into<Recipient>,
EditMessageReplyMarkup
.type EditMessageReplyMarkupInline = JsonRequest<EditMessageReplyMarkupInline>
source§fn edit_message_reply_markup_inline<I>(
&self,
inline_message_id: I
) -> <Bot as Requester>::EditMessageReplyMarkupInline ⓘwhere
I: Into<String>,
fn edit_message_reply_markup_inline<I>(
&self,
inline_message_id: I
) -> <Bot as Requester>::EditMessageReplyMarkupInline ⓘwhere
I: Into<String>,
EditMessageReplyMarkupInline
.type StopPoll = JsonRequest<StopPoll>
source§fn stop_poll<C>(
&self,
chat_id: C,
message_id: MessageId
) -> <Bot as Requester>::StopPoll ⓘwhere
C: Into<Recipient>,
fn stop_poll<C>(
&self,
chat_id: C,
message_id: MessageId
) -> <Bot as Requester>::StopPoll ⓘwhere
C: Into<Recipient>,
StopPoll
.type DeleteMessage = JsonRequest<DeleteMessage>
source§fn delete_message<C>(
&self,
chat_id: C,
message_id: MessageId
) -> <Bot as Requester>::DeleteMessage ⓘwhere
C: Into<Recipient>,
fn delete_message<C>(
&self,
chat_id: C,
message_id: MessageId
) -> <Bot as Requester>::DeleteMessage ⓘwhere
C: Into<Recipient>,
DeleteMessage
.type SendSticker = MultipartRequest<SendSticker>
source§fn send_sticker<C>(
&self,
chat_id: C,
sticker: InputFile
) -> <Bot as Requester>::SendSticker ⓘwhere
C: Into<Recipient>,
fn send_sticker<C>(
&self,
chat_id: C,
sticker: InputFile
) -> <Bot as Requester>::SendSticker ⓘwhere
C: Into<Recipient>,
SendSticker
.type GetStickerSet = JsonRequest<GetStickerSet>
source§fn get_sticker_set<N>(&self, name: N) -> <Bot as Requester>::GetStickerSet ⓘwhere
N: Into<String>,
fn get_sticker_set<N>(&self, name: N) -> <Bot as Requester>::GetStickerSet ⓘwhere
N: Into<String>,
GetStickerSet
.type GetCustomEmojiStickers = JsonRequest<GetCustomEmojiStickers>
source§fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C
) -> <Bot as Requester>::GetCustomEmojiStickers ⓘwhere
C: IntoIterator<Item = String>,
fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C
) -> <Bot as Requester>::GetCustomEmojiStickers ⓘwhere
C: IntoIterator<Item = String>,
GetCustomEmojiStickers
.type UploadStickerFile = MultipartRequest<UploadStickerFile>
source§fn upload_sticker_file(
&self,
user_id: UserId,
png_sticker: InputFile
) -> <Bot as Requester>::UploadStickerFile ⓘ
fn upload_sticker_file(
&self,
user_id: UserId,
png_sticker: InputFile
) -> <Bot as Requester>::UploadStickerFile ⓘ
UploadStickerFile
.type CreateNewStickerSet = MultipartRequest<CreateNewStickerSet>
source§fn create_new_sticker_set<N, T, E>(
&self,
user_id: UserId,
name: N,
title: T,
sticker: InputSticker,
emojis: E
) -> <Bot 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
) -> <Bot as Requester>::CreateNewStickerSet ⓘwhere
N: Into<String>,
T: Into<String>,
E: Into<String>,
CreateNewStickerSet
.type AddStickerToSet = MultipartRequest<AddStickerToSet>
source§fn add_sticker_to_set<N, E>(
&self,
user_id: UserId,
name: N,
sticker: InputSticker,
emojis: E
) -> <Bot 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
) -> <Bot as Requester>::AddStickerToSet ⓘwhere
N: Into<String>,
E: Into<String>,
AddStickerToSet
.type SetStickerPositionInSet = JsonRequest<SetStickerPositionInSet>
source§fn set_sticker_position_in_set<S>(
&self,
sticker: S,
position: u32
) -> <Bot as Requester>::SetStickerPositionInSet ⓘwhere
S: Into<String>,
fn set_sticker_position_in_set<S>(
&self,
sticker: S,
position: u32
) -> <Bot as Requester>::SetStickerPositionInSet ⓘwhere
S: Into<String>,
SetStickerPositionInSet
.type DeleteStickerFromSet = JsonRequest<DeleteStickerFromSet>
source§fn delete_sticker_from_set<S>(
&self,
sticker: S
) -> <Bot as Requester>::DeleteStickerFromSet ⓘwhere
S: Into<String>,
fn delete_sticker_from_set<S>(
&self,
sticker: S
) -> <Bot as Requester>::DeleteStickerFromSet ⓘwhere
S: Into<String>,
DeleteStickerFromSet
.type SetStickerSetThumb = MultipartRequest<SetStickerSetThumb>
source§fn set_sticker_set_thumb<N>(
&self,
name: N,
user_id: UserId
) -> <Bot as Requester>::SetStickerSetThumb ⓘwhere
N: Into<String>,
fn set_sticker_set_thumb<N>(
&self,
name: N,
user_id: UserId
) -> <Bot as Requester>::SetStickerSetThumb ⓘwhere
N: Into<String>,
SetStickerSetThumb
.type SendInvoice = JsonRequest<SendInvoice>
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
) -> <Bot 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
) -> <Bot 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>,
SendInvoice
.type CreateInvoiceLink = JsonRequest<CreateInvoiceLink>
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
) -> <Bot 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
) -> <Bot as Requester>::CreateInvoiceLink ⓘwhere
T: Into<String>,
D: Into<String>,
Pa: Into<String>,
P: Into<String>,
C: Into<String>,
Pri: IntoIterator<Item = LabeledPrice>,
CreateInvoiceLink
.type AnswerShippingQuery = JsonRequest<AnswerShippingQuery>
source§fn answer_shipping_query<S>(
&self,
shipping_query_id: S,
ok: bool
) -> <Bot as Requester>::AnswerShippingQuery ⓘwhere
S: Into<String>,
fn answer_shipping_query<S>(
&self,
shipping_query_id: S,
ok: bool
) -> <Bot as Requester>::AnswerShippingQuery ⓘwhere
S: Into<String>,
AnswerShippingQuery
.type AnswerPreCheckoutQuery = JsonRequest<AnswerPreCheckoutQuery>
source§fn answer_pre_checkout_query<P>(
&self,
pre_checkout_query_id: P,
ok: bool
) -> <Bot as Requester>::AnswerPreCheckoutQuery ⓘwhere
P: Into<String>,
fn answer_pre_checkout_query<P>(
&self,
pre_checkout_query_id: P,
ok: bool
) -> <Bot as Requester>::AnswerPreCheckoutQuery ⓘwhere
P: Into<String>,
AnswerPreCheckoutQuery
.type SetPassportDataErrors = JsonRequest<SetPassportDataErrors>
source§fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E
) -> <Bot as Requester>::SetPassportDataErrors ⓘwhere
E: IntoIterator<Item = PassportElementError>,
fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E
) -> <Bot as Requester>::SetPassportDataErrors ⓘwhere
E: IntoIterator<Item = PassportElementError>,
SetPassportDataErrors
.type SendGame = JsonRequest<SendGame>
source§fn send_game<G>(
&self,
chat_id: u32,
game_short_name: G
) -> <Bot as Requester>::SendGame ⓘwhere
G: Into<String>,
fn send_game<G>(
&self,
chat_id: u32,
game_short_name: G
) -> <Bot as Requester>::SendGame ⓘwhere
G: Into<String>,
SendGame
.type SetGameScore = JsonRequest<SetGameScore>
source§fn set_game_score(
&self,
user_id: UserId,
score: u64,
chat_id: u32,
message_id: MessageId
) -> <Bot as Requester>::SetGameScore ⓘ
fn set_game_score(
&self,
user_id: UserId,
score: u64,
chat_id: u32,
message_id: MessageId
) -> <Bot as Requester>::SetGameScore ⓘ
SetGameScore
.type SetGameScoreInline = JsonRequest<SetGameScoreInline>
source§fn set_game_score_inline<I>(
&self,
user_id: UserId,
score: u64,
inline_message_id: I
) -> <Bot as Requester>::SetGameScoreInline ⓘwhere
I: Into<String>,
fn set_game_score_inline<I>(
&self,
user_id: UserId,
score: u64,
inline_message_id: I
) -> <Bot as Requester>::SetGameScoreInline ⓘwhere
I: Into<String>,
SetGameScoreInline
.type GetGameHighScores = JsonRequest<GetGameHighScores>
source§fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T
) -> <Bot as Requester>::GetGameHighScores ⓘwhere
T: Into<TargetMessage>,
fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T
) -> <Bot as Requester>::GetGameHighScores ⓘwhere
T: Into<TargetMessage>,
GetGameHighScores
.type LogOut = JsonRequest<LogOut>
type Close = JsonRequest<Close>
type CopyMessage = JsonRequest<CopyMessage>
source§fn copy_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId
) -> <Bot 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
) -> <Bot as Requester>::CopyMessage ⓘwhere
C: Into<Recipient>,
F: Into<Recipient>,
CopyMessage
.type UnpinAllChatMessages = JsonRequest<UnpinAllChatMessages>
source§fn unpin_all_chat_messages<C>(
&self,
chat_id: C
) -> <Bot as Requester>::UnpinAllChatMessages ⓘwhere
C: Into<Recipient>,
fn unpin_all_chat_messages<C>(
&self,
chat_id: C
) -> <Bot as Requester>::UnpinAllChatMessages ⓘwhere
C: Into<Recipient>,
UnpinAllChatMessages
.Auto Trait Implementations§
impl !RefUnwindSafe for Bot
impl Send for Bot
impl Sync for Bot
impl Unpin for Bot
impl !UnwindSafe for Bot
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,
cache_me
only.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,
AutoSend
is no longer required to .await
requests and is now noopauto_send
only.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,
erased
only.source§fn trace(self, settings: Settings) -> Trace<Self> ⓘwhere
Self: Sized,
fn trace(self, settings: Settings) -> Trace<Self> ⓘwhere
Self: Sized,
trace_adaptor
only.Trace
for more.source§fn throttle(self, limits: Limits) -> Throttle<Self> ⓘ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,
throttle
only.