Struct teloxide::adaptors::AutoSend

source ·
pub struct AutoSend<B> { /* private fields */ }
👎Deprecated since 0.8.0: AutoSend is no longer required to .await requests and is now noop
Expand description

Previously was used to send requests automatically.

Before addition of IntoFuture you could only .await Futures. This adaptor turned requests into futures, allowing to .await them, without calling .send().

Now, however, all requests are required to implement IntoFuture, allowing you to .await them directly. This adaptor is noop, and shouldn’t be used.

Implementations§

source§

impl<B> AutoSend<B>

source

pub fn new(inner: B) -> AutoSend<B>

👎Deprecated since 0.8.0: AutoSend is no longer required to .await requests and is now noop
Available on crate feature auto-send only.

Creates new AutoSend.

Note: it’s recommended to use RequesterExt::auto_send instead.

source

pub fn inner(&self) -> &B

👎Deprecated since 0.8.0: AutoSend is no longer required to .await requests and is now noop
Available on crate feature auto-send only.

Allows to access the inner bot.

source

pub fn into_inner(self) -> B

👎Deprecated since 0.8.0: AutoSend is no longer required to .await requests and is now noop
Available on crate feature auto-send only.

Unwraps the inner bot.

Trait Implementations§

source§

impl<B> Clone for AutoSend<B>where B: Clone,

source§

fn clone(&self) -> AutoSend<B>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<B> Debug for AutoSend<B>where B: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'w, B> Download<'w> for AutoSend<B>where B: Download<'w>,

§

type Err = <B as Download<'w>>::Err

An error returned from download_file.
§

type Fut = <B as Download<'w>>::Fut

A future returned from download_file.
source§

fn download_file( &self, path: &str, destination: &'w mut (dyn AsyncWrite + Unpin + Send + 'w) ) -> <AutoSend<B> as Download<'w>>::Fut

Download a file from Telegram into destination. Read more
§

type StreamErr = <B as Download<'w>>::StreamErr

An error returned from download_file_stream.
§

type Stream = <B as Download<'w>>::Stream

A stream returned from download_file_stream.
source§

fn download_file_stream( &self, path: &str ) -> <AutoSend<B> as Download<'w>>::Stream

Download a file from Telegram as [Stream]. Read more
source§

impl<B> Requester for AutoSend<B>where B: Requester,

§

type Err = <B as Requester>::Err

Error type returned by all requests.
§

type GetMe = AutoRequest<<B as Requester>::GetMe>

source§

fn get_me(&self) -> <AutoSend<B> as Requester>::GetMe

For Telegram documentation see GetMe.
§

type LogOut = AutoRequest<<B as Requester>::LogOut>

source§

fn log_out(&self) -> <AutoSend<B> as Requester>::LogOut

For Telegram documentation see LogOut.
§

type Close = AutoRequest<<B as Requester>::Close>

source§

fn close(&self) -> <AutoSend<B> as Requester>::Close

For Telegram documentation see Close.
§

type GetUpdates = AutoRequest<<B as Requester>::GetUpdates>

source§

fn get_updates(&self) -> <AutoSend<B> as Requester>::GetUpdates

For Telegram documentation see GetUpdates.
§

type SetWebhook = AutoRequest<<B as Requester>::SetWebhook>

source§

fn set_webhook(&self, url: Url) -> <AutoSend<B> as Requester>::SetWebhook

For Telegram documentation see SetWebhook.
§

type DeleteWebhook = AutoRequest<<B as Requester>::DeleteWebhook>

source§

fn delete_webhook(&self) -> <AutoSend<B> as Requester>::DeleteWebhook

For Telegram documentation see DeleteWebhook.
§

type GetWebhookInfo = AutoRequest<<B as Requester>::GetWebhookInfo>

source§

fn get_webhook_info(&self) -> <AutoSend<B> as Requester>::GetWebhookInfo

For Telegram documentation see GetWebhookInfo.
§

type ForwardMessage = AutoRequest<<B as Requester>::ForwardMessage>

source§

fn forward_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId ) -> <AutoSend<B> as Requester>::ForwardMessage where C: Into<Recipient>, F: Into<Recipient>,

For Telegram documentation see ForwardMessage.
§

type CopyMessage = AutoRequest<<B as Requester>::CopyMessage>

source§

fn copy_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId ) -> <AutoSend<B> as Requester>::CopyMessage where C: Into<Recipient>, F: Into<Recipient>,

For Telegram documentation see CopyMessage.
§

type SendMessage = AutoRequest<<B as Requester>::SendMessage>

source§

fn send_message<C, T>( &self, chat_id: C, text: T ) -> <AutoSend<B> as Requester>::SendMessage where C: Into<Recipient>, T: Into<String>,

For Telegram documentation see SendMessage.
§

type SendPhoto = AutoRequest<<B as Requester>::SendPhoto>

source§

fn send_photo<C>( &self, chat_id: C, photo: InputFile ) -> <AutoSend<B> as Requester>::SendPhoto where C: Into<Recipient>,

For Telegram documentation see SendPhoto.
§

type SendAudio = AutoRequest<<B as Requester>::SendAudio>

source§

fn send_audio<C>( &self, chat_id: C, audio: InputFile ) -> <AutoSend<B> as Requester>::SendAudio where C: Into<Recipient>,

For Telegram documentation see SendAudio.
§

type SendDocument = AutoRequest<<B as Requester>::SendDocument>

source§

fn send_document<C>( &self, chat_id: C, document: InputFile ) -> <AutoSend<B> as Requester>::SendDocument where C: Into<Recipient>,

For Telegram documentation see SendDocument.
§

type SendVideo = AutoRequest<<B as Requester>::SendVideo>

source§

fn send_video<C>( &self, chat_id: C, video: InputFile ) -> <AutoSend<B> as Requester>::SendVideo where C: Into<Recipient>,

For Telegram documentation see SendVideo.
§

type SendAnimation = AutoRequest<<B as Requester>::SendAnimation>

source§

fn send_animation<C>( &self, chat_id: C, animation: InputFile ) -> <AutoSend<B> as Requester>::SendAnimation where C: Into<Recipient>,

For Telegram documentation see SendAnimation.
§

type SendVoice = AutoRequest<<B as Requester>::SendVoice>

source§

fn send_voice<C>( &self, chat_id: C, voice: InputFile ) -> <AutoSend<B> as Requester>::SendVoice where C: Into<Recipient>,

For Telegram documentation see SendVoice.
§

type SendVideoNote = AutoRequest<<B as Requester>::SendVideoNote>

source§

fn send_video_note<C>( &self, chat_id: C, video_note: InputFile ) -> <AutoSend<B> as Requester>::SendVideoNote where C: Into<Recipient>,

For Telegram documentation see SendVideoNote.
§

type SendMediaGroup = AutoRequest<<B as Requester>::SendMediaGroup>

source§

fn send_media_group<C, M>( &self, chat_id: C, media: M ) -> <AutoSend<B> as Requester>::SendMediaGroup where C: Into<Recipient>, M: IntoIterator<Item = InputMedia>,

For Telegram documentation see SendMediaGroup.
§

type SendLocation = AutoRequest<<B as Requester>::SendLocation>

source§

fn send_location<C>( &self, chat_id: C, latitude: f64, longitude: f64 ) -> <AutoSend<B> as Requester>::SendLocation where C: Into<Recipient>,

For Telegram documentation see SendLocation.
§

type EditMessageLiveLocation = AutoRequest<<B as Requester>::EditMessageLiveLocation>

source§

fn edit_message_live_location<C>( &self, chat_id: C, message_id: MessageId, latitude: f64, longitude: f64 ) -> <AutoSend<B> as Requester>::EditMessageLiveLocation where C: Into<Recipient>,

For Telegram documentation see EditMessageLiveLocation.
§

type EditMessageLiveLocationInline = AutoRequest<<B as Requester>::EditMessageLiveLocationInline>

source§

fn edit_message_live_location_inline<I>( &self, inline_message_id: I, latitude: f64, longitude: f64 ) -> <AutoSend<B> as Requester>::EditMessageLiveLocationInline where I: Into<String>,

For Telegram documentation see EditMessageLiveLocationInline.
§

type StopMessageLiveLocation = AutoRequest<<B as Requester>::StopMessageLiveLocation>

source§

fn stop_message_live_location<C>( &self, chat_id: C, message_id: MessageId, latitude: f64, longitude: f64 ) -> <AutoSend<B> as Requester>::StopMessageLiveLocation where C: Into<Recipient>,

For Telegram documentation see StopMessageLiveLocation.
§

type StopMessageLiveLocationInline = AutoRequest<<B as Requester>::StopMessageLiveLocationInline>

source§

fn stop_message_live_location_inline<I>( &self, inline_message_id: I, latitude: f64, longitude: f64 ) -> <AutoSend<B> as Requester>::StopMessageLiveLocationInline where I: Into<String>,

For Telegram documentation see StopMessageLiveLocationInline.
§

type SendVenue = AutoRequest<<B as Requester>::SendVenue>

source§

fn send_venue<C, T, A>( &self, chat_id: C, latitude: f64, longitude: f64, title: T, address: A ) -> <AutoSend<B> as Requester>::SendVenue where C: Into<Recipient>, T: Into<String>, A: Into<String>,

For Telegram documentation see SendVenue.
§

type SendContact = AutoRequest<<B as Requester>::SendContact>

source§

fn send_contact<C, P, F>( &self, chat_id: C, phone_number: P, first_name: F ) -> <AutoSend<B> as Requester>::SendContact where C: Into<Recipient>, P: Into<String>, F: Into<String>,

For Telegram documentation see SendContact.
§

type SendPoll = AutoRequest<<B as Requester>::SendPoll>

source§

fn send_poll<C, Q, O>( &self, chat_id: C, question: Q, options: O ) -> <AutoSend<B> as Requester>::SendPoll where C: Into<Recipient>, Q: Into<String>, O: IntoIterator<Item = String>,

For Telegram documentation see SendPoll.
§

type SendDice = AutoRequest<<B as Requester>::SendDice>

source§

fn send_dice<C>(&self, chat_id: C) -> <AutoSend<B> as Requester>::SendDice where C: Into<Recipient>,

For Telegram documentation see SendDice.
§

type SendChatAction = AutoRequest<<B as Requester>::SendChatAction>

source§

fn send_chat_action<C>( &self, chat_id: C, action: ChatAction ) -> <AutoSend<B> as Requester>::SendChatAction where C: Into<Recipient>,

For Telegram documentation see SendChatAction.
§

type GetUserProfilePhotos = AutoRequest<<B as Requester>::GetUserProfilePhotos>

source§

fn get_user_profile_photos( &self, user_id: UserId ) -> <AutoSend<B> as Requester>::GetUserProfilePhotos

For Telegram documentation see GetUserProfilePhotos.
§

type GetFile = AutoRequest<<B as Requester>::GetFile>

source§

fn get_file<F>(&self, file_id: F) -> <AutoSend<B> as Requester>::GetFile where F: Into<String>,

For Telegram documentation see GetFile.
§

type KickChatMember = AutoRequest<<B as Requester>::KickChatMember>

source§

fn kick_chat_member<C>( &self, chat_id: C, user_id: UserId ) -> <AutoSend<B> as Requester>::KickChatMember where C: Into<Recipient>,

For Telegram documentation see KickChatMember.
§

type BanChatMember = AutoRequest<<B as Requester>::BanChatMember>

source§

fn ban_chat_member<C>( &self, chat_id: C, user_id: UserId ) -> <AutoSend<B> as Requester>::BanChatMember where C: Into<Recipient>,

For Telegram documentation see BanChatMember.
§

type UnbanChatMember = AutoRequest<<B as Requester>::UnbanChatMember>

source§

fn unban_chat_member<C>( &self, chat_id: C, user_id: UserId ) -> <AutoSend<B> as Requester>::UnbanChatMember where C: Into<Recipient>,

For Telegram documentation see UnbanChatMember.
§

type RestrictChatMember = AutoRequest<<B as Requester>::RestrictChatMember>

source§

fn restrict_chat_member<C>( &self, chat_id: C, user_id: UserId, permissions: ChatPermissions ) -> <AutoSend<B> as Requester>::RestrictChatMember where C: Into<Recipient>,

For Telegram documentation see RestrictChatMember.
§

type PromoteChatMember = AutoRequest<<B as Requester>::PromoteChatMember>

source§

fn promote_chat_member<C>( &self, chat_id: C, user_id: UserId ) -> <AutoSend<B> as Requester>::PromoteChatMember where C: Into<Recipient>,

For Telegram documentation see PromoteChatMember.
§

type SetChatAdministratorCustomTitle = AutoRequest<<B as Requester>::SetChatAdministratorCustomTitle>

source§

fn set_chat_administrator_custom_title<Ch, C>( &self, chat_id: Ch, user_id: UserId, custom_title: C ) -> <AutoSend<B> as Requester>::SetChatAdministratorCustomTitle where Ch: Into<Recipient>, C: Into<String>,

For Telegram documentation see SetChatAdministratorCustomTitle.
§

type BanChatSenderChat = AutoRequest<<B as Requester>::BanChatSenderChat>

source§

fn ban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S ) -> <AutoSend<B> as Requester>::BanChatSenderChat where C: Into<Recipient>, S: Into<ChatId>,

For Telegram documentation see BanChatSenderChat.
§

type UnbanChatSenderChat = AutoRequest<<B as Requester>::UnbanChatSenderChat>

source§

fn unban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S ) -> <AutoSend<B> as Requester>::UnbanChatSenderChat where C: Into<Recipient>, S: Into<ChatId>,

For Telegram documentation see UnbanChatSenderChat.
§

type SetChatPermissions = AutoRequest<<B as Requester>::SetChatPermissions>

source§

fn set_chat_permissions<C>( &self, chat_id: C, permissions: ChatPermissions ) -> <AutoSend<B> as Requester>::SetChatPermissions where C: Into<Recipient>,

For Telegram documentation see SetChatPermissions.
For Telegram documentation see ExportChatInviteLink.
For Telegram documentation see CreateChatInviteLink.
For Telegram documentation see EditChatInviteLink.
For Telegram documentation see RevokeChatInviteLink.
§

type SetChatPhoto = AutoRequest<<B as Requester>::SetChatPhoto>

source§

fn set_chat_photo<C>( &self, chat_id: C, photo: InputFile ) -> <AutoSend<B> as Requester>::SetChatPhoto where C: Into<Recipient>,

For Telegram documentation see SetChatPhoto.
§

type DeleteChatPhoto = AutoRequest<<B as Requester>::DeleteChatPhoto>

source§

fn delete_chat_photo<C>( &self, chat_id: C ) -> <AutoSend<B> as Requester>::DeleteChatPhoto where C: Into<Recipient>,

For Telegram documentation see DeleteChatPhoto.
§

type SetChatTitle = AutoRequest<<B as Requester>::SetChatTitle>

source§

fn set_chat_title<C, T>( &self, chat_id: C, title: T ) -> <AutoSend<B> as Requester>::SetChatTitle where C: Into<Recipient>, T: Into<String>,

For Telegram documentation see SetChatTitle.
§

type SetChatDescription = AutoRequest<<B as Requester>::SetChatDescription>

source§

fn set_chat_description<C>( &self, chat_id: C ) -> <AutoSend<B> as Requester>::SetChatDescription where C: Into<Recipient>,

For Telegram documentation see SetChatDescription.
§

type PinChatMessage = AutoRequest<<B as Requester>::PinChatMessage>

source§

fn pin_chat_message<C>( &self, chat_id: C, message_id: MessageId ) -> <AutoSend<B> as Requester>::PinChatMessage where C: Into<Recipient>,

For Telegram documentation see PinChatMessage.
§

type UnpinChatMessage = AutoRequest<<B as Requester>::UnpinChatMessage>

source§

fn unpin_chat_message<C>( &self, chat_id: C ) -> <AutoSend<B> as Requester>::UnpinChatMessage where C: Into<Recipient>,

For Telegram documentation see UnpinChatMessage.
§

type UnpinAllChatMessages = AutoRequest<<B as Requester>::UnpinAllChatMessages>

source§

fn unpin_all_chat_messages<C>( &self, chat_id: C ) -> <AutoSend<B> as Requester>::UnpinAllChatMessages where C: Into<Recipient>,

For Telegram documentation see UnpinAllChatMessages.
§

type LeaveChat = AutoRequest<<B as Requester>::LeaveChat>

source§

fn leave_chat<C>(&self, chat_id: C) -> <AutoSend<B> as Requester>::LeaveChat where C: Into<Recipient>,

For Telegram documentation see LeaveChat.
§

type GetChat = AutoRequest<<B as Requester>::GetChat>

source§

fn get_chat<C>(&self, chat_id: C) -> <AutoSend<B> as Requester>::GetChat where C: Into<Recipient>,

For Telegram documentation see GetChat.
§

type GetChatAdministrators = AutoRequest<<B as Requester>::GetChatAdministrators>

source§

fn get_chat_administrators<C>( &self, chat_id: C ) -> <AutoSend<B> as Requester>::GetChatAdministrators where C: Into<Recipient>,

For Telegram documentation see GetChatAdministrators.
§

type GetChatMembersCount = AutoRequest<<B as Requester>::GetChatMembersCount>

source§

fn get_chat_members_count<C>( &self, chat_id: C ) -> <AutoSend<B> as Requester>::GetChatMembersCount where C: Into<Recipient>,

For Telegram documentation see GetChatMembersCount.
§

type GetChatMemberCount = AutoRequest<<B as Requester>::GetChatMemberCount>

source§

fn get_chat_member_count<C>( &self, chat_id: C ) -> <AutoSend<B> as Requester>::GetChatMemberCount where C: Into<Recipient>,

For Telegram documentation see GetChatMemberCount.
§

type GetChatMember = AutoRequest<<B as Requester>::GetChatMember>

source§

fn get_chat_member<C>( &self, chat_id: C, user_id: UserId ) -> <AutoSend<B> as Requester>::GetChatMember where C: Into<Recipient>,

For Telegram documentation see GetChatMember.
§

type SetChatStickerSet = AutoRequest<<B as Requester>::SetChatStickerSet>

source§

fn set_chat_sticker_set<C, S>( &self, chat_id: C, sticker_set_name: S ) -> <AutoSend<B> as Requester>::SetChatStickerSet where C: Into<Recipient>, S: Into<String>,

For Telegram documentation see SetChatStickerSet.
§

type DeleteChatStickerSet = AutoRequest<<B as Requester>::DeleteChatStickerSet>

source§

fn delete_chat_sticker_set<C>( &self, chat_id: C ) -> <AutoSend<B> as Requester>::DeleteChatStickerSet where C: Into<Recipient>,

For Telegram documentation see DeleteChatStickerSet.
§

type GetForumTopicIconStickers = AutoRequest<<B as Requester>::GetForumTopicIconStickers>

source§

fn get_forum_topic_icon_stickers( &self ) -> <AutoSend<B> as Requester>::GetForumTopicIconStickers

For Telegram documentation see GetForumTopicIconStickers.
§

type CreateForumTopic = AutoRequest<<B as Requester>::CreateForumTopic>

source§

fn create_forum_topic<C, N, I>( &self, chat_id: C, name: N, icon_color: u32, icon_custom_emoji_id: I ) -> <AutoSend<B> as Requester>::CreateForumTopic where C: Into<Recipient>, N: Into<String>, I: Into<String>,

For Telegram documentation see CreateForumTopic.
§

type EditForumTopic = AutoRequest<<B as Requester>::EditForumTopic>

source§

fn edit_forum_topic<C>( &self, chat_id: C, message_thread_id: i32 ) -> <AutoSend<B> as Requester>::EditForumTopic where C: Into<Recipient>,

For Telegram documentation see EditForumTopic.
§

type CloseForumTopic = AutoRequest<<B as Requester>::CloseForumTopic>

source§

fn close_forum_topic<C>( &self, chat_id: C, message_thread_id: i32 ) -> <AutoSend<B> as Requester>::CloseForumTopic where C: Into<Recipient>,

For Telegram documentation see CloseForumTopic.
§

type ReopenForumTopic = AutoRequest<<B as Requester>::ReopenForumTopic>

source§

fn reopen_forum_topic<C>( &self, chat_id: C, message_thread_id: i32 ) -> <AutoSend<B> as Requester>::ReopenForumTopic where C: Into<Recipient>,

For Telegram documentation see ReopenForumTopic.
§

type DeleteForumTopic = AutoRequest<<B as Requester>::DeleteForumTopic>

source§

fn delete_forum_topic<C>( &self, chat_id: C, message_thread_id: i32 ) -> <AutoSend<B> as Requester>::DeleteForumTopic where C: Into<Recipient>,

For Telegram documentation see DeleteForumTopic.
§

type UnpinAllForumTopicMessages = AutoRequest<<B as Requester>::UnpinAllForumTopicMessages>

source§

fn unpin_all_forum_topic_messages<C>( &self, chat_id: C, message_thread_id: i32 ) -> <AutoSend<B> as Requester>::UnpinAllForumTopicMessages where C: Into<Recipient>,

For Telegram documentation see UnpinAllForumTopicMessages.
§

type EditGeneralForumTopic = AutoRequest<<B as Requester>::EditGeneralForumTopic>

source§

fn edit_general_forum_topic<C, N>( &self, chat_id: C, name: N ) -> <AutoSend<B> as Requester>::EditGeneralForumTopic where C: Into<Recipient>, N: Into<String>,

For Telegram documentation see EditGeneralForumTopic.
§

type CloseGeneralForumTopic = AutoRequest<<B as Requester>::CloseGeneralForumTopic>

source§

fn close_general_forum_topic<C>( &self, chat_id: C ) -> <AutoSend<B> as Requester>::CloseGeneralForumTopic where C: Into<Recipient>,

For Telegram documentation see CloseGeneralForumTopic.
§

type ReopenGeneralForumTopic = AutoRequest<<B as Requester>::ReopenGeneralForumTopic>

source§

fn reopen_general_forum_topic<C>( &self, chat_id: C ) -> <AutoSend<B> as Requester>::ReopenGeneralForumTopic where C: Into<Recipient>,

For Telegram documentation see ReopenGeneralForumTopic.
§

type HideGeneralForumTopic = AutoRequest<<B as Requester>::HideGeneralForumTopic>

source§

fn hide_general_forum_topic<C>( &self, chat_id: C ) -> <AutoSend<B> as Requester>::HideGeneralForumTopic where C: Into<Recipient>,

For Telegram documentation see HideGeneralForumTopic.
§

type UnhideGeneralForumTopic = AutoRequest<<B as Requester>::UnhideGeneralForumTopic>

source§

fn unhide_general_forum_topic<C>( &self, chat_id: C ) -> <AutoSend<B> as Requester>::UnhideGeneralForumTopic where C: Into<Recipient>,

For Telegram documentation see UnhideGeneralForumTopic.
§

type AnswerCallbackQuery = AutoRequest<<B as Requester>::AnswerCallbackQuery>

source§

fn answer_callback_query<C>( &self, callback_query_id: C ) -> <AutoSend<B> as Requester>::AnswerCallbackQuery where C: Into<String>,

For Telegram documentation see AnswerCallbackQuery.
§

type SetMyCommands = AutoRequest<<B as Requester>::SetMyCommands>

source§

fn set_my_commands<C>( &self, commands: C ) -> <AutoSend<B> as Requester>::SetMyCommands where C: IntoIterator<Item = BotCommand>,

For Telegram documentation see SetMyCommands.
§

type GetMyCommands = AutoRequest<<B as Requester>::GetMyCommands>

source§

fn get_my_commands(&self) -> <AutoSend<B> as Requester>::GetMyCommands

For Telegram documentation see GetMyCommands.
§

type SetChatMenuButton = AutoRequest<<B as Requester>::SetChatMenuButton>

source§

fn set_chat_menu_button(&self) -> <AutoSend<B> as Requester>::SetChatMenuButton

For Telegram documentation see SetChatMenuButton.
§

type GetChatMenuButton = AutoRequest<<B as Requester>::GetChatMenuButton>

source§

fn get_chat_menu_button(&self) -> <AutoSend<B> as Requester>::GetChatMenuButton

For Telegram documentation see GetChatMenuButton.
§

type SetMyDefaultAdministratorRights = AutoRequest<<B as Requester>::SetMyDefaultAdministratorRights>

source§

fn set_my_default_administrator_rights( &self ) -> <AutoSend<B> as Requester>::SetMyDefaultAdministratorRights

For Telegram documentation see SetMyDefaultAdministratorRights.
§

type GetMyDefaultAdministratorRights = AutoRequest<<B as Requester>::GetMyDefaultAdministratorRights>

source§

fn get_my_default_administrator_rights( &self ) -> <AutoSend<B> as Requester>::GetMyDefaultAdministratorRights

For Telegram documentation see GetMyDefaultAdministratorRights.
§

type DeleteMyCommands = AutoRequest<<B as Requester>::DeleteMyCommands>

source§

fn delete_my_commands(&self) -> <AutoSend<B> as Requester>::DeleteMyCommands

For Telegram documentation see DeleteMyCommands.
§

type AnswerInlineQuery = AutoRequest<<B as Requester>::AnswerInlineQuery>

source§

fn answer_inline_query<I, R>( &self, inline_query_id: I, results: R ) -> <AutoSend<B> as Requester>::AnswerInlineQuery where I: Into<String>, R: IntoIterator<Item = InlineQueryResult>,

For Telegram documentation see AnswerInlineQuery.
§

type AnswerWebAppQuery = AutoRequest<<B as Requester>::AnswerWebAppQuery>

source§

fn answer_web_app_query<W>( &self, web_app_query_id: W, result: InlineQueryResult ) -> <AutoSend<B> as Requester>::AnswerWebAppQuery where W: Into<String>,

For Telegram documentation see AnswerWebAppQuery.
§

type EditMessageText = AutoRequest<<B as Requester>::EditMessageText>

source§

fn edit_message_text<C, T>( &self, chat_id: C, message_id: MessageId, text: T ) -> <AutoSend<B> as Requester>::EditMessageText where C: Into<Recipient>, T: Into<String>,

For Telegram documentation see EditMessageText.
§

type EditMessageTextInline = AutoRequest<<B as Requester>::EditMessageTextInline>

source§

fn edit_message_text_inline<I, T>( &self, inline_message_id: I, text: T ) -> <AutoSend<B> as Requester>::EditMessageTextInline where I: Into<String>, T: Into<String>,

For Telegram documentation see EditMessageTextInline.
§

type EditMessageCaption = AutoRequest<<B as Requester>::EditMessageCaption>

source§

fn edit_message_caption<C>( &self, chat_id: C, message_id: MessageId ) -> <AutoSend<B> as Requester>::EditMessageCaption where C: Into<Recipient>,

For Telegram documentation see EditMessageCaption.
§

type EditMessageCaptionInline = AutoRequest<<B as Requester>::EditMessageCaptionInline>

source§

fn edit_message_caption_inline<I>( &self, inline_message_id: I ) -> <AutoSend<B> as Requester>::EditMessageCaptionInline where I: Into<String>,

For Telegram documentation see EditMessageCaptionInline.
§

type EditMessageMedia = AutoRequest<<B as Requester>::EditMessageMedia>

source§

fn edit_message_media<C>( &self, chat_id: C, message_id: MessageId, media: InputMedia ) -> <AutoSend<B> as Requester>::EditMessageMedia where C: Into<Recipient>,

For Telegram documentation see EditMessageMedia.
§

type EditMessageMediaInline = AutoRequest<<B as Requester>::EditMessageMediaInline>

source§

fn edit_message_media_inline<I>( &self, inline_message_id: I, media: InputMedia ) -> <AutoSend<B> as Requester>::EditMessageMediaInline where I: Into<String>,

For Telegram documentation see EditMessageMediaInline.
§

type EditMessageReplyMarkup = AutoRequest<<B as Requester>::EditMessageReplyMarkup>

source§

fn edit_message_reply_markup<C>( &self, chat_id: C, message_id: MessageId ) -> <AutoSend<B> as Requester>::EditMessageReplyMarkup where C: Into<Recipient>,

For Telegram documentation see EditMessageReplyMarkup.
§

type EditMessageReplyMarkupInline = AutoRequest<<B as Requester>::EditMessageReplyMarkupInline>

source§

fn edit_message_reply_markup_inline<I>( &self, inline_message_id: I ) -> <AutoSend<B> as Requester>::EditMessageReplyMarkupInline where I: Into<String>,

For Telegram documentation see EditMessageReplyMarkupInline.
§

type StopPoll = AutoRequest<<B as Requester>::StopPoll>

source§

fn stop_poll<C>( &self, chat_id: C, message_id: MessageId ) -> <AutoSend<B> as Requester>::StopPoll where C: Into<Recipient>,

For Telegram documentation see StopPoll.
§

type DeleteMessage = AutoRequest<<B as Requester>::DeleteMessage>

source§

fn delete_message<C>( &self, chat_id: C, message_id: MessageId ) -> <AutoSend<B> as Requester>::DeleteMessage where C: Into<Recipient>,

For Telegram documentation see DeleteMessage.
§

type SendSticker = AutoRequest<<B as Requester>::SendSticker>

source§

fn send_sticker<C>( &self, chat_id: C, sticker: InputFile ) -> <AutoSend<B> as Requester>::SendSticker where C: Into<Recipient>,

For Telegram documentation see SendSticker.
§

type GetStickerSet = AutoRequest<<B as Requester>::GetStickerSet>

source§

fn get_sticker_set<N>( &self, name: N ) -> <AutoSend<B> as Requester>::GetStickerSet where N: Into<String>,

For Telegram documentation see GetStickerSet.
§

type GetCustomEmojiStickers = AutoRequest<<B as Requester>::GetCustomEmojiStickers>

source§

fn get_custom_emoji_stickers<C>( &self, custom_emoji_ids: C ) -> <AutoSend<B> as Requester>::GetCustomEmojiStickers where C: IntoIterator<Item = String>,

For Telegram documentation see GetCustomEmojiStickers.
§

type UploadStickerFile = AutoRequest<<B as Requester>::UploadStickerFile>

source§

fn upload_sticker_file( &self, user_id: UserId, png_sticker: InputFile ) -> <AutoSend<B> as Requester>::UploadStickerFile

For Telegram documentation see UploadStickerFile.
§

type CreateNewStickerSet = AutoRequest<<B as Requester>::CreateNewStickerSet>

source§

fn create_new_sticker_set<N, T, E>( &self, user_id: UserId, name: N, title: T, sticker: InputSticker, emojis: E ) -> <AutoSend<B> as Requester>::CreateNewStickerSet where N: Into<String>, T: Into<String>, E: Into<String>,

For Telegram documentation see CreateNewStickerSet.
§

type AddStickerToSet = AutoRequest<<B as Requester>::AddStickerToSet>

source§

fn add_sticker_to_set<N, E>( &self, user_id: UserId, name: N, sticker: InputSticker, emojis: E ) -> <AutoSend<B> as Requester>::AddStickerToSet where N: Into<String>, E: Into<String>,

For Telegram documentation see AddStickerToSet.
§

type SetStickerPositionInSet = AutoRequest<<B as Requester>::SetStickerPositionInSet>

source§

fn set_sticker_position_in_set<S>( &self, sticker: S, position: u32 ) -> <AutoSend<B> as Requester>::SetStickerPositionInSet where S: Into<String>,

For Telegram documentation see SetStickerPositionInSet.
§

type DeleteStickerFromSet = AutoRequest<<B as Requester>::DeleteStickerFromSet>

source§

fn delete_sticker_from_set<S>( &self, sticker: S ) -> <AutoSend<B> as Requester>::DeleteStickerFromSet where S: Into<String>,

For Telegram documentation see DeleteStickerFromSet.
§

type SetStickerSetThumb = AutoRequest<<B as Requester>::SetStickerSetThumb>

source§

fn set_sticker_set_thumb<N>( &self, name: N, user_id: UserId ) -> <AutoSend<B> as Requester>::SetStickerSetThumb where N: Into<String>,

For Telegram documentation see SetStickerSetThumb.
§

type SendInvoice = AutoRequest<<B as Requester>::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 ) -> <AutoSend<B> 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.
For Telegram documentation see CreateInvoiceLink.
§

type AnswerShippingQuery = AutoRequest<<B as Requester>::AnswerShippingQuery>

source§

fn answer_shipping_query<S>( &self, shipping_query_id: S, ok: bool ) -> <AutoSend<B> as Requester>::AnswerShippingQuery where S: Into<String>,

For Telegram documentation see AnswerShippingQuery.
§

type AnswerPreCheckoutQuery = AutoRequest<<B as Requester>::AnswerPreCheckoutQuery>

source§

fn answer_pre_checkout_query<P>( &self, pre_checkout_query_id: P, ok: bool ) -> <AutoSend<B> as Requester>::AnswerPreCheckoutQuery where P: Into<String>,

For Telegram documentation see AnswerPreCheckoutQuery.
§

type SetPassportDataErrors = AutoRequest<<B as Requester>::SetPassportDataErrors>

source§

fn set_passport_data_errors<E>( &self, user_id: UserId, errors: E ) -> <AutoSend<B> as Requester>::SetPassportDataErrors where E: IntoIterator<Item = PassportElementError>,

For Telegram documentation see SetPassportDataErrors.
§

type SendGame = AutoRequest<<B as Requester>::SendGame>

source§

fn send_game<G>( &self, chat_id: u32, game_short_name: G ) -> <AutoSend<B> as Requester>::SendGame where G: Into<String>,

For Telegram documentation see SendGame.
§

type SetGameScore = AutoRequest<<B as Requester>::SetGameScore>

source§

fn set_game_score( &self, user_id: UserId, score: u64, chat_id: u32, message_id: MessageId ) -> <AutoSend<B> as Requester>::SetGameScore

For Telegram documentation see SetGameScore.
§

type SetGameScoreInline = AutoRequest<<B as Requester>::SetGameScoreInline>

source§

fn set_game_score_inline<I>( &self, user_id: UserId, score: u64, inline_message_id: I ) -> <AutoSend<B> as Requester>::SetGameScoreInline where I: Into<String>,

For Telegram documentation see SetGameScoreInline.
§

type GetGameHighScores = AutoRequest<<B as Requester>::GetGameHighScores>

source§

fn get_game_high_scores<T>( &self, user_id: UserId, target: T ) -> <AutoSend<B> as Requester>::GetGameHighScores where T: Into<TargetMessage>,

For Telegram documentation see GetGameHighScores.
§

type ApproveChatJoinRequest = AutoRequest<<B as Requester>::ApproveChatJoinRequest>

source§

fn approve_chat_join_request<C>( &self, chat_id: C, user_id: UserId ) -> <AutoSend<B> as Requester>::ApproveChatJoinRequest where C: Into<Recipient>,

For Telegram documentation see ApproveChatJoinRequest.
§

type DeclineChatJoinRequest = AutoRequest<<B as Requester>::DeclineChatJoinRequest>

source§

fn decline_chat_join_request<C>( &self, chat_id: C, user_id: UserId ) -> <AutoSend<B> as Requester>::DeclineChatJoinRequest where C: Into<Recipient>,

For Telegram documentation see DeclineChatJoinRequest.

Auto Trait Implementations§

§

impl<B> RefUnwindSafe for AutoSend<B>where B: RefUnwindSafe,

§

impl<B> Send for AutoSend<B>where B: Send,

§

impl<B> Sync for AutoSend<B>where B: Sync,

§

impl<B> Unpin for AutoSend<B>where B: Unpin,

§

impl<B> UnwindSafe for AutoSend<B>where B: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Erasable for T

§

unsafe fn unerase(this: NonNull<Erased>) -> NonNull<T>

Unerase this erased pointer. Read more
§

const ACK_1_1_0: bool = true

Available on non-enforce_1_1_0_semantics only.
Whether this implementor has acknowledged the 1.1.0 update to unerase’s documented implementation requirements. Read more
§

fn erase(this: NonNull<Self>) -> NonNull<Erased>

Turn this erasable pointer into an erased pointer. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for Twhere T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> RequesterExt for Twhere T: Requester,

source§

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,

👎Deprecated since 0.8.0: AutoSend is no longer required to .await requests and is now noop
Available 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,

Available on crate feature erased only.
Erase requester type.
source§

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,

Available on crate feature throttle only.
Add throttling ability, see Throttle for more. Read more
source§

fn parse_mode(self, parse_mode: ParseMode) -> DefaultParseMode<Self> where Self: Sized,

Specifies default ParseMode, which will be used during all calls to: Read more
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more