Struct telexide::api::APIClient [−][src]
pub struct APIClient { /* fields omitted */ }
A default implementation of the API
trait.
It requires your bot token in order to interact with the telegram API and
also allows you to configure your own hyper::Client
for it to use.
Using the default APIClient
is as easy as:
use telexide::api::{APIClient, API, types::SendMessage}; let message = SendMessage::new(chat_id, "hi!"); let client = APIClient::new_default(token); client.send_message(message).await;
In most cases you would want to get updates though and the Client
is
best suited for that, as it allows for easier handling of those updates
Implementations
impl APIClient
[src]
impl APIClient
[src]pub fn new<T: ToString>(
hyper_client: Option<Client<HttpsConnector<HttpConnector>>>,
token: T
) -> Self
[src]
hyper_client: Option<Client<HttpsConnector<HttpConnector>>>,
token: T
) -> Self
Creates a new APIClient
with the provided token and hyper client (if
it is Some).
pub fn new_default<T: ToString>(token: T) -> Self
[src]
Creates a new APIClient
with the provided token and the default hyper
client.
pub async fn request<D: ?Sized>(
&self,
endpoint: APIEndpoint,
data: Option<&D>
) -> Result<Response> where
D: Serialize,
[src]
&self,
endpoint: APIEndpoint,
data: Option<&D>
) -> Result<Response> where
D: Serialize,
Sends a request to the provided APIEndpoint
with the data provided
(does not support files)
pub fn get_hyper(&self) -> &Client<HttpsConnector<HttpConnector>>
[src]
gets a reference to the underlying hyper client, for example so you can make custom api requests
Trait Implementations
impl API for APIClient
[src]
impl API for APIClient
[src]fn get<'life0, 'async_trait>(
&'life0 self,
endpoint: APIEndpoint,
data: Option<Value>
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
endpoint: APIEndpoint,
data: Option<Value>
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn post<'life0, 'async_trait>(
&'life0 self,
endpoint: APIEndpoint,
data: Option<Value>
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
endpoint: APIEndpoint,
data: Option<Value>
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn post_file<'life0, 'async_trait>(
&'life0 self,
endpoint: APIEndpoint,
data: Option<Value>,
files: Option<Vec<FormDataFile>>
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
endpoint: APIEndpoint,
data: Option<Value>,
files: Option<Vec<FormDataFile>>
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_me<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<User>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn get_me<'life0, 'async_trait>(&'life0 self
) -> Pin<Box<dyn Future<Output = Result<User>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn log_out<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn log_out<'life0, 'async_trait>(&'life0 self
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn close<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn close<'life0, 'async_trait>(&'life0 self
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_updates<'life0, 'async_trait>(
&'life0 self,
data: GetUpdates
) -> Pin<Box<dyn Future<Output = Result<Vec<Update>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn get_updates<'life0, 'async_trait>(&'life0 self,
data: GetUpdates
) -> Pin<Box<dyn Future<Output = Result<Vec<Update>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn set_webhook<'life0, 'async_trait>(
&'life0 self,
data: SetWebhook
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn set_webhook<'life0, 'async_trait>(&'life0 self,
data: SetWebhook
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn delete_webhook<'life0, 'async_trait>(
&'life0 self,
data: DeleteWebhook
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn delete_webhook<'life0, 'async_trait>(&'life0 self,
data: DeleteWebhook
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_webhook_info<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<WebhookInfo>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn get_webhook_info<'life0, 'async_trait>(&'life0 self
) -> Pin<Box<dyn Future<Output = Result<WebhookInfo>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_message<'life0, 'async_trait>(
&'life0 self,
data: SendMessage
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_message<'life0, 'async_trait>(&'life0 self,
data: SendMessage
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn set_my_commands<'life0, 'async_trait>(
&'life0 self,
data: SetMyCommands
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn set_my_commands<'life0, 'async_trait>(&'life0 self,
data: SetMyCommands
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_my_commands<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<BotCommand>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn get_my_commands<'life0, 'async_trait>(&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<BotCommand>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn forward_message<'life0, 'async_trait>(
&'life0 self,
data: ForwardMessage
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn forward_message<'life0, 'async_trait>(&'life0 self,
data: ForwardMessage
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn copy_message<'life0, 'async_trait>(
&'life0 self,
data: CopyMessage
) -> Pin<Box<dyn Future<Output = Result<MessageId>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn copy_message<'life0, 'async_trait>(&'life0 self,
data: CopyMessage
) -> Pin<Box<dyn Future<Output = Result<MessageId>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_photo<'life0, 'async_trait>(
&'life0 self,
data: SendPhoto
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_photo<'life0, 'async_trait>(&'life0 self,
data: SendPhoto
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_audio<'life0, 'async_trait>(
&'life0 self,
data: SendAudio
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_audio<'life0, 'async_trait>(&'life0 self,
data: SendAudio
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_document<'life0, 'async_trait>(
&'life0 self,
data: SendDocument
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_document<'life0, 'async_trait>(&'life0 self,
data: SendDocument
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_video<'life0, 'async_trait>(
&'life0 self,
data: SendVideo
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_video<'life0, 'async_trait>(&'life0 self,
data: SendVideo
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_animation<'life0, 'async_trait>(
&'life0 self,
data: SendAnimation
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_animation<'life0, 'async_trait>(&'life0 self,
data: SendAnimation
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_voice<'life0, 'async_trait>(
&'life0 self,
data: SendVoice
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_voice<'life0, 'async_trait>(&'life0 self,
data: SendVoice
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_video_note<'life0, 'async_trait>(
&'life0 self,
data: SendVideoNote
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_video_note<'life0, 'async_trait>(&'life0 self,
data: SendVideoNote
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_media_group<'life0, 'async_trait>(
&'life0 self,
data: SendMediaGroup
) -> Pin<Box<dyn Future<Output = Result<Vec<Message>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_media_group<'life0, 'async_trait>(&'life0 self,
data: SendMediaGroup
) -> Pin<Box<dyn Future<Output = Result<Vec<Message>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_location<'life0, 'async_trait>(
&'life0 self,
data: SendLocation
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_location<'life0, 'async_trait>(&'life0 self,
data: SendLocation
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_venue<'life0, 'async_trait>(
&'life0 self,
data: SendVenue
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_venue<'life0, 'async_trait>(&'life0 self,
data: SendVenue
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_contact<'life0, 'async_trait>(
&'life0 self,
data: SendContact
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_contact<'life0, 'async_trait>(&'life0 self,
data: SendContact
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_poll<'life0, 'async_trait>(
&'life0 self,
data: SendPoll
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_poll<'life0, 'async_trait>(&'life0 self,
data: SendPoll
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_dice<'life0, 'async_trait>(
&'life0 self,
data: SendDice
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_dice<'life0, 'async_trait>(&'life0 self,
data: SendDice
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_chat_action<'life0, 'async_trait>(
&'life0 self,
data: SendChatAction
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_chat_action<'life0, 'async_trait>(&'life0 self,
data: SendChatAction
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn edit_message_text<'life0, 'async_trait>(
&'life0 self,
data: EditMessageText
) -> Pin<Box<dyn Future<Output = Result<TrueOrObject<Message>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn edit_message_text<'life0, 'async_trait>(&'life0 self,
data: EditMessageText
) -> Pin<Box<dyn Future<Output = Result<TrueOrObject<Message>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn edit_message_caption<'life0, 'async_trait>(
&'life0 self,
data: EditMessageCaption
) -> Pin<Box<dyn Future<Output = Result<TrueOrObject<Message>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn edit_message_caption<'life0, 'async_trait>(&'life0 self,
data: EditMessageCaption
) -> Pin<Box<dyn Future<Output = Result<TrueOrObject<Message>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn edit_message_media<'life0, 'async_trait>(
&'life0 self,
data: EditMessageMedia
) -> Pin<Box<dyn Future<Output = Result<TrueOrObject<Message>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn edit_message_media<'life0, 'async_trait>(&'life0 self,
data: EditMessageMedia
) -> Pin<Box<dyn Future<Output = Result<TrueOrObject<Message>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn edit_message_reply_markup<'life0, 'async_trait>(
&'life0 self,
data: EditMessageReplyMarkup
) -> Pin<Box<dyn Future<Output = Result<TrueOrObject<Message>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn edit_message_reply_markup<'life0, 'async_trait>(&'life0 self,
data: EditMessageReplyMarkup
) -> Pin<Box<dyn Future<Output = Result<TrueOrObject<Message>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn stop_poll<'life0, 'async_trait>(
&'life0 self,
data: StopPoll
) -> Pin<Box<dyn Future<Output = Result<Poll>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn stop_poll<'life0, 'async_trait>(&'life0 self,
data: StopPoll
) -> Pin<Box<dyn Future<Output = Result<Poll>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn delete_message<'life0, 'async_trait>(
&'life0 self,
data: DeleteMessage
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn delete_message<'life0, 'async_trait>(&'life0 self,
data: DeleteMessage
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn edit_message_live_location<'life0, 'async_trait>(
&'life0 self,
data: EditMessageLiveLocation
) -> Pin<Box<dyn Future<Output = Result<TrueOrObject<Message>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn edit_message_live_location<'life0, 'async_trait>(&'life0 self,
data: EditMessageLiveLocation
) -> Pin<Box<dyn Future<Output = Result<TrueOrObject<Message>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn stop_message_live_location<'life0, 'async_trait>(
&'life0 self,
data: StopMessageLiveLocation
) -> Pin<Box<dyn Future<Output = Result<TrueOrObject<Message>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn stop_message_live_location<'life0, 'async_trait>(&'life0 self,
data: StopMessageLiveLocation
) -> Pin<Box<dyn Future<Output = Result<TrueOrObject<Message>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_user_profile_photos<'life0, 'async_trait>(
&'life0 self,
data: GetUserProfilePhotos
) -> Pin<Box<dyn Future<Output = Result<UserProfilePhotos>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn get_user_profile_photos<'life0, 'async_trait>(&'life0 self,
data: GetUserProfilePhotos
) -> Pin<Box<dyn Future<Output = Result<UserProfilePhotos>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_file<'life0, 'async_trait>(
&'life0 self,
data: GetFile
) -> Pin<Box<dyn Future<Output = Result<File>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn get_file<'life0, 'async_trait>(&'life0 self,
data: GetFile
) -> Pin<Box<dyn Future<Output = Result<File>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn unban_chat_member<'life0, 'async_trait>(
&'life0 self,
data: UnbanChatMember
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn unban_chat_member<'life0, 'async_trait>(&'life0 self,
data: UnbanChatMember
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn kick_chat_member<'life0, 'async_trait>(
&'life0 self,
data: KickChatMember
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn kick_chat_member<'life0, 'async_trait>(&'life0 self,
data: KickChatMember
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn restrict_chat_member<'life0, 'async_trait>(
&'life0 self,
data: RestrictChatMember
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn restrict_chat_member<'life0, 'async_trait>(&'life0 self,
data: RestrictChatMember
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn promote_chat_member<'life0, 'async_trait>(
&'life0 self,
data: PromoteChatMember
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn promote_chat_member<'life0, 'async_trait>(&'life0 self,
data: PromoteChatMember
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn set_chat_administrator_custom_title<'life0, 'async_trait>(
&'life0 self,
data: SetChatAdministratorCustomTitle
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn set_chat_administrator_custom_title<'life0, 'async_trait>(&'life0 self,
data: SetChatAdministratorCustomTitle
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn set_chat_permissions<'life0, 'async_trait>(
&'life0 self,
data: SetChatPermissions
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn set_chat_permissions<'life0, 'async_trait>(&'life0 self,
data: SetChatPermissions
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn export_chat_invite_link<'life0, 'async_trait>(
&'life0 self,
data: ExportChatInviteLink
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn export_chat_invite_link<'life0, 'async_trait>(&'life0 self,
data: ExportChatInviteLink
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn create_chat_invite_link<'life0, 'async_trait>(
&'life0 self,
data: CreateChatInviteLink
) -> Pin<Box<dyn Future<Output = Result<ChatInviteLink>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn create_chat_invite_link<'life0, 'async_trait>(&'life0 self,
data: CreateChatInviteLink
) -> Pin<Box<dyn Future<Output = Result<ChatInviteLink>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn edit_chat_invite_link<'life0, 'async_trait>(
&'life0 self,
data: EditChatInviteLink
) -> Pin<Box<dyn Future<Output = Result<ChatInviteLink>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn edit_chat_invite_link<'life0, 'async_trait>(&'life0 self,
data: EditChatInviteLink
) -> Pin<Box<dyn Future<Output = Result<ChatInviteLink>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn revoke_chat_invite_link<'life0, 'async_trait>(
&'life0 self,
data: RevokeChatInviteLink
) -> Pin<Box<dyn Future<Output = Result<ChatInviteLink>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn revoke_chat_invite_link<'life0, 'async_trait>(&'life0 self,
data: RevokeChatInviteLink
) -> Pin<Box<dyn Future<Output = Result<ChatInviteLink>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn set_chat_photo<'life0, 'async_trait>(
&'life0 self,
data: SetChatPhoto
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn set_chat_photo<'life0, 'async_trait>(&'life0 self,
data: SetChatPhoto
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn delete_chat_photo<'life0, 'async_trait>(
&'life0 self,
data: DeleteChatPhoto
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn delete_chat_photo<'life0, 'async_trait>(&'life0 self,
data: DeleteChatPhoto
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn set_chat_title<'life0, 'async_trait>(
&'life0 self,
data: SetChatTitle
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn set_chat_title<'life0, 'async_trait>(&'life0 self,
data: SetChatTitle
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn set_chat_description<'life0, 'async_trait>(
&'life0 self,
data: SetChatDescription
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn set_chat_description<'life0, 'async_trait>(&'life0 self,
data: SetChatDescription
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn pin_chat_message<'life0, 'async_trait>(
&'life0 self,
data: PinChatMessage
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn pin_chat_message<'life0, 'async_trait>(&'life0 self,
data: PinChatMessage
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn unpin_chat_message<'life0, 'async_trait>(
&'life0 self,
data: UnpinChatMessage
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn unpin_chat_message<'life0, 'async_trait>(&'life0 self,
data: UnpinChatMessage
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn unpin_all_chat_messages<'life0, 'async_trait>(
&'life0 self,
data: UnpinAllChatMessages
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn unpin_all_chat_messages<'life0, 'async_trait>(&'life0 self,
data: UnpinAllChatMessages
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn leave_chat<'life0, 'async_trait>(
&'life0 self,
data: LeaveChat
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn leave_chat<'life0, 'async_trait>(&'life0 self,
data: LeaveChat
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_chat<'life0, 'async_trait>(
&'life0 self,
data: GetChat
) -> Pin<Box<dyn Future<Output = Result<Chat>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn get_chat<'life0, 'async_trait>(&'life0 self,
data: GetChat
) -> Pin<Box<dyn Future<Output = Result<Chat>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_chat_administrators<'life0, 'async_trait>(
&'life0 self,
data: GetChatAdministrators
) -> Pin<Box<dyn Future<Output = Result<Vec<ChatMember>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn get_chat_administrators<'life0, 'async_trait>(&'life0 self,
data: GetChatAdministrators
) -> Pin<Box<dyn Future<Output = Result<Vec<ChatMember>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_members_count<'life0, 'async_trait>(
&'life0 self,
data: GetChatMembersCount
) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn get_members_count<'life0, 'async_trait>(&'life0 self,
data: GetChatMembersCount
) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_chat_member<'life0, 'async_trait>(
&'life0 self,
data: GetChatMember
) -> Pin<Box<dyn Future<Output = Result<ChatMember>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn get_chat_member<'life0, 'async_trait>(&'life0 self,
data: GetChatMember
) -> Pin<Box<dyn Future<Output = Result<ChatMember>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn set_chat_sticker_set<'life0, 'async_trait>(
&'life0 self,
data: SetChatStickerSet
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn set_chat_sticker_set<'life0, 'async_trait>(&'life0 self,
data: SetChatStickerSet
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn delete_chat_sticker_set<'life0, 'async_trait>(
&'life0 self,
data: DeleteChatStickerSet
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn delete_chat_sticker_set<'life0, 'async_trait>(&'life0 self,
data: DeleteChatStickerSet
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn answer_callback_query<'life0, 'async_trait>(
&'life0 self,
data: AnswerCallbackQuery
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn answer_callback_query<'life0, 'async_trait>(&'life0 self,
data: AnswerCallbackQuery
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_sticker<'life0, 'async_trait>(
&'life0 self,
data: SendSticker
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_sticker<'life0, 'async_trait>(&'life0 self,
data: SendSticker
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_sticker_set<'life0, 'async_trait>(
&'life0 self,
data: GetStickerSet
) -> Pin<Box<dyn Future<Output = Result<StickerSet>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn get_sticker_set<'life0, 'async_trait>(&'life0 self,
data: GetStickerSet
) -> Pin<Box<dyn Future<Output = Result<StickerSet>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn upload_sticker_file<'life0, 'async_trait>(
&'life0 self,
data: UploadStickerFile
) -> Pin<Box<dyn Future<Output = Result<File>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn upload_sticker_file<'life0, 'async_trait>(&'life0 self,
data: UploadStickerFile
) -> Pin<Box<dyn Future<Output = Result<File>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn create_new_sticker_set<'life0, 'async_trait>(
&'life0 self,
data: CreateNewStickerSet
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn create_new_sticker_set<'life0, 'async_trait>(&'life0 self,
data: CreateNewStickerSet
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn add_sticker_to_set<'life0, 'async_trait>(
&'life0 self,
data: AddStickerToSet
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn add_sticker_to_set<'life0, 'async_trait>(&'life0 self,
data: AddStickerToSet
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn set_sticker_position_in_set<'life0, 'async_trait>(
&'life0 self,
data: SetStickerPositionInSet
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn set_sticker_position_in_set<'life0, 'async_trait>(&'life0 self,
data: SetStickerPositionInSet
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn delete_sticker_from_set<'life0, 'async_trait>(
&'life0 self,
data: DeleteStickerFromSet
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn delete_sticker_from_set<'life0, 'async_trait>(&'life0 self,
data: DeleteStickerFromSet
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn set_sticker_set_thumb<'life0, 'async_trait>(
&'life0 self,
data: SetStickerSetThumb
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn set_sticker_set_thumb<'life0, 'async_trait>(&'life0 self,
data: SetStickerSetThumb
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn answer_inline_query<'life0, 'async_trait>(
&'life0 self,
data: AnswerInlineQuery
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn answer_inline_query<'life0, 'async_trait>(&'life0 self,
data: AnswerInlineQuery
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_invoice<'life0, 'async_trait>(
&'life0 self,
data: SendInvoice
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_invoice<'life0, 'async_trait>(&'life0 self,
data: SendInvoice
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn answer_shipping_query<'life0, 'async_trait>(
&'life0 self,
data: AnswerShippingQuery
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn answer_shipping_query<'life0, 'async_trait>(&'life0 self,
data: AnswerShippingQuery
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn answer_pre_checkout_query<'life0, 'async_trait>(
&'life0 self,
data: AnswerPreCheckoutQuery
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn answer_pre_checkout_query<'life0, 'async_trait>(&'life0 self,
data: AnswerPreCheckoutQuery
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn send_game<'life0, 'async_trait>(
&'life0 self,
data: SendGame
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn send_game<'life0, 'async_trait>(&'life0 self,
data: SendGame
) -> Pin<Box<dyn Future<Output = Result<Message>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn set_game_score<'life0, 'async_trait>(
&'life0 self,
data: SetGameScore
) -> Pin<Box<dyn Future<Output = Result<TrueOrObject<Message>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn set_game_score<'life0, 'async_trait>(&'life0 self,
data: SetGameScore
) -> Pin<Box<dyn Future<Output = Result<TrueOrObject<Message>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_game_high_scores<'life0, 'async_trait>(
&'life0 self,
data: GetGameHighScores
) -> Pin<Box<dyn Future<Output = Result<Vec<GameHighScore>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn get_game_high_scores<'life0, 'async_trait>(&'life0 self,
data: GetGameHighScores
) -> Pin<Box<dyn Future<Output = Result<Vec<GameHighScore>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn set_passport_data_errors<'life0, 'async_trait>(
&'life0 self,
data: SetPassportDataErrors
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn set_passport_data_errors<'life0, 'async_trait>(&'life0 self,
data: SetPassportDataErrors
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for APIClient
impl !RefUnwindSafe for APIClient
impl !UnwindSafe for APIClient
impl !UnwindSafe for APIClient
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,