pub trait Requester {
Show 333 associated items
type Err: Error + Send + AsResponseParameters;
type GetUpdates: Request<Payload = GetUpdates, Err = Self::Err>;
type SetWebhook: Request<Payload = SetWebhook, Err = Self::Err>;
type DeleteWebhook: Request<Payload = DeleteWebhook, Err = Self::Err>;
type GetWebhookInfo: Request<Payload = GetWebhookInfo, Err = Self::Err>;
type GetMe: Request<Payload = GetMe, Err = Self::Err>;
type LogOut: Request<Payload = LogOut, Err = Self::Err>;
type Close: Request<Payload = Close, Err = Self::Err>;
type SendMessage: Request<Payload = SendMessage, Err = Self::Err>;
type ForwardMessage: Request<Payload = ForwardMessage, Err = Self::Err>;
type ForwardMessages: Request<Payload = ForwardMessages, Err = Self::Err>;
type CopyMessage: Request<Payload = CopyMessage, Err = Self::Err>;
type CopyMessages: Request<Payload = CopyMessages, Err = Self::Err>;
type SendPhoto: Request<Payload = SendPhoto, Err = Self::Err>;
type SendAudio: Request<Payload = SendAudio, Err = Self::Err>;
type SendDocument: Request<Payload = SendDocument, Err = Self::Err>;
type SendVideo: Request<Payload = SendVideo, Err = Self::Err>;
type SendAnimation: Request<Payload = SendAnimation, Err = Self::Err>;
type SendVoice: Request<Payload = SendVoice, Err = Self::Err>;
type SendVideoNote: Request<Payload = SendVideoNote, Err = Self::Err>;
type SendPaidMedia: Request<Payload = SendPaidMedia, Err = Self::Err>;
type SendMediaGroup: Request<Payload = SendMediaGroup, Err = Self::Err>;
type SendLocation: Request<Payload = SendLocation, Err = Self::Err>;
type EditMessageLiveLocation: Request<Payload = EditMessageLiveLocation, Err = Self::Err>;
type EditMessageLiveLocationInline: Request<Payload = EditMessageLiveLocationInline, Err = Self::Err>;
type StopMessageLiveLocation: Request<Payload = StopMessageLiveLocation, Err = Self::Err>;
type StopMessageLiveLocationInline: Request<Payload = StopMessageLiveLocationInline, Err = Self::Err>;
type EditMessageChecklist: Request<Payload = EditMessageChecklist, Err = Self::Err>;
type SendVenue: Request<Payload = SendVenue, Err = Self::Err>;
type SendContact: Request<Payload = SendContact, Err = Self::Err>;
type SendPoll: Request<Payload = SendPoll, Err = Self::Err>;
type SendChecklist: Request<Payload = SendChecklist, Err = Self::Err>;
type SendDice: Request<Payload = SendDice, Err = Self::Err>;
type SendChatAction: Request<Payload = SendChatAction, Err = Self::Err>;
type SetMessageReaction: Request<Payload = SetMessageReaction, Err = Self::Err>;
type GetUserProfilePhotos: Request<Payload = GetUserProfilePhotos, Err = Self::Err>;
type SetUserEmojiStatus: Request<Payload = SetUserEmojiStatus, Err = Self::Err>;
type GetFile: Request<Payload = GetFile, Err = Self::Err>;
type BanChatMember: Request<Payload = BanChatMember, Err = Self::Err>;
type KickChatMember: Request<Payload = KickChatMember, Err = Self::Err>;
type UnbanChatMember: Request<Payload = UnbanChatMember, Err = Self::Err>;
type RestrictChatMember: Request<Payload = RestrictChatMember, Err = Self::Err>;
type PromoteChatMember: Request<Payload = PromoteChatMember, Err = Self::Err>;
type SetChatAdministratorCustomTitle: Request<Payload = SetChatAdministratorCustomTitle, Err = Self::Err>;
type BanChatSenderChat: Request<Payload = BanChatSenderChat, Err = Self::Err>;
type UnbanChatSenderChat: Request<Payload = UnbanChatSenderChat, Err = Self::Err>;
type SetChatPermissions: Request<Payload = SetChatPermissions, Err = Self::Err>;
type ExportChatInviteLink: Request<Payload = ExportChatInviteLink, Err = Self::Err>;
type CreateChatInviteLink: Request<Payload = CreateChatInviteLink, Err = Self::Err>;
type EditChatInviteLink: Request<Payload = EditChatInviteLink, Err = Self::Err>;
type CreateChatSubscriptionInviteLink: Request<Payload = CreateChatSubscriptionInviteLink, Err = Self::Err>;
type EditChatSubscriptionInviteLink: Request<Payload = EditChatSubscriptionInviteLink, Err = Self::Err>;
type RevokeChatInviteLink: Request<Payload = RevokeChatInviteLink, Err = Self::Err>;
type ApproveChatJoinRequest: Request<Payload = ApproveChatJoinRequest, Err = Self::Err>;
type DeclineChatJoinRequest: Request<Payload = DeclineChatJoinRequest, Err = Self::Err>;
type SetChatPhoto: Request<Payload = SetChatPhoto, Err = Self::Err>;
type DeleteChatPhoto: Request<Payload = DeleteChatPhoto, Err = Self::Err>;
type SetChatTitle: Request<Payload = SetChatTitle, Err = Self::Err>;
type SetChatDescription: Request<Payload = SetChatDescription, Err = Self::Err>;
type PinChatMessage: Request<Payload = PinChatMessage, Err = Self::Err>;
type UnpinChatMessage: Request<Payload = UnpinChatMessage, Err = Self::Err>;
type UnpinAllChatMessages: Request<Payload = UnpinAllChatMessages, Err = Self::Err>;
type LeaveChat: Request<Payload = LeaveChat, Err = Self::Err>;
type GetChat: Request<Payload = GetChat, Err = Self::Err>;
type GetChatAdministrators: Request<Payload = GetChatAdministrators, Err = Self::Err>;
type GetChatMemberCount: Request<Payload = GetChatMemberCount, Err = Self::Err>;
type GetChatMembersCount: Request<Payload = GetChatMembersCount, Err = Self::Err>;
type GetChatMember: Request<Payload = GetChatMember, Err = Self::Err>;
type SetChatStickerSet: Request<Payload = SetChatStickerSet, Err = Self::Err>;
type DeleteChatStickerSet: Request<Payload = DeleteChatStickerSet, Err = Self::Err>;
type GetForumTopicIconStickers: Request<Payload = GetForumTopicIconStickers, Err = Self::Err>;
type CreateForumTopic: Request<Payload = CreateForumTopic, Err = Self::Err>;
type EditForumTopic: Request<Payload = EditForumTopic, Err = Self::Err>;
type CloseForumTopic: Request<Payload = CloseForumTopic, Err = Self::Err>;
type ReopenForumTopic: Request<Payload = ReopenForumTopic, Err = Self::Err>;
type DeleteForumTopic: Request<Payload = DeleteForumTopic, Err = Self::Err>;
type UnpinAllForumTopicMessages: Request<Payload = UnpinAllForumTopicMessages, Err = Self::Err>;
type EditGeneralForumTopic: Request<Payload = EditGeneralForumTopic, Err = Self::Err>;
type CloseGeneralForumTopic: Request<Payload = CloseGeneralForumTopic, Err = Self::Err>;
type ReopenGeneralForumTopic: Request<Payload = ReopenGeneralForumTopic, Err = Self::Err>;
type HideGeneralForumTopic: Request<Payload = HideGeneralForumTopic, Err = Self::Err>;
type UnhideGeneralForumTopic: Request<Payload = UnhideGeneralForumTopic, Err = Self::Err>;
type UnpinAllGeneralForumTopicMessages: Request<Payload = UnpinAllGeneralForumTopicMessages, Err = Self::Err>;
type AnswerCallbackQuery: Request<Payload = AnswerCallbackQuery, Err = Self::Err>;
type GetUserChatBoosts: Request<Payload = GetUserChatBoosts, Err = Self::Err>;
type SetMyCommands: Request<Payload = SetMyCommands, Err = Self::Err>;
type GetBusinessConnection: Request<Payload = GetBusinessConnection, Err = Self::Err>;
type GetMyCommands: Request<Payload = GetMyCommands, Err = Self::Err>;
type SetMyName: Request<Payload = SetMyName, Err = Self::Err>;
type GetMyName: Request<Payload = GetMyName, Err = Self::Err>;
type SetMyDescription: Request<Payload = SetMyDescription, Err = Self::Err>;
type GetMyDescription: Request<Payload = GetMyDescription, Err = Self::Err>;
type SetMyShortDescription: Request<Payload = SetMyShortDescription, Err = Self::Err>;
type GetMyShortDescription: Request<Payload = GetMyShortDescription, Err = Self::Err>;
type SetChatMenuButton: Request<Payload = SetChatMenuButton, Err = Self::Err>;
type GetChatMenuButton: Request<Payload = GetChatMenuButton, Err = Self::Err>;
type SetMyDefaultAdministratorRights: Request<Payload = SetMyDefaultAdministratorRights, Err = Self::Err>;
type GetMyDefaultAdministratorRights: Request<Payload = GetMyDefaultAdministratorRights, Err = Self::Err>;
type DeleteMyCommands: Request<Payload = DeleteMyCommands, Err = Self::Err>;
type AnswerInlineQuery: Request<Payload = AnswerInlineQuery, Err = Self::Err>;
type AnswerWebAppQuery: Request<Payload = AnswerWebAppQuery, Err = Self::Err>;
type SavePreparedInlineMessage: Request<Payload = SavePreparedInlineMessage, Err = Self::Err>;
type EditMessageText: Request<Payload = EditMessageText, Err = Self::Err>;
type EditMessageTextInline: Request<Payload = EditMessageTextInline, Err = Self::Err>;
type EditMessageCaption: Request<Payload = EditMessageCaption, Err = Self::Err>;
type EditMessageCaptionInline: Request<Payload = EditMessageCaptionInline, Err = Self::Err>;
type EditMessageMedia: Request<Payload = EditMessageMedia, Err = Self::Err>;
type EditMessageMediaInline: Request<Payload = EditMessageMediaInline, Err = Self::Err>;
type EditMessageReplyMarkup: Request<Payload = EditMessageReplyMarkup, Err = Self::Err>;
type EditMessageReplyMarkupInline: Request<Payload = EditMessageReplyMarkupInline, Err = Self::Err>;
type StopPoll: Request<Payload = StopPoll, Err = Self::Err>;
type DeleteMessage: Request<Payload = DeleteMessage, Err = Self::Err>;
type DeleteMessages: Request<Payload = DeleteMessages, Err = Self::Err>;
type SendSticker: Request<Payload = SendSticker, Err = Self::Err>;
type GetStickerSet: Request<Payload = GetStickerSet, Err = Self::Err>;
type GetCustomEmojiStickers: Request<Payload = GetCustomEmojiStickers, Err = Self::Err>;
type UploadStickerFile: Request<Payload = UploadStickerFile, Err = Self::Err>;
type CreateNewStickerSet: Request<Payload = CreateNewStickerSet, Err = Self::Err>;
type AddStickerToSet: Request<Payload = AddStickerToSet, Err = Self::Err>;
type SetStickerPositionInSet: Request<Payload = SetStickerPositionInSet, Err = Self::Err>;
type DeleteStickerFromSet: Request<Payload = DeleteStickerFromSet, Err = Self::Err>;
type ReplaceStickerInSet: Request<Payload = ReplaceStickerInSet, Err = Self::Err>;
type SetStickerSetThumbnail: Request<Payload = SetStickerSetThumbnail, Err = Self::Err>;
type SetCustomEmojiStickerSetThumbnail: Request<Payload = SetCustomEmojiStickerSetThumbnail, Err = Self::Err>;
type SetStickerSetTitle: Request<Payload = SetStickerSetTitle, Err = Self::Err>;
type DeleteStickerSet: Request<Payload = DeleteStickerSet, Err = Self::Err>;
type SetStickerEmojiList: Request<Payload = SetStickerEmojiList, Err = Self::Err>;
type SetStickerKeywords: Request<Payload = SetStickerKeywords, Err = Self::Err>;
type SetStickerMaskPosition: Request<Payload = SetStickerMaskPosition, Err = Self::Err>;
type GetAvailableGifts: Request<Payload = GetAvailableGifts, Err = Self::Err>;
type SendGift: Request<Payload = SendGift, Err = Self::Err>;
type SendGiftChat: Request<Payload = SendGiftChat, Err = Self::Err>;
type GiftPremiumSubscription: Request<Payload = GiftPremiumSubscription, Err = Self::Err>;
type VerifyUser: Request<Payload = VerifyUser, Err = Self::Err>;
type VerifyChat: Request<Payload = VerifyChat, Err = Self::Err>;
type RemoveUserVerification: Request<Payload = RemoveUserVerification, Err = Self::Err>;
type RemoveChatVerification: Request<Payload = RemoveChatVerification, Err = Self::Err>;
type ReadBusinessMessage: Request<Payload = ReadBusinessMessage, Err = Self::Err>;
type DeleteBusinessMessages: Request<Payload = DeleteBusinessMessages, Err = Self::Err>;
type SetBusinessAccountName: Request<Payload = SetBusinessAccountName, Err = Self::Err>;
type SetBusinessAccountUsername: Request<Payload = SetBusinessAccountUsername, Err = Self::Err>;
type SetBusinessAccountBio: Request<Payload = SetBusinessAccountBio, Err = Self::Err>;
type SetBusinessAccountProfilePhoto: Request<Payload = SetBusinessAccountProfilePhoto, Err = Self::Err>;
type RemoveBusinessAccountProfilePhoto: Request<Payload = RemoveBusinessAccountProfilePhoto, Err = Self::Err>;
type SetBusinessAccountGiftSettings: Request<Payload = SetBusinessAccountGiftSettings, Err = Self::Err>;
type GetBusinessAccountStarBalance: Request<Payload = GetBusinessAccountStarBalance, Err = Self::Err>;
type TransferBusinessAccountStars: Request<Payload = TransferBusinessAccountStars, Err = Self::Err>;
type GetBusinessAccountGifts: Request<Payload = GetBusinessAccountGifts, Err = Self::Err>;
type ConvertGiftToStars: Request<Payload = ConvertGiftToStars, Err = Self::Err>;
type UpgradeGift: Request<Payload = UpgradeGift, Err = Self::Err>;
type TransferGift: Request<Payload = TransferGift, Err = Self::Err>;
type PostStory: Request<Payload = PostStory, Err = Self::Err>;
type EditStory: Request<Payload = EditStory, Err = Self::Err>;
type DeleteStory: Request<Payload = DeleteStory, Err = Self::Err>;
type SendInvoice: Request<Payload = SendInvoice, Err = Self::Err>;
type CreateInvoiceLink: Request<Payload = CreateInvoiceLink, Err = Self::Err>;
type AnswerShippingQuery: Request<Payload = AnswerShippingQuery, Err = Self::Err>;
type AnswerPreCheckoutQuery: Request<Payload = AnswerPreCheckoutQuery, Err = Self::Err>;
type GetMyStarBalance: Request<Payload = GetMyStarBalance, Err = Self::Err>;
type GetStarTransactions: Request<Payload = GetStarTransactions, Err = Self::Err>;
type RefundStarPayment: Request<Payload = RefundStarPayment, Err = Self::Err>;
type EditUserStarSubscription: Request<Payload = EditUserStarSubscription, Err = Self::Err>;
type SetPassportDataErrors: Request<Payload = SetPassportDataErrors, Err = Self::Err>;
type SendGame: Request<Payload = SendGame, Err = Self::Err>;
type SetGameScore: Request<Payload = SetGameScore, Err = Self::Err>;
type SetGameScoreInline: Request<Payload = SetGameScoreInline, Err = Self::Err>;
type GetGameHighScores: Request<Payload = GetGameHighScores, Err = Self::Err>;
// Required methods
fn get_updates(&self) -> Self::GetUpdates;
fn set_webhook(&self, url: Url) -> Self::SetWebhook;
fn delete_webhook(&self) -> Self::DeleteWebhook;
fn get_webhook_info(&self) -> Self::GetWebhookInfo;
fn get_me(&self) -> Self::GetMe;
fn log_out(&self) -> Self::LogOut;
fn close(&self) -> Self::Close;
fn send_message<C, T>(&self, chat_id: C, text: T) -> Self::SendMessage
where C: Into<Recipient>,
T: Into<String>;
fn forward_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId,
) -> Self::ForwardMessage
where C: Into<Recipient>,
F: Into<Recipient>;
fn forward_messages<C, F, M>(
&self,
chat_id: C,
from_chat_id: F,
message_ids: M,
) -> Self::ForwardMessages
where C: Into<Recipient>,
F: Into<Recipient>,
M: IntoIterator<Item = MessageId>;
fn copy_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId,
) -> Self::CopyMessage
where C: Into<Recipient>,
F: Into<Recipient>;
fn copy_messages<C, F, M>(
&self,
chat_id: C,
from_chat_id: F,
message_ids: M,
) -> Self::CopyMessages
where C: Into<Recipient>,
F: Into<Recipient>,
M: IntoIterator<Item = MessageId>;
fn send_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SendPhoto
where C: Into<Recipient>;
fn send_audio<C>(&self, chat_id: C, audio: InputFile) -> Self::SendAudio
where C: Into<Recipient>;
fn send_document<C>(
&self,
chat_id: C,
document: InputFile,
) -> Self::SendDocument
where C: Into<Recipient>;
fn send_video<C>(&self, chat_id: C, video: InputFile) -> Self::SendVideo
where C: Into<Recipient>;
fn send_animation<C>(
&self,
chat_id: C,
animation: InputFile,
) -> Self::SendAnimation
where C: Into<Recipient>;
fn send_voice<C>(&self, chat_id: C, voice: InputFile) -> Self::SendVoice
where C: Into<Recipient>;
fn send_video_note<C>(
&self,
chat_id: C,
video_note: InputFile,
) -> Self::SendVideoNote
where C: Into<Recipient>;
fn send_paid_media<C, M>(
&self,
chat_id: C,
star_count: u32,
media: M,
) -> Self::SendPaidMedia
where C: Into<Recipient>,
M: IntoIterator<Item = InputPaidMedia>;
fn send_media_group<C, M>(
&self,
chat_id: C,
media: M,
) -> Self::SendMediaGroup
where C: Into<Recipient>,
M: IntoIterator<Item = InputMedia>;
fn send_location<C>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
) -> Self::SendLocation
where C: Into<Recipient>;
fn edit_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64,
) -> Self::EditMessageLiveLocation
where C: Into<Recipient>;
fn edit_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64,
) -> Self::EditMessageLiveLocationInline
where I: Into<String>;
fn stop_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::StopMessageLiveLocation
where C: Into<Recipient>;
fn stop_message_live_location_inline<I>(
&self,
inline_message_id: I,
) -> Self::StopMessageLiveLocationInline
where I: Into<String>;
fn edit_message_checklist<C>(
&self,
business_connection_id: BusinessConnectionId,
chat_id: C,
message_id: MessageId,
checklist: InputChecklist,
) -> Self::EditMessageChecklist
where C: Into<ChatId>;
fn send_venue<C, T, A>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
title: T,
address: A,
) -> Self::SendVenue
where C: Into<Recipient>,
T: Into<String>,
A: Into<String>;
fn send_contact<C, P, F>(
&self,
chat_id: C,
phone_number: P,
first_name: F,
) -> Self::SendContact
where C: Into<Recipient>,
P: Into<String>,
F: Into<String>;
fn send_poll<C, Q, O>(
&self,
chat_id: C,
question: Q,
options: O,
) -> Self::SendPoll
where C: Into<Recipient>,
Q: Into<String>,
O: IntoIterator<Item = InputPollOption>;
fn send_checklist<C>(
&self,
business_connection_id: BusinessConnectionId,
chat_id: C,
checklist: InputChecklist,
) -> Self::SendChecklist
where C: Into<ChatId>;
fn send_dice<C>(&self, chat_id: C) -> Self::SendDice
where C: Into<Recipient>;
fn send_chat_action<C>(
&self,
chat_id: C,
action: ChatAction,
) -> Self::SendChatAction
where C: Into<Recipient>;
fn set_message_reaction<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::SetMessageReaction
where C: Into<Recipient>;
fn get_user_profile_photos(
&self,
user_id: UserId,
) -> Self::GetUserProfilePhotos;
fn set_user_emoji_status(&self, user_id: UserId) -> Self::SetUserEmojiStatus;
fn get_file(&self, file_id: FileId) -> Self::GetFile;
fn ban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::BanChatMember
where C: Into<Recipient>;
fn kick_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::KickChatMember
where C: Into<Recipient>;
fn unban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::UnbanChatMember
where C: Into<Recipient>;
fn restrict_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
permissions: ChatPermissions,
) -> Self::RestrictChatMember
where C: Into<Recipient>;
fn promote_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::PromoteChatMember
where C: Into<Recipient>;
fn set_chat_administrator_custom_title<Ch, C>(
&self,
chat_id: Ch,
user_id: UserId,
custom_title: C,
) -> Self::SetChatAdministratorCustomTitle
where Ch: Into<Recipient>,
C: Into<String>;
fn ban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S,
) -> Self::BanChatSenderChat
where C: Into<Recipient>,
S: Into<ChatId>;
fn unban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S,
) -> Self::UnbanChatSenderChat
where C: Into<Recipient>,
S: Into<ChatId>;
fn set_chat_permissions<C>(
&self,
chat_id: C,
permissions: ChatPermissions,
) -> Self::SetChatPermissions
where C: Into<Recipient>;
fn export_chat_invite_link<C>(
&self,
chat_id: C,
) -> Self::ExportChatInviteLink
where C: Into<Recipient>;
fn create_chat_invite_link<C>(
&self,
chat_id: C,
) -> Self::CreateChatInviteLink
where C: Into<Recipient>;
fn edit_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I,
) -> Self::EditChatInviteLink
where C: Into<Recipient>,
I: Into<String>;
fn create_chat_subscription_invite_link<C>(
&self,
chat_id: C,
subscription_period: Seconds,
subscription_price: u32,
) -> Self::CreateChatSubscriptionInviteLink
where C: Into<Recipient>;
fn edit_chat_subscription_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I,
) -> Self::EditChatSubscriptionInviteLink
where C: Into<Recipient>,
I: Into<String>;
fn revoke_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I,
) -> Self::RevokeChatInviteLink
where C: Into<Recipient>,
I: Into<String>;
fn approve_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::ApproveChatJoinRequest
where C: Into<Recipient>;
fn decline_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::DeclineChatJoinRequest
where C: Into<Recipient>;
fn set_chat_photo<C>(
&self,
chat_id: C,
photo: InputFile,
) -> Self::SetChatPhoto
where C: Into<Recipient>;
fn delete_chat_photo<C>(&self, chat_id: C) -> Self::DeleteChatPhoto
where C: Into<Recipient>;
fn set_chat_title<C, T>(&self, chat_id: C, title: T) -> Self::SetChatTitle
where C: Into<Recipient>,
T: Into<String>;
fn set_chat_description<C>(&self, chat_id: C) -> Self::SetChatDescription
where C: Into<Recipient>;
fn pin_chat_message<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::PinChatMessage
where C: Into<Recipient>;
fn unpin_chat_message<C>(&self, chat_id: C) -> Self::UnpinChatMessage
where C: Into<Recipient>;
fn unpin_all_chat_messages<C>(
&self,
chat_id: C,
) -> Self::UnpinAllChatMessages
where C: Into<Recipient>;
fn leave_chat<C>(&self, chat_id: C) -> Self::LeaveChat
where C: Into<Recipient>;
fn get_chat<C>(&self, chat_id: C) -> Self::GetChat
where C: Into<Recipient>;
fn get_chat_administrators<C>(
&self,
chat_id: C,
) -> Self::GetChatAdministrators
where C: Into<Recipient>;
fn get_chat_member_count<C>(&self, chat_id: C) -> Self::GetChatMemberCount
where C: Into<Recipient>;
fn get_chat_members_count<C>(&self, chat_id: C) -> Self::GetChatMembersCount
where C: Into<Recipient>;
fn get_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::GetChatMember
where C: Into<Recipient>;
fn set_chat_sticker_set<C, S>(
&self,
chat_id: C,
sticker_set_name: S,
) -> Self::SetChatStickerSet
where C: Into<Recipient>,
S: Into<String>;
fn delete_chat_sticker_set<C>(
&self,
chat_id: C,
) -> Self::DeleteChatStickerSet
where C: Into<Recipient>;
fn get_forum_topic_icon_stickers(&self) -> Self::GetForumTopicIconStickers;
fn create_forum_topic<C, N>(
&self,
chat_id: C,
name: N,
) -> Self::CreateForumTopic
where C: Into<Recipient>,
N: Into<String>;
fn edit_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::EditForumTopic
where C: Into<Recipient>;
fn close_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::CloseForumTopic
where C: Into<Recipient>;
fn reopen_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::ReopenForumTopic
where C: Into<Recipient>;
fn delete_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::DeleteForumTopic
where C: Into<Recipient>;
fn unpin_all_forum_topic_messages<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::UnpinAllForumTopicMessages
where C: Into<Recipient>;
fn edit_general_forum_topic<C, N>(
&self,
chat_id: C,
name: N,
) -> Self::EditGeneralForumTopic
where C: Into<Recipient>,
N: Into<String>;
fn close_general_forum_topic<C>(
&self,
chat_id: C,
) -> Self::CloseGeneralForumTopic
where C: Into<Recipient>;
fn reopen_general_forum_topic<C>(
&self,
chat_id: C,
) -> Self::ReopenGeneralForumTopic
where C: Into<Recipient>;
fn hide_general_forum_topic<C>(
&self,
chat_id: C,
) -> Self::HideGeneralForumTopic
where C: Into<Recipient>;
fn unhide_general_forum_topic<C>(
&self,
chat_id: C,
) -> Self::UnhideGeneralForumTopic
where C: Into<Recipient>;
fn unpin_all_general_forum_topic_messages<C>(
&self,
chat_id: C,
) -> Self::UnpinAllGeneralForumTopicMessages
where C: Into<Recipient>;
fn answer_callback_query(
&self,
callback_query_id: CallbackQueryId,
) -> Self::AnswerCallbackQuery;
fn get_user_chat_boosts<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::GetUserChatBoosts
where C: Into<Recipient>;
fn set_my_commands<C>(&self, commands: C) -> Self::SetMyCommands
where C: IntoIterator<Item = BotCommand>;
fn get_business_connection(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::GetBusinessConnection;
fn get_my_commands(&self) -> Self::GetMyCommands;
fn set_my_name(&self) -> Self::SetMyName;
fn get_my_name(&self) -> Self::GetMyName;
fn set_my_description(&self) -> Self::SetMyDescription;
fn get_my_description(&self) -> Self::GetMyDescription;
fn set_my_short_description(&self) -> Self::SetMyShortDescription;
fn get_my_short_description(&self) -> Self::GetMyShortDescription;
fn set_chat_menu_button(&self) -> Self::SetChatMenuButton;
fn get_chat_menu_button(&self) -> Self::GetChatMenuButton;
fn set_my_default_administrator_rights(
&self,
) -> Self::SetMyDefaultAdministratorRights;
fn get_my_default_administrator_rights(
&self,
) -> Self::GetMyDefaultAdministratorRights;
fn delete_my_commands(&self) -> Self::DeleteMyCommands;
fn answer_inline_query<R>(
&self,
inline_query_id: InlineQueryId,
results: R,
) -> Self::AnswerInlineQuery
where R: IntoIterator<Item = InlineQueryResult>;
fn answer_web_app_query<W>(
&self,
web_app_query_id: W,
result: InlineQueryResult,
) -> Self::AnswerWebAppQuery
where W: Into<String>;
fn save_prepared_inline_message(
&self,
user_id: UserId,
result: InlineQueryResult,
) -> Self::SavePreparedInlineMessage;
fn edit_message_text<C, T>(
&self,
chat_id: C,
message_id: MessageId,
text: T,
) -> Self::EditMessageText
where C: Into<Recipient>,
T: Into<String>;
fn edit_message_text_inline<I, T>(
&self,
inline_message_id: I,
text: T,
) -> Self::EditMessageTextInline
where I: Into<String>,
T: Into<String>;
fn edit_message_caption<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::EditMessageCaption
where C: Into<Recipient>;
fn edit_message_caption_inline<I>(
&self,
inline_message_id: I,
) -> Self::EditMessageCaptionInline
where I: Into<String>;
fn edit_message_media<C>(
&self,
chat_id: C,
message_id: MessageId,
media: InputMedia,
) -> Self::EditMessageMedia
where C: Into<Recipient>;
fn edit_message_media_inline<I>(
&self,
inline_message_id: I,
media: InputMedia,
) -> Self::EditMessageMediaInline
where I: Into<String>;
fn edit_message_reply_markup<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::EditMessageReplyMarkup
where C: Into<Recipient>;
fn edit_message_reply_markup_inline<I>(
&self,
inline_message_id: I,
) -> Self::EditMessageReplyMarkupInline
where I: Into<String>;
fn stop_poll<C>(&self, chat_id: C, message_id: MessageId) -> Self::StopPoll
where C: Into<Recipient>;
fn delete_message<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::DeleteMessage
where C: Into<Recipient>;
fn delete_messages<C, M>(
&self,
chat_id: C,
message_ids: M,
) -> Self::DeleteMessages
where C: Into<Recipient>,
M: IntoIterator<Item = MessageId>;
fn send_sticker<C>(
&self,
chat_id: C,
sticker: InputFile,
) -> Self::SendSticker
where C: Into<Recipient>;
fn get_sticker_set<N>(&self, name: N) -> Self::GetStickerSet
where N: Into<String>;
fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C,
) -> Self::GetCustomEmojiStickers
where C: IntoIterator<Item = CustomEmojiId>;
fn upload_sticker_file(
&self,
user_id: UserId,
sticker: InputFile,
sticker_format: StickerFormat,
) -> Self::UploadStickerFile;
fn create_new_sticker_set<N, T, S>(
&self,
user_id: UserId,
name: N,
title: T,
stickers: S,
) -> Self::CreateNewStickerSet
where N: Into<String>,
T: Into<String>,
S: IntoIterator<Item = InputSticker>;
fn add_sticker_to_set<N>(
&self,
user_id: UserId,
name: N,
sticker: InputSticker,
) -> Self::AddStickerToSet
where N: Into<String>;
fn set_sticker_position_in_set<S>(
&self,
sticker: S,
position: u32,
) -> Self::SetStickerPositionInSet
where S: Into<String>;
fn delete_sticker_from_set<S>(
&self,
sticker: S,
) -> Self::DeleteStickerFromSet
where S: Into<String>;
fn replace_sticker_in_set<N, O>(
&self,
user_id: UserId,
name: N,
old_sticker: O,
sticker: InputSticker,
) -> Self::ReplaceStickerInSet
where N: Into<String>,
O: Into<String>;
fn set_sticker_set_thumbnail<N>(
&self,
name: N,
user_id: UserId,
format: StickerFormat,
) -> Self::SetStickerSetThumbnail
where N: Into<String>;
fn set_custom_emoji_sticker_set_thumbnail<N>(
&self,
name: N,
) -> Self::SetCustomEmojiStickerSetThumbnail
where N: Into<String>;
fn set_sticker_set_title<N, T>(
&self,
name: N,
title: T,
) -> Self::SetStickerSetTitle
where N: Into<String>,
T: Into<String>;
fn delete_sticker_set<N>(&self, name: N) -> Self::DeleteStickerSet
where N: Into<String>;
fn set_sticker_emoji_list<S, E>(
&self,
sticker: S,
emoji_list: E,
) -> Self::SetStickerEmojiList
where S: Into<String>,
E: IntoIterator<Item = String>;
fn set_sticker_keywords<S>(&self, sticker: S) -> Self::SetStickerKeywords
where S: Into<String>;
fn set_sticker_mask_position<S>(
&self,
sticker: S,
) -> Self::SetStickerMaskPosition
where S: Into<String>;
fn get_available_gifts(&self) -> Self::GetAvailableGifts;
fn send_gift(&self, user_id: UserId, gift_id: GiftId) -> Self::SendGift;
fn send_gift_chat<C>(
&self,
chat_id: C,
gift_id: GiftId,
) -> Self::SendGiftChat
where C: Into<Recipient>;
fn gift_premium_subscription(
&self,
user_id: UserId,
month_count: u8,
star_count: u32,
) -> Self::GiftPremiumSubscription;
fn verify_user(&self, user_id: UserId) -> Self::VerifyUser;
fn verify_chat<C>(&self, chat_id: C) -> Self::VerifyChat
where C: Into<Recipient>;
fn remove_user_verification(
&self,
user_id: UserId,
) -> Self::RemoveUserVerification;
fn remove_chat_verification<C>(
&self,
chat_id: C,
) -> Self::RemoveChatVerification
where C: Into<Recipient>;
fn read_business_message<C>(
&self,
business_connection_id: BusinessConnectionId,
chat_id: C,
message_id: MessageId,
) -> Self::ReadBusinessMessage
where C: Into<ChatId>;
fn delete_business_messages<M>(
&self,
business_connection_id: BusinessConnectionId,
message_ids: M,
) -> Self::DeleteBusinessMessages
where M: IntoIterator<Item = MessageId>;
fn set_business_account_name<F>(
&self,
business_connection_id: BusinessConnectionId,
first_name: F,
) -> Self::SetBusinessAccountName
where F: Into<String>;
fn set_business_account_username(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::SetBusinessAccountUsername;
fn set_business_account_bio(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::SetBusinessAccountBio;
fn set_business_account_profile_photo(
&self,
business_connection_id: BusinessConnectionId,
photo: InputProfilePhoto,
) -> Self::SetBusinessAccountProfilePhoto;
fn remove_business_account_profile_photo(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::RemoveBusinessAccountProfilePhoto;
fn set_business_account_gift_settings(
&self,
business_connection_id: BusinessConnectionId,
show_gift_button: bool,
accepted_gift_types: AcceptedGiftTypes,
) -> Self::SetBusinessAccountGiftSettings;
fn get_business_account_star_balance(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::GetBusinessAccountStarBalance;
fn transfer_business_account_stars(
&self,
business_connection_id: BusinessConnectionId,
star_count: u32,
) -> Self::TransferBusinessAccountStars;
fn get_business_account_gifts(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::GetBusinessAccountGifts;
fn convert_gift_to_stars(
&self,
business_connection_id: BusinessConnectionId,
owned_gift_id: OwnedGiftId,
) -> Self::ConvertGiftToStars;
fn upgrade_gift(
&self,
business_connection_id: BusinessConnectionId,
owned_gift_id: OwnedGiftId,
) -> Self::UpgradeGift;
fn transfer_gift<N>(
&self,
business_connection_id: BusinessConnectionId,
owned_gift_id: OwnedGiftId,
new_owner_chat_id: N,
) -> Self::TransferGift
where N: Into<ChatId>;
fn post_story(
&self,
business_connection_id: BusinessConnectionId,
content: InputStoryContent,
active_period: Seconds,
) -> Self::PostStory;
fn edit_story(
&self,
business_connection_id: BusinessConnectionId,
story_id: StoryId,
content: InputStoryContent,
) -> Self::EditStory;
fn delete_story(
&self,
business_connection_id: BusinessConnectionId,
story_id: StoryId,
) -> Self::DeleteStory;
fn send_invoice<Ch, T, D, Pa, C, P>(
&self,
chat_id: Ch,
title: T,
description: D,
payload: Pa,
currency: C,
prices: P,
) -> Self::SendInvoice
where Ch: Into<Recipient>,
T: Into<String>,
D: Into<String>,
Pa: Into<String>,
C: Into<String>,
P: IntoIterator<Item = LabeledPrice>;
fn create_invoice_link<T, D, Pa, C, P>(
&self,
title: T,
description: D,
payload: Pa,
currency: C,
prices: P,
) -> Self::CreateInvoiceLink
where T: Into<String>,
D: Into<String>,
Pa: Into<String>,
C: Into<String>,
P: IntoIterator<Item = LabeledPrice>;
fn answer_shipping_query(
&self,
shipping_query_id: ShippingQueryId,
ok: bool,
) -> Self::AnswerShippingQuery;
fn answer_pre_checkout_query(
&self,
pre_checkout_query_id: PreCheckoutQueryId,
ok: bool,
) -> Self::AnswerPreCheckoutQuery;
fn get_my_star_balance(&self) -> Self::GetMyStarBalance;
fn get_star_transactions(&self) -> Self::GetStarTransactions;
fn refund_star_payment(
&self,
user_id: UserId,
telegram_payment_charge_id: TelegramTransactionId,
) -> Self::RefundStarPayment;
fn edit_user_star_subscription(
&self,
user_id: UserId,
telegram_payment_charge_id: TelegramTransactionId,
is_canceled: bool,
) -> Self::EditUserStarSubscription;
fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E,
) -> Self::SetPassportDataErrors
where E: IntoIterator<Item = PassportElementError>;
fn send_game<C, G>(&self, chat_id: C, game_short_name: G) -> Self::SendGame
where C: Into<ChatId>,
G: Into<String>;
fn set_game_score(
&self,
user_id: UserId,
score: u64,
chat_id: u32,
message_id: MessageId,
) -> Self::SetGameScore;
fn set_game_score_inline<I>(
&self,
user_id: UserId,
score: u64,
inline_message_id: I,
) -> Self::SetGameScoreInline
where I: Into<String>;
fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T,
) -> Self::GetGameHighScores
where T: Into<TargetMessage>;
}Expand description
Telegram Bot API client.
This trait is implemented by all bots & bot adaptors.
§Calling Telegram Bot API methods
To call Telegram’s methods you first need to get a Bot instance or any
other type which implement this trait.
Then you can simply call the method you want and pass required parameters to
it. Optional parameters can be supplied by calling setters (like
parse_mode in the example below). Lastly, you need to .await the request
created in previous steps, to actually send it to telegram and wait for the
response.
use teloxide_core::{
prelude::*,
types::{ChatId, ParseMode},
};
// Bot implements `Requester`
let bot = Bot::new("TOKEN");
// Required parameters are supplied to the `Requester` methods:
bot.send_message(chat_id, "<b>Text</b>")
// Optional parameters can be supplied by calling setters
.parse_mode(ParseMode::Html)
// To send request to telegram you need to `.await` the request
.await?;§Adaptors
Similarly to how Iterator has iterator adaptors (FlatMap,
Filter, etc) that wrap an Iterator and alter its behaviour, Teloxide
has a similar story with Requester.
adaptors module provides a handful of Requester adaptors that can be
created via RequesterExt methods. For example using .parse_mode(...)
on a bot will wrap it in DefaultParseMode adaptor which sets the parse
mode to a default value:
use teloxide_core::{
prelude::*,
types::{ChatId, ParseMode},
};
let bot = Bot::new("TOKEN")
// Wrap the bot in an adaptor
.parse_mode(ParseMode::Html);
// This will use `ParseMode::Html`
bot.send_message(chat_id, "<b>Text</b>").await?;
// This will use `ParseMode::MarkdownV2`
bot.send_message(chat_id, "**Text**").parse_mode(ParseMode::MarkdownV2).await?;Note that just as with iterators, adaptors change type:
let bot: Bot = Bot::new("TOKEN").parse_mode(ParseMode::Html);let bot: DefaultParseMode<Bot> = Bot::new("TOKEN").parse_mode(ParseMode::Html);Because of this it’s oftentimes more convinient to have a type alias:
type Bot = DefaultParseMode<Throttle<teloxide_core::Bot>>;
let bot: Bot = teloxide_core::Bot::new("TOKEN")
.throttle(<_>::default())
.parse_mode(ParseMode::Html);Also note that most adaptors require specific cargo features to be enabled.
For example, to use Throttle you need to enable throttle feature in
your Cargo.toml:
teloxide_core = { version = "...", features = ["throttle"] }Refer to adaptor’s documentation for information about what features it requires.
§Using Requester in a generic context
When writing helper function you may be indifferent to which exact type is
being used as a bot and instead only care that it implements Requester
trait. In this case you can use generic bounds to express this exact thing:
use teloxide_core::{
prelude::*,
types::{ChatId, Message},
};
async fn send_hi<R>(bot: R, chat: ChatId) -> Message
where
R: Requester,
{
bot.send_message(chat, "hi").await.expect("error")
}
// `send_hi` can be called with `Bot`, `DefaultParseMode<Bot>` and so on, and so forthRequired Associated Types§
Sourcetype Err: Error + Send + AsResponseParameters
type Err: Error + Send + AsResponseParameters
Error type returned by all requests.
type GetUpdates: Request<Payload = GetUpdates, Err = Self::Err>
type SetWebhook: Request<Payload = SetWebhook, Err = Self::Err>
type DeleteWebhook: Request<Payload = DeleteWebhook, Err = Self::Err>
type GetWebhookInfo: Request<Payload = GetWebhookInfo, Err = Self::Err>
type GetMe: Request<Payload = GetMe, Err = Self::Err>
type LogOut: Request<Payload = LogOut, Err = Self::Err>
type Close: Request<Payload = Close, Err = Self::Err>
type SendMessage: Request<Payload = SendMessage, Err = Self::Err>
type ForwardMessage: Request<Payload = ForwardMessage, Err = Self::Err>
type ForwardMessages: Request<Payload = ForwardMessages, Err = Self::Err>
type CopyMessage: Request<Payload = CopyMessage, Err = Self::Err>
type CopyMessages: Request<Payload = CopyMessages, Err = Self::Err>
type SendPhoto: Request<Payload = SendPhoto, Err = Self::Err>
type SendAudio: Request<Payload = SendAudio, Err = Self::Err>
type SendDocument: Request<Payload = SendDocument, Err = Self::Err>
type SendVideo: Request<Payload = SendVideo, Err = Self::Err>
type SendAnimation: Request<Payload = SendAnimation, Err = Self::Err>
type SendVoice: Request<Payload = SendVoice, Err = Self::Err>
type SendVideoNote: Request<Payload = SendVideoNote, Err = Self::Err>
type SendPaidMedia: Request<Payload = SendPaidMedia, Err = Self::Err>
type SendMediaGroup: Request<Payload = SendMediaGroup, Err = Self::Err>
type SendLocation: Request<Payload = SendLocation, Err = Self::Err>
type EditMessageLiveLocation: Request<Payload = EditMessageLiveLocation, Err = Self::Err>
type EditMessageLiveLocationInline: Request<Payload = EditMessageLiveLocationInline, Err = Self::Err>
type StopMessageLiveLocation: Request<Payload = StopMessageLiveLocation, Err = Self::Err>
type StopMessageLiveLocationInline: Request<Payload = StopMessageLiveLocationInline, Err = Self::Err>
type EditMessageChecklist: Request<Payload = EditMessageChecklist, Err = Self::Err>
type SendVenue: Request<Payload = SendVenue, Err = Self::Err>
type SendContact: Request<Payload = SendContact, Err = Self::Err>
type SendPoll: Request<Payload = SendPoll, Err = Self::Err>
type SendChecklist: Request<Payload = SendChecklist, Err = Self::Err>
type SendDice: Request<Payload = SendDice, Err = Self::Err>
type SendChatAction: Request<Payload = SendChatAction, Err = Self::Err>
type SetMessageReaction: Request<Payload = SetMessageReaction, Err = Self::Err>
type GetUserProfilePhotos: Request<Payload = GetUserProfilePhotos, Err = Self::Err>
type SetUserEmojiStatus: Request<Payload = SetUserEmojiStatus, Err = Self::Err>
type GetFile: Request<Payload = GetFile, Err = Self::Err>
type BanChatMember: Request<Payload = BanChatMember, Err = Self::Err>
type KickChatMember: Request<Payload = KickChatMember, Err = Self::Err>
type UnbanChatMember: Request<Payload = UnbanChatMember, Err = Self::Err>
type RestrictChatMember: Request<Payload = RestrictChatMember, Err = Self::Err>
type PromoteChatMember: Request<Payload = PromoteChatMember, Err = Self::Err>
type SetChatAdministratorCustomTitle: Request<Payload = SetChatAdministratorCustomTitle, Err = Self::Err>
type BanChatSenderChat: Request<Payload = BanChatSenderChat, Err = Self::Err>
type UnbanChatSenderChat: Request<Payload = UnbanChatSenderChat, Err = Self::Err>
type SetChatPermissions: Request<Payload = SetChatPermissions, Err = Self::Err>
type ExportChatInviteLink: Request<Payload = ExportChatInviteLink, Err = Self::Err>
type CreateChatInviteLink: Request<Payload = CreateChatInviteLink, Err = Self::Err>
type EditChatInviteLink: Request<Payload = EditChatInviteLink, Err = Self::Err>
type CreateChatSubscriptionInviteLink: Request<Payload = CreateChatSubscriptionInviteLink, Err = Self::Err>
type EditChatSubscriptionInviteLink: Request<Payload = EditChatSubscriptionInviteLink, Err = Self::Err>
type RevokeChatInviteLink: Request<Payload = RevokeChatInviteLink, Err = Self::Err>
type ApproveChatJoinRequest: Request<Payload = ApproveChatJoinRequest, Err = Self::Err>
type DeclineChatJoinRequest: Request<Payload = DeclineChatJoinRequest, Err = Self::Err>
type SetChatPhoto: Request<Payload = SetChatPhoto, Err = Self::Err>
type DeleteChatPhoto: Request<Payload = DeleteChatPhoto, Err = Self::Err>
type SetChatTitle: Request<Payload = SetChatTitle, Err = Self::Err>
type SetChatDescription: Request<Payload = SetChatDescription, Err = Self::Err>
type PinChatMessage: Request<Payload = PinChatMessage, Err = Self::Err>
type UnpinChatMessage: Request<Payload = UnpinChatMessage, Err = Self::Err>
type UnpinAllChatMessages: Request<Payload = UnpinAllChatMessages, Err = Self::Err>
type LeaveChat: Request<Payload = LeaveChat, Err = Self::Err>
type GetChat: Request<Payload = GetChat, Err = Self::Err>
type GetChatAdministrators: Request<Payload = GetChatAdministrators, Err = Self::Err>
type GetChatMemberCount: Request<Payload = GetChatMemberCount, Err = Self::Err>
type GetChatMembersCount: Request<Payload = GetChatMembersCount, Err = Self::Err>
type GetChatMember: Request<Payload = GetChatMember, Err = Self::Err>
type SetChatStickerSet: Request<Payload = SetChatStickerSet, Err = Self::Err>
type DeleteChatStickerSet: Request<Payload = DeleteChatStickerSet, Err = Self::Err>
type GetForumTopicIconStickers: Request<Payload = GetForumTopicIconStickers, Err = Self::Err>
type CreateForumTopic: Request<Payload = CreateForumTopic, Err = Self::Err>
type EditForumTopic: Request<Payload = EditForumTopic, Err = Self::Err>
type CloseForumTopic: Request<Payload = CloseForumTopic, Err = Self::Err>
type ReopenForumTopic: Request<Payload = ReopenForumTopic, Err = Self::Err>
type DeleteForumTopic: Request<Payload = DeleteForumTopic, Err = Self::Err>
type UnpinAllForumTopicMessages: Request<Payload = UnpinAllForumTopicMessages, Err = Self::Err>
type EditGeneralForumTopic: Request<Payload = EditGeneralForumTopic, Err = Self::Err>
type CloseGeneralForumTopic: Request<Payload = CloseGeneralForumTopic, Err = Self::Err>
type ReopenGeneralForumTopic: Request<Payload = ReopenGeneralForumTopic, Err = Self::Err>
type HideGeneralForumTopic: Request<Payload = HideGeneralForumTopic, Err = Self::Err>
type UnhideGeneralForumTopic: Request<Payload = UnhideGeneralForumTopic, Err = Self::Err>
type UnpinAllGeneralForumTopicMessages: Request<Payload = UnpinAllGeneralForumTopicMessages, Err = Self::Err>
type AnswerCallbackQuery: Request<Payload = AnswerCallbackQuery, Err = Self::Err>
type GetUserChatBoosts: Request<Payload = GetUserChatBoosts, Err = Self::Err>
type SetMyCommands: Request<Payload = SetMyCommands, Err = Self::Err>
type GetBusinessConnection: Request<Payload = GetBusinessConnection, Err = Self::Err>
type GetMyCommands: Request<Payload = GetMyCommands, Err = Self::Err>
type SetMyName: Request<Payload = SetMyName, Err = Self::Err>
type GetMyName: Request<Payload = GetMyName, Err = Self::Err>
type SetMyDescription: Request<Payload = SetMyDescription, Err = Self::Err>
type GetMyDescription: Request<Payload = GetMyDescription, Err = Self::Err>
type SetMyShortDescription: Request<Payload = SetMyShortDescription, Err = Self::Err>
type GetMyShortDescription: Request<Payload = GetMyShortDescription, Err = Self::Err>
type SetChatMenuButton: Request<Payload = SetChatMenuButton, Err = Self::Err>
type GetChatMenuButton: Request<Payload = GetChatMenuButton, Err = Self::Err>
type SetMyDefaultAdministratorRights: Request<Payload = SetMyDefaultAdministratorRights, Err = Self::Err>
type GetMyDefaultAdministratorRights: Request<Payload = GetMyDefaultAdministratorRights, Err = Self::Err>
type DeleteMyCommands: Request<Payload = DeleteMyCommands, Err = Self::Err>
type AnswerInlineQuery: Request<Payload = AnswerInlineQuery, Err = Self::Err>
type AnswerWebAppQuery: Request<Payload = AnswerWebAppQuery, Err = Self::Err>
type SavePreparedInlineMessage: Request<Payload = SavePreparedInlineMessage, Err = Self::Err>
type EditMessageText: Request<Payload = EditMessageText, Err = Self::Err>
type EditMessageTextInline: Request<Payload = EditMessageTextInline, Err = Self::Err>
type EditMessageCaption: Request<Payload = EditMessageCaption, Err = Self::Err>
type EditMessageCaptionInline: Request<Payload = EditMessageCaptionInline, Err = Self::Err>
type EditMessageMedia: Request<Payload = EditMessageMedia, Err = Self::Err>
type EditMessageMediaInline: Request<Payload = EditMessageMediaInline, Err = Self::Err>
type EditMessageReplyMarkup: Request<Payload = EditMessageReplyMarkup, Err = Self::Err>
type EditMessageReplyMarkupInline: Request<Payload = EditMessageReplyMarkupInline, Err = Self::Err>
type StopPoll: Request<Payload = StopPoll, Err = Self::Err>
type DeleteMessage: Request<Payload = DeleteMessage, Err = Self::Err>
type DeleteMessages: Request<Payload = DeleteMessages, Err = Self::Err>
type SendSticker: Request<Payload = SendSticker, Err = Self::Err>
type GetStickerSet: Request<Payload = GetStickerSet, Err = Self::Err>
type GetCustomEmojiStickers: Request<Payload = GetCustomEmojiStickers, Err = Self::Err>
type UploadStickerFile: Request<Payload = UploadStickerFile, Err = Self::Err>
type CreateNewStickerSet: Request<Payload = CreateNewStickerSet, Err = Self::Err>
type AddStickerToSet: Request<Payload = AddStickerToSet, Err = Self::Err>
type SetStickerPositionInSet: Request<Payload = SetStickerPositionInSet, Err = Self::Err>
type DeleteStickerFromSet: Request<Payload = DeleteStickerFromSet, Err = Self::Err>
type ReplaceStickerInSet: Request<Payload = ReplaceStickerInSet, Err = Self::Err>
type SetStickerSetThumbnail: Request<Payload = SetStickerSetThumbnail, Err = Self::Err>
type SetCustomEmojiStickerSetThumbnail: Request<Payload = SetCustomEmojiStickerSetThumbnail, Err = Self::Err>
type SetStickerSetTitle: Request<Payload = SetStickerSetTitle, Err = Self::Err>
type DeleteStickerSet: Request<Payload = DeleteStickerSet, Err = Self::Err>
type SetStickerEmojiList: Request<Payload = SetStickerEmojiList, Err = Self::Err>
type SetStickerKeywords: Request<Payload = SetStickerKeywords, Err = Self::Err>
type SetStickerMaskPosition: Request<Payload = SetStickerMaskPosition, Err = Self::Err>
type GetAvailableGifts: Request<Payload = GetAvailableGifts, Err = Self::Err>
type SendGift: Request<Payload = SendGift, Err = Self::Err>
type SendGiftChat: Request<Payload = SendGiftChat, Err = Self::Err>
type GiftPremiumSubscription: Request<Payload = GiftPremiumSubscription, Err = Self::Err>
type VerifyUser: Request<Payload = VerifyUser, Err = Self::Err>
type VerifyChat: Request<Payload = VerifyChat, Err = Self::Err>
type RemoveUserVerification: Request<Payload = RemoveUserVerification, Err = Self::Err>
type RemoveChatVerification: Request<Payload = RemoveChatVerification, Err = Self::Err>
type ReadBusinessMessage: Request<Payload = ReadBusinessMessage, Err = Self::Err>
type DeleteBusinessMessages: Request<Payload = DeleteBusinessMessages, Err = Self::Err>
type SetBusinessAccountName: Request<Payload = SetBusinessAccountName, Err = Self::Err>
type SetBusinessAccountUsername: Request<Payload = SetBusinessAccountUsername, Err = Self::Err>
type SetBusinessAccountBio: Request<Payload = SetBusinessAccountBio, Err = Self::Err>
type SetBusinessAccountProfilePhoto: Request<Payload = SetBusinessAccountProfilePhoto, Err = Self::Err>
type RemoveBusinessAccountProfilePhoto: Request<Payload = RemoveBusinessAccountProfilePhoto, Err = Self::Err>
type SetBusinessAccountGiftSettings: Request<Payload = SetBusinessAccountGiftSettings, Err = Self::Err>
type GetBusinessAccountStarBalance: Request<Payload = GetBusinessAccountStarBalance, Err = Self::Err>
type TransferBusinessAccountStars: Request<Payload = TransferBusinessAccountStars, Err = Self::Err>
type GetBusinessAccountGifts: Request<Payload = GetBusinessAccountGifts, Err = Self::Err>
type ConvertGiftToStars: Request<Payload = ConvertGiftToStars, Err = Self::Err>
type UpgradeGift: Request<Payload = UpgradeGift, Err = Self::Err>
type TransferGift: Request<Payload = TransferGift, Err = Self::Err>
type PostStory: Request<Payload = PostStory, Err = Self::Err>
type EditStory: Request<Payload = EditStory, Err = Self::Err>
type DeleteStory: Request<Payload = DeleteStory, Err = Self::Err>
type SendInvoice: Request<Payload = SendInvoice, Err = Self::Err>
type CreateInvoiceLink: Request<Payload = CreateInvoiceLink, Err = Self::Err>
type AnswerShippingQuery: Request<Payload = AnswerShippingQuery, Err = Self::Err>
type AnswerPreCheckoutQuery: Request<Payload = AnswerPreCheckoutQuery, Err = Self::Err>
type GetMyStarBalance: Request<Payload = GetMyStarBalance, Err = Self::Err>
type GetStarTransactions: Request<Payload = GetStarTransactions, Err = Self::Err>
type RefundStarPayment: Request<Payload = RefundStarPayment, Err = Self::Err>
type EditUserStarSubscription: Request<Payload = EditUserStarSubscription, Err = Self::Err>
type SetPassportDataErrors: Request<Payload = SetPassportDataErrors, Err = Self::Err>
type SendGame: Request<Payload = SendGame, Err = Self::Err>
type SetGameScore: Request<Payload = SetGameScore, Err = Self::Err>
type SetGameScoreInline: Request<Payload = SetGameScoreInline, Err = Self::Err>
type GetGameHighScores: Request<Payload = GetGameHighScores, Err = Self::Err>
Required Methods§
Sourcefn get_updates(&self) -> Self::GetUpdates
fn get_updates(&self) -> Self::GetUpdates
For Telegram documentation see GetUpdates.
Sourcefn set_webhook(&self, url: Url) -> Self::SetWebhook
fn set_webhook(&self, url: Url) -> Self::SetWebhook
For Telegram documentation see SetWebhook.
Sourcefn delete_webhook(&self) -> Self::DeleteWebhook
fn delete_webhook(&self) -> Self::DeleteWebhook
For Telegram documentation see DeleteWebhook.
Sourcefn get_webhook_info(&self) -> Self::GetWebhookInfo
fn get_webhook_info(&self) -> Self::GetWebhookInfo
For Telegram documentation see GetWebhookInfo.
Sourcefn send_message<C, T>(&self, chat_id: C, text: T) -> Self::SendMessage
fn send_message<C, T>(&self, chat_id: C, text: T) -> Self::SendMessage
For Telegram documentation see SendMessage.
Sourcefn forward_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId,
) -> Self::ForwardMessage
fn forward_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> Self::ForwardMessage
For Telegram documentation see ForwardMessage.
Sourcefn forward_messages<C, F, M>(
&self,
chat_id: C,
from_chat_id: F,
message_ids: M,
) -> Self::ForwardMessages
fn forward_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> Self::ForwardMessages
For Telegram documentation see ForwardMessages.
Sourcefn copy_message<C, F>(
&self,
chat_id: C,
from_chat_id: F,
message_id: MessageId,
) -> Self::CopyMessage
fn copy_message<C, F>( &self, chat_id: C, from_chat_id: F, message_id: MessageId, ) -> Self::CopyMessage
For Telegram documentation see CopyMessage.
Sourcefn copy_messages<C, F, M>(
&self,
chat_id: C,
from_chat_id: F,
message_ids: M,
) -> Self::CopyMessages
fn copy_messages<C, F, M>( &self, chat_id: C, from_chat_id: F, message_ids: M, ) -> Self::CopyMessages
For Telegram documentation see CopyMessages.
Sourcefn send_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SendPhoto
fn send_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SendPhoto
For Telegram documentation see SendPhoto.
Sourcefn send_audio<C>(&self, chat_id: C, audio: InputFile) -> Self::SendAudio
fn send_audio<C>(&self, chat_id: C, audio: InputFile) -> Self::SendAudio
For Telegram documentation see SendAudio.
Sourcefn send_document<C>(
&self,
chat_id: C,
document: InputFile,
) -> Self::SendDocument
fn send_document<C>( &self, chat_id: C, document: InputFile, ) -> Self::SendDocument
For Telegram documentation see SendDocument.
Sourcefn send_video<C>(&self, chat_id: C, video: InputFile) -> Self::SendVideo
fn send_video<C>(&self, chat_id: C, video: InputFile) -> Self::SendVideo
For Telegram documentation see SendVideo.
Sourcefn send_animation<C>(
&self,
chat_id: C,
animation: InputFile,
) -> Self::SendAnimation
fn send_animation<C>( &self, chat_id: C, animation: InputFile, ) -> Self::SendAnimation
For Telegram documentation see SendAnimation.
Sourcefn send_voice<C>(&self, chat_id: C, voice: InputFile) -> Self::SendVoice
fn send_voice<C>(&self, chat_id: C, voice: InputFile) -> Self::SendVoice
For Telegram documentation see SendVoice.
Sourcefn send_video_note<C>(
&self,
chat_id: C,
video_note: InputFile,
) -> Self::SendVideoNote
fn send_video_note<C>( &self, chat_id: C, video_note: InputFile, ) -> Self::SendVideoNote
For Telegram documentation see SendVideoNote.
Sourcefn send_paid_media<C, M>(
&self,
chat_id: C,
star_count: u32,
media: M,
) -> Self::SendPaidMedia
fn send_paid_media<C, M>( &self, chat_id: C, star_count: u32, media: M, ) -> Self::SendPaidMedia
For Telegram documentation see SendPaidMedia.
Sourcefn send_media_group<C, M>(&self, chat_id: C, media: M) -> Self::SendMediaGroup
fn send_media_group<C, M>(&self, chat_id: C, media: M) -> Self::SendMediaGroup
For Telegram documentation see SendMediaGroup.
Sourcefn send_location<C>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
) -> Self::SendLocation
fn send_location<C>( &self, chat_id: C, latitude: f64, longitude: f64, ) -> Self::SendLocation
For Telegram documentation see SendLocation.
Sourcefn edit_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
latitude: f64,
longitude: f64,
) -> Self::EditMessageLiveLocation
fn edit_message_live_location<C>( &self, chat_id: C, message_id: MessageId, latitude: f64, longitude: f64, ) -> Self::EditMessageLiveLocation
For Telegram documentation see EditMessageLiveLocation.
Sourcefn edit_message_live_location_inline<I>(
&self,
inline_message_id: I,
latitude: f64,
longitude: f64,
) -> Self::EditMessageLiveLocationInline
fn edit_message_live_location_inline<I>( &self, inline_message_id: I, latitude: f64, longitude: f64, ) -> Self::EditMessageLiveLocationInline
For Telegram documentation see EditMessageLiveLocationInline.
Sourcefn stop_message_live_location<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::StopMessageLiveLocation
fn stop_message_live_location<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::StopMessageLiveLocation
For Telegram documentation see StopMessageLiveLocation.
Sourcefn stop_message_live_location_inline<I>(
&self,
inline_message_id: I,
) -> Self::StopMessageLiveLocationInline
fn stop_message_live_location_inline<I>( &self, inline_message_id: I, ) -> Self::StopMessageLiveLocationInline
For Telegram documentation see StopMessageLiveLocationInline.
Sourcefn edit_message_checklist<C>(
&self,
business_connection_id: BusinessConnectionId,
chat_id: C,
message_id: MessageId,
checklist: InputChecklist,
) -> Self::EditMessageChecklist
fn edit_message_checklist<C>( &self, business_connection_id: BusinessConnectionId, chat_id: C, message_id: MessageId, checklist: InputChecklist, ) -> Self::EditMessageChecklist
For Telegram documentation see EditMessageChecklist.
Sourcefn send_venue<C, T, A>(
&self,
chat_id: C,
latitude: f64,
longitude: f64,
title: T,
address: A,
) -> Self::SendVenue
fn send_venue<C, T, A>( &self, chat_id: C, latitude: f64, longitude: f64, title: T, address: A, ) -> Self::SendVenue
For Telegram documentation see SendVenue.
Sourcefn send_contact<C, P, F>(
&self,
chat_id: C,
phone_number: P,
first_name: F,
) -> Self::SendContact
fn send_contact<C, P, F>( &self, chat_id: C, phone_number: P, first_name: F, ) -> Self::SendContact
For Telegram documentation see SendContact.
Sourcefn send_poll<C, Q, O>(
&self,
chat_id: C,
question: Q,
options: O,
) -> Self::SendPoll
fn send_poll<C, Q, O>( &self, chat_id: C, question: Q, options: O, ) -> Self::SendPoll
For Telegram documentation see SendPoll.
Sourcefn send_checklist<C>(
&self,
business_connection_id: BusinessConnectionId,
chat_id: C,
checklist: InputChecklist,
) -> Self::SendChecklist
fn send_checklist<C>( &self, business_connection_id: BusinessConnectionId, chat_id: C, checklist: InputChecklist, ) -> Self::SendChecklist
For Telegram documentation see SendChecklist.
Sourcefn send_chat_action<C>(
&self,
chat_id: C,
action: ChatAction,
) -> Self::SendChatAction
fn send_chat_action<C>( &self, chat_id: C, action: ChatAction, ) -> Self::SendChatAction
For Telegram documentation see SendChatAction.
Sourcefn set_message_reaction<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::SetMessageReaction
fn set_message_reaction<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::SetMessageReaction
For Telegram documentation see SetMessageReaction.
Sourcefn get_user_profile_photos(&self, user_id: UserId) -> Self::GetUserProfilePhotos
fn get_user_profile_photos(&self, user_id: UserId) -> Self::GetUserProfilePhotos
For Telegram documentation see GetUserProfilePhotos.
Sourcefn set_user_emoji_status(&self, user_id: UserId) -> Self::SetUserEmojiStatus
fn set_user_emoji_status(&self, user_id: UserId) -> Self::SetUserEmojiStatus
For Telegram documentation see SetUserEmojiStatus.
Sourcefn ban_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::BanChatMember
fn ban_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::BanChatMember
For Telegram documentation see BanChatMember.
Sourcefn kick_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::KickChatMember
fn kick_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::KickChatMember
For Telegram documentation see KickChatMember.
Sourcefn unban_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::UnbanChatMember
fn unban_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::UnbanChatMember
For Telegram documentation see UnbanChatMember.
Sourcefn restrict_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
permissions: ChatPermissions,
) -> Self::RestrictChatMember
fn restrict_chat_member<C>( &self, chat_id: C, user_id: UserId, permissions: ChatPermissions, ) -> Self::RestrictChatMember
For Telegram documentation see RestrictChatMember.
Sourcefn promote_chat_member<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::PromoteChatMember
fn promote_chat_member<C>( &self, chat_id: C, user_id: UserId, ) -> Self::PromoteChatMember
For Telegram documentation see PromoteChatMember.
Sourcefn set_chat_administrator_custom_title<Ch, C>(
&self,
chat_id: Ch,
user_id: UserId,
custom_title: C,
) -> Self::SetChatAdministratorCustomTitle
fn set_chat_administrator_custom_title<Ch, C>( &self, chat_id: Ch, user_id: UserId, custom_title: C, ) -> Self::SetChatAdministratorCustomTitle
For Telegram documentation see SetChatAdministratorCustomTitle.
Sourcefn ban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S,
) -> Self::BanChatSenderChat
fn ban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> Self::BanChatSenderChat
For Telegram documentation see BanChatSenderChat.
Sourcefn unban_chat_sender_chat<C, S>(
&self,
chat_id: C,
sender_chat_id: S,
) -> Self::UnbanChatSenderChat
fn unban_chat_sender_chat<C, S>( &self, chat_id: C, sender_chat_id: S, ) -> Self::UnbanChatSenderChat
For Telegram documentation see UnbanChatSenderChat.
Sourcefn set_chat_permissions<C>(
&self,
chat_id: C,
permissions: ChatPermissions,
) -> Self::SetChatPermissions
fn set_chat_permissions<C>( &self, chat_id: C, permissions: ChatPermissions, ) -> Self::SetChatPermissions
For Telegram documentation see SetChatPermissions.
Sourcefn export_chat_invite_link<C>(&self, chat_id: C) -> Self::ExportChatInviteLink
fn export_chat_invite_link<C>(&self, chat_id: C) -> Self::ExportChatInviteLink
For Telegram documentation see ExportChatInviteLink.
Sourcefn create_chat_invite_link<C>(&self, chat_id: C) -> Self::CreateChatInviteLink
fn create_chat_invite_link<C>(&self, chat_id: C) -> Self::CreateChatInviteLink
For Telegram documentation see CreateChatInviteLink.
Sourcefn edit_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I,
) -> Self::EditChatInviteLink
fn edit_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::EditChatInviteLink
For Telegram documentation see EditChatInviteLink.
Sourcefn create_chat_subscription_invite_link<C>(
&self,
chat_id: C,
subscription_period: Seconds,
subscription_price: u32,
) -> Self::CreateChatSubscriptionInviteLink
fn create_chat_subscription_invite_link<C>( &self, chat_id: C, subscription_period: Seconds, subscription_price: u32, ) -> Self::CreateChatSubscriptionInviteLink
For Telegram documentation see CreateChatSubscriptionInviteLink.
Sourcefn edit_chat_subscription_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I,
) -> Self::EditChatSubscriptionInviteLink
fn edit_chat_subscription_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::EditChatSubscriptionInviteLink
For Telegram documentation see EditChatSubscriptionInviteLink.
Sourcefn revoke_chat_invite_link<C, I>(
&self,
chat_id: C,
invite_link: I,
) -> Self::RevokeChatInviteLink
fn revoke_chat_invite_link<C, I>( &self, chat_id: C, invite_link: I, ) -> Self::RevokeChatInviteLink
For Telegram documentation see RevokeChatInviteLink.
Sourcefn approve_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::ApproveChatJoinRequest
fn approve_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> Self::ApproveChatJoinRequest
For Telegram documentation see ApproveChatJoinRequest.
Sourcefn decline_chat_join_request<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::DeclineChatJoinRequest
fn decline_chat_join_request<C>( &self, chat_id: C, user_id: UserId, ) -> Self::DeclineChatJoinRequest
For Telegram documentation see DeclineChatJoinRequest.
Sourcefn set_chat_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SetChatPhoto
fn set_chat_photo<C>(&self, chat_id: C, photo: InputFile) -> Self::SetChatPhoto
For Telegram documentation see SetChatPhoto.
Sourcefn delete_chat_photo<C>(&self, chat_id: C) -> Self::DeleteChatPhoto
fn delete_chat_photo<C>(&self, chat_id: C) -> Self::DeleteChatPhoto
For Telegram documentation see DeleteChatPhoto.
Sourcefn set_chat_title<C, T>(&self, chat_id: C, title: T) -> Self::SetChatTitle
fn set_chat_title<C, T>(&self, chat_id: C, title: T) -> Self::SetChatTitle
For Telegram documentation see SetChatTitle.
Sourcefn set_chat_description<C>(&self, chat_id: C) -> Self::SetChatDescription
fn set_chat_description<C>(&self, chat_id: C) -> Self::SetChatDescription
For Telegram documentation see SetChatDescription.
Sourcefn pin_chat_message<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::PinChatMessage
fn pin_chat_message<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::PinChatMessage
For Telegram documentation see PinChatMessage.
Sourcefn unpin_chat_message<C>(&self, chat_id: C) -> Self::UnpinChatMessage
fn unpin_chat_message<C>(&self, chat_id: C) -> Self::UnpinChatMessage
For Telegram documentation see UnpinChatMessage.
Sourcefn unpin_all_chat_messages<C>(&self, chat_id: C) -> Self::UnpinAllChatMessages
fn unpin_all_chat_messages<C>(&self, chat_id: C) -> Self::UnpinAllChatMessages
For Telegram documentation see UnpinAllChatMessages.
Sourcefn leave_chat<C>(&self, chat_id: C) -> Self::LeaveChat
fn leave_chat<C>(&self, chat_id: C) -> Self::LeaveChat
For Telegram documentation see LeaveChat.
Sourcefn get_chat_administrators<C>(&self, chat_id: C) -> Self::GetChatAdministrators
fn get_chat_administrators<C>(&self, chat_id: C) -> Self::GetChatAdministrators
For Telegram documentation see GetChatAdministrators.
Sourcefn get_chat_member_count<C>(&self, chat_id: C) -> Self::GetChatMemberCount
fn get_chat_member_count<C>(&self, chat_id: C) -> Self::GetChatMemberCount
For Telegram documentation see GetChatMemberCount.
Sourcefn get_chat_members_count<C>(&self, chat_id: C) -> Self::GetChatMembersCount
fn get_chat_members_count<C>(&self, chat_id: C) -> Self::GetChatMembersCount
For Telegram documentation see GetChatMembersCount.
Sourcefn get_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::GetChatMember
fn get_chat_member<C>(&self, chat_id: C, user_id: UserId) -> Self::GetChatMember
For Telegram documentation see GetChatMember.
Sourcefn set_chat_sticker_set<C, S>(
&self,
chat_id: C,
sticker_set_name: S,
) -> Self::SetChatStickerSet
fn set_chat_sticker_set<C, S>( &self, chat_id: C, sticker_set_name: S, ) -> Self::SetChatStickerSet
For Telegram documentation see SetChatStickerSet.
Sourcefn delete_chat_sticker_set<C>(&self, chat_id: C) -> Self::DeleteChatStickerSet
fn delete_chat_sticker_set<C>(&self, chat_id: C) -> Self::DeleteChatStickerSet
For Telegram documentation see DeleteChatStickerSet.
Sourcefn get_forum_topic_icon_stickers(&self) -> Self::GetForumTopicIconStickers
fn get_forum_topic_icon_stickers(&self) -> Self::GetForumTopicIconStickers
For Telegram documentation see GetForumTopicIconStickers.
Sourcefn create_forum_topic<C, N>(
&self,
chat_id: C,
name: N,
) -> Self::CreateForumTopic
fn create_forum_topic<C, N>( &self, chat_id: C, name: N, ) -> Self::CreateForumTopic
For Telegram documentation see CreateForumTopic.
Sourcefn edit_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::EditForumTopic
fn edit_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::EditForumTopic
For Telegram documentation see EditForumTopic.
Sourcefn close_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::CloseForumTopic
fn close_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::CloseForumTopic
For Telegram documentation see CloseForumTopic.
Sourcefn reopen_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::ReopenForumTopic
fn reopen_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::ReopenForumTopic
For Telegram documentation see ReopenForumTopic.
Sourcefn delete_forum_topic<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::DeleteForumTopic
fn delete_forum_topic<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::DeleteForumTopic
For Telegram documentation see DeleteForumTopic.
Sourcefn unpin_all_forum_topic_messages<C>(
&self,
chat_id: C,
message_thread_id: ThreadId,
) -> Self::UnpinAllForumTopicMessages
fn unpin_all_forum_topic_messages<C>( &self, chat_id: C, message_thread_id: ThreadId, ) -> Self::UnpinAllForumTopicMessages
For Telegram documentation see UnpinAllForumTopicMessages.
Sourcefn edit_general_forum_topic<C, N>(
&self,
chat_id: C,
name: N,
) -> Self::EditGeneralForumTopic
fn edit_general_forum_topic<C, N>( &self, chat_id: C, name: N, ) -> Self::EditGeneralForumTopic
For Telegram documentation see EditGeneralForumTopic.
Sourcefn close_general_forum_topic<C>(
&self,
chat_id: C,
) -> Self::CloseGeneralForumTopic
fn close_general_forum_topic<C>( &self, chat_id: C, ) -> Self::CloseGeneralForumTopic
For Telegram documentation see CloseGeneralForumTopic.
Sourcefn reopen_general_forum_topic<C>(
&self,
chat_id: C,
) -> Self::ReopenGeneralForumTopic
fn reopen_general_forum_topic<C>( &self, chat_id: C, ) -> Self::ReopenGeneralForumTopic
For Telegram documentation see ReopenGeneralForumTopic.
Sourcefn hide_general_forum_topic<C>(&self, chat_id: C) -> Self::HideGeneralForumTopic
fn hide_general_forum_topic<C>(&self, chat_id: C) -> Self::HideGeneralForumTopic
For Telegram documentation see HideGeneralForumTopic.
Sourcefn unhide_general_forum_topic<C>(
&self,
chat_id: C,
) -> Self::UnhideGeneralForumTopic
fn unhide_general_forum_topic<C>( &self, chat_id: C, ) -> Self::UnhideGeneralForumTopic
For Telegram documentation see UnhideGeneralForumTopic.
Sourcefn unpin_all_general_forum_topic_messages<C>(
&self,
chat_id: C,
) -> Self::UnpinAllGeneralForumTopicMessages
fn unpin_all_general_forum_topic_messages<C>( &self, chat_id: C, ) -> Self::UnpinAllGeneralForumTopicMessages
For Telegram documentation see UnpinAllGeneralForumTopicMessages.
Sourcefn answer_callback_query(
&self,
callback_query_id: CallbackQueryId,
) -> Self::AnswerCallbackQuery
fn answer_callback_query( &self, callback_query_id: CallbackQueryId, ) -> Self::AnswerCallbackQuery
For Telegram documentation see AnswerCallbackQuery.
Sourcefn get_user_chat_boosts<C>(
&self,
chat_id: C,
user_id: UserId,
) -> Self::GetUserChatBoosts
fn get_user_chat_boosts<C>( &self, chat_id: C, user_id: UserId, ) -> Self::GetUserChatBoosts
For Telegram documentation see GetUserChatBoosts.
Sourcefn set_my_commands<C>(&self, commands: C) -> Self::SetMyCommandswhere
C: IntoIterator<Item = BotCommand>,
fn set_my_commands<C>(&self, commands: C) -> Self::SetMyCommandswhere
C: IntoIterator<Item = BotCommand>,
For Telegram documentation see SetMyCommands.
Sourcefn get_business_connection(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::GetBusinessConnection
fn get_business_connection( &self, business_connection_id: BusinessConnectionId, ) -> Self::GetBusinessConnection
For Telegram documentation see GetBusinessConnection.
Sourcefn get_my_commands(&self) -> Self::GetMyCommands
fn get_my_commands(&self) -> Self::GetMyCommands
For Telegram documentation see GetMyCommands.
Sourcefn set_my_name(&self) -> Self::SetMyName
fn set_my_name(&self) -> Self::SetMyName
For Telegram documentation see SetMyName.
Sourcefn get_my_name(&self) -> Self::GetMyName
fn get_my_name(&self) -> Self::GetMyName
For Telegram documentation see GetMyName.
Sourcefn set_my_description(&self) -> Self::SetMyDescription
fn set_my_description(&self) -> Self::SetMyDescription
For Telegram documentation see SetMyDescription.
Sourcefn get_my_description(&self) -> Self::GetMyDescription
fn get_my_description(&self) -> Self::GetMyDescription
For Telegram documentation see GetMyDescription.
Sourcefn set_my_short_description(&self) -> Self::SetMyShortDescription
fn set_my_short_description(&self) -> Self::SetMyShortDescription
For Telegram documentation see SetMyShortDescription.
Sourcefn get_my_short_description(&self) -> Self::GetMyShortDescription
fn get_my_short_description(&self) -> Self::GetMyShortDescription
For Telegram documentation see GetMyShortDescription.
For Telegram documentation see SetChatMenuButton.
For Telegram documentation see GetChatMenuButton.
Sourcefn set_my_default_administrator_rights(
&self,
) -> Self::SetMyDefaultAdministratorRights
fn set_my_default_administrator_rights( &self, ) -> Self::SetMyDefaultAdministratorRights
For Telegram documentation see SetMyDefaultAdministratorRights.
Sourcefn get_my_default_administrator_rights(
&self,
) -> Self::GetMyDefaultAdministratorRights
fn get_my_default_administrator_rights( &self, ) -> Self::GetMyDefaultAdministratorRights
For Telegram documentation see GetMyDefaultAdministratorRights.
Sourcefn delete_my_commands(&self) -> Self::DeleteMyCommands
fn delete_my_commands(&self) -> Self::DeleteMyCommands
For Telegram documentation see DeleteMyCommands.
Sourcefn answer_inline_query<R>(
&self,
inline_query_id: InlineQueryId,
results: R,
) -> Self::AnswerInlineQuerywhere
R: IntoIterator<Item = InlineQueryResult>,
fn answer_inline_query<R>(
&self,
inline_query_id: InlineQueryId,
results: R,
) -> Self::AnswerInlineQuerywhere
R: IntoIterator<Item = InlineQueryResult>,
For Telegram documentation see AnswerInlineQuery.
Sourcefn answer_web_app_query<W>(
&self,
web_app_query_id: W,
result: InlineQueryResult,
) -> Self::AnswerWebAppQuery
fn answer_web_app_query<W>( &self, web_app_query_id: W, result: InlineQueryResult, ) -> Self::AnswerWebAppQuery
For Telegram documentation see AnswerWebAppQuery.
Sourcefn save_prepared_inline_message(
&self,
user_id: UserId,
result: InlineQueryResult,
) -> Self::SavePreparedInlineMessage
fn save_prepared_inline_message( &self, user_id: UserId, result: InlineQueryResult, ) -> Self::SavePreparedInlineMessage
For Telegram documentation see SavePreparedInlineMessage.
Sourcefn edit_message_text<C, T>(
&self,
chat_id: C,
message_id: MessageId,
text: T,
) -> Self::EditMessageText
fn edit_message_text<C, T>( &self, chat_id: C, message_id: MessageId, text: T, ) -> Self::EditMessageText
For Telegram documentation see EditMessageText.
Sourcefn edit_message_text_inline<I, T>(
&self,
inline_message_id: I,
text: T,
) -> Self::EditMessageTextInline
fn edit_message_text_inline<I, T>( &self, inline_message_id: I, text: T, ) -> Self::EditMessageTextInline
For Telegram documentation see EditMessageTextInline.
Sourcefn edit_message_caption<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::EditMessageCaption
fn edit_message_caption<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::EditMessageCaption
For Telegram documentation see EditMessageCaption.
Sourcefn edit_message_caption_inline<I>(
&self,
inline_message_id: I,
) -> Self::EditMessageCaptionInline
fn edit_message_caption_inline<I>( &self, inline_message_id: I, ) -> Self::EditMessageCaptionInline
For Telegram documentation see EditMessageCaptionInline.
Sourcefn edit_message_media<C>(
&self,
chat_id: C,
message_id: MessageId,
media: InputMedia,
) -> Self::EditMessageMedia
fn edit_message_media<C>( &self, chat_id: C, message_id: MessageId, media: InputMedia, ) -> Self::EditMessageMedia
For Telegram documentation see EditMessageMedia.
Sourcefn edit_message_media_inline<I>(
&self,
inline_message_id: I,
media: InputMedia,
) -> Self::EditMessageMediaInline
fn edit_message_media_inline<I>( &self, inline_message_id: I, media: InputMedia, ) -> Self::EditMessageMediaInline
For Telegram documentation see EditMessageMediaInline.
Sourcefn edit_message_reply_markup<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::EditMessageReplyMarkup
fn edit_message_reply_markup<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::EditMessageReplyMarkup
For Telegram documentation see EditMessageReplyMarkup.
Sourcefn edit_message_reply_markup_inline<I>(
&self,
inline_message_id: I,
) -> Self::EditMessageReplyMarkupInline
fn edit_message_reply_markup_inline<I>( &self, inline_message_id: I, ) -> Self::EditMessageReplyMarkupInline
For Telegram documentation see EditMessageReplyMarkupInline.
Sourcefn stop_poll<C>(&self, chat_id: C, message_id: MessageId) -> Self::StopPoll
fn stop_poll<C>(&self, chat_id: C, message_id: MessageId) -> Self::StopPoll
For Telegram documentation see StopPoll.
Sourcefn delete_message<C>(
&self,
chat_id: C,
message_id: MessageId,
) -> Self::DeleteMessage
fn delete_message<C>( &self, chat_id: C, message_id: MessageId, ) -> Self::DeleteMessage
For Telegram documentation see DeleteMessage.
Sourcefn delete_messages<C, M>(
&self,
chat_id: C,
message_ids: M,
) -> Self::DeleteMessages
fn delete_messages<C, M>( &self, chat_id: C, message_ids: M, ) -> Self::DeleteMessages
For Telegram documentation see DeleteMessages.
Sourcefn send_sticker<C>(&self, chat_id: C, sticker: InputFile) -> Self::SendSticker
fn send_sticker<C>(&self, chat_id: C, sticker: InputFile) -> Self::SendSticker
For Telegram documentation see SendSticker.
Sourcefn get_sticker_set<N>(&self, name: N) -> Self::GetStickerSet
fn get_sticker_set<N>(&self, name: N) -> Self::GetStickerSet
For Telegram documentation see GetStickerSet.
Sourcefn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C,
) -> Self::GetCustomEmojiStickerswhere
C: IntoIterator<Item = CustomEmojiId>,
fn get_custom_emoji_stickers<C>(
&self,
custom_emoji_ids: C,
) -> Self::GetCustomEmojiStickerswhere
C: IntoIterator<Item = CustomEmojiId>,
For Telegram documentation see GetCustomEmojiStickers.
Sourcefn upload_sticker_file(
&self,
user_id: UserId,
sticker: InputFile,
sticker_format: StickerFormat,
) -> Self::UploadStickerFile
fn upload_sticker_file( &self, user_id: UserId, sticker: InputFile, sticker_format: StickerFormat, ) -> Self::UploadStickerFile
For Telegram documentation see UploadStickerFile.
Sourcefn create_new_sticker_set<N, T, S>(
&self,
user_id: UserId,
name: N,
title: T,
stickers: S,
) -> Self::CreateNewStickerSet
fn create_new_sticker_set<N, T, S>( &self, user_id: UserId, name: N, title: T, stickers: S, ) -> Self::CreateNewStickerSet
For Telegram documentation see CreateNewStickerSet.
Sourcefn add_sticker_to_set<N>(
&self,
user_id: UserId,
name: N,
sticker: InputSticker,
) -> Self::AddStickerToSet
fn add_sticker_to_set<N>( &self, user_id: UserId, name: N, sticker: InputSticker, ) -> Self::AddStickerToSet
For Telegram documentation see AddStickerToSet.
Sourcefn set_sticker_position_in_set<S>(
&self,
sticker: S,
position: u32,
) -> Self::SetStickerPositionInSet
fn set_sticker_position_in_set<S>( &self, sticker: S, position: u32, ) -> Self::SetStickerPositionInSet
For Telegram documentation see SetStickerPositionInSet.
Sourcefn delete_sticker_from_set<S>(&self, sticker: S) -> Self::DeleteStickerFromSet
fn delete_sticker_from_set<S>(&self, sticker: S) -> Self::DeleteStickerFromSet
For Telegram documentation see DeleteStickerFromSet.
Sourcefn replace_sticker_in_set<N, O>(
&self,
user_id: UserId,
name: N,
old_sticker: O,
sticker: InputSticker,
) -> Self::ReplaceStickerInSet
fn replace_sticker_in_set<N, O>( &self, user_id: UserId, name: N, old_sticker: O, sticker: InputSticker, ) -> Self::ReplaceStickerInSet
For Telegram documentation see ReplaceStickerInSet.
Sourcefn set_sticker_set_thumbnail<N>(
&self,
name: N,
user_id: UserId,
format: StickerFormat,
) -> Self::SetStickerSetThumbnail
fn set_sticker_set_thumbnail<N>( &self, name: N, user_id: UserId, format: StickerFormat, ) -> Self::SetStickerSetThumbnail
For Telegram documentation see SetStickerSetThumbnail.
Sourcefn set_custom_emoji_sticker_set_thumbnail<N>(
&self,
name: N,
) -> Self::SetCustomEmojiStickerSetThumbnail
fn set_custom_emoji_sticker_set_thumbnail<N>( &self, name: N, ) -> Self::SetCustomEmojiStickerSetThumbnail
For Telegram documentation see SetCustomEmojiStickerSetThumbnail.
Sourcefn set_sticker_set_title<N, T>(
&self,
name: N,
title: T,
) -> Self::SetStickerSetTitle
fn set_sticker_set_title<N, T>( &self, name: N, title: T, ) -> Self::SetStickerSetTitle
For Telegram documentation see SetStickerSetTitle.
Sourcefn delete_sticker_set<N>(&self, name: N) -> Self::DeleteStickerSet
fn delete_sticker_set<N>(&self, name: N) -> Self::DeleteStickerSet
For Telegram documentation see DeleteStickerSet.
Sourcefn set_sticker_emoji_list<S, E>(
&self,
sticker: S,
emoji_list: E,
) -> Self::SetStickerEmojiList
fn set_sticker_emoji_list<S, E>( &self, sticker: S, emoji_list: E, ) -> Self::SetStickerEmojiList
For Telegram documentation see SetStickerEmojiList.
Sourcefn set_sticker_keywords<S>(&self, sticker: S) -> Self::SetStickerKeywords
fn set_sticker_keywords<S>(&self, sticker: S) -> Self::SetStickerKeywords
For Telegram documentation see SetStickerKeywords.
Sourcefn set_sticker_mask_position<S>(
&self,
sticker: S,
) -> Self::SetStickerMaskPosition
fn set_sticker_mask_position<S>( &self, sticker: S, ) -> Self::SetStickerMaskPosition
For Telegram documentation see SetStickerMaskPosition.
Sourcefn get_available_gifts(&self) -> Self::GetAvailableGifts
fn get_available_gifts(&self) -> Self::GetAvailableGifts
For Telegram documentation see GetAvailableGifts.
Sourcefn send_gift(&self, user_id: UserId, gift_id: GiftId) -> Self::SendGift
fn send_gift(&self, user_id: UserId, gift_id: GiftId) -> Self::SendGift
For Telegram documentation see SendGift.
Sourcefn send_gift_chat<C>(&self, chat_id: C, gift_id: GiftId) -> Self::SendGiftChat
fn send_gift_chat<C>(&self, chat_id: C, gift_id: GiftId) -> Self::SendGiftChat
For Telegram documentation see SendGiftChat.
For Telegram documentation see GiftPremiumSubscription.
Sourcefn verify_user(&self, user_id: UserId) -> Self::VerifyUser
fn verify_user(&self, user_id: UserId) -> Self::VerifyUser
For Telegram documentation see VerifyUser.
Sourcefn verify_chat<C>(&self, chat_id: C) -> Self::VerifyChat
fn verify_chat<C>(&self, chat_id: C) -> Self::VerifyChat
For Telegram documentation see VerifyChat.
Sourcefn remove_user_verification(
&self,
user_id: UserId,
) -> Self::RemoveUserVerification
fn remove_user_verification( &self, user_id: UserId, ) -> Self::RemoveUserVerification
For Telegram documentation see RemoveUserVerification.
Sourcefn remove_chat_verification<C>(
&self,
chat_id: C,
) -> Self::RemoveChatVerification
fn remove_chat_verification<C>( &self, chat_id: C, ) -> Self::RemoveChatVerification
For Telegram documentation see RemoveChatVerification.
Sourcefn read_business_message<C>(
&self,
business_connection_id: BusinessConnectionId,
chat_id: C,
message_id: MessageId,
) -> Self::ReadBusinessMessage
fn read_business_message<C>( &self, business_connection_id: BusinessConnectionId, chat_id: C, message_id: MessageId, ) -> Self::ReadBusinessMessage
For Telegram documentation see ReadBusinessMessage.
Sourcefn delete_business_messages<M>(
&self,
business_connection_id: BusinessConnectionId,
message_ids: M,
) -> Self::DeleteBusinessMessageswhere
M: IntoIterator<Item = MessageId>,
fn delete_business_messages<M>(
&self,
business_connection_id: BusinessConnectionId,
message_ids: M,
) -> Self::DeleteBusinessMessageswhere
M: IntoIterator<Item = MessageId>,
For Telegram documentation see DeleteBusinessMessages.
Sourcefn set_business_account_name<F>(
&self,
business_connection_id: BusinessConnectionId,
first_name: F,
) -> Self::SetBusinessAccountName
fn set_business_account_name<F>( &self, business_connection_id: BusinessConnectionId, first_name: F, ) -> Self::SetBusinessAccountName
For Telegram documentation see SetBusinessAccountName.
Sourcefn set_business_account_username(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::SetBusinessAccountUsername
fn set_business_account_username( &self, business_connection_id: BusinessConnectionId, ) -> Self::SetBusinessAccountUsername
For Telegram documentation see SetBusinessAccountUsername.
Sourcefn set_business_account_bio(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::SetBusinessAccountBio
fn set_business_account_bio( &self, business_connection_id: BusinessConnectionId, ) -> Self::SetBusinessAccountBio
For Telegram documentation see SetBusinessAccountBio.
Sourcefn set_business_account_profile_photo(
&self,
business_connection_id: BusinessConnectionId,
photo: InputProfilePhoto,
) -> Self::SetBusinessAccountProfilePhoto
fn set_business_account_profile_photo( &self, business_connection_id: BusinessConnectionId, photo: InputProfilePhoto, ) -> Self::SetBusinessAccountProfilePhoto
For Telegram documentation see SetBusinessAccountProfilePhoto.
Sourcefn remove_business_account_profile_photo(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::RemoveBusinessAccountProfilePhoto
fn remove_business_account_profile_photo( &self, business_connection_id: BusinessConnectionId, ) -> Self::RemoveBusinessAccountProfilePhoto
For Telegram documentation see RemoveBusinessAccountProfilePhoto.
Sourcefn set_business_account_gift_settings(
&self,
business_connection_id: BusinessConnectionId,
show_gift_button: bool,
accepted_gift_types: AcceptedGiftTypes,
) -> Self::SetBusinessAccountGiftSettings
fn set_business_account_gift_settings( &self, business_connection_id: BusinessConnectionId, show_gift_button: bool, accepted_gift_types: AcceptedGiftTypes, ) -> Self::SetBusinessAccountGiftSettings
For Telegram documentation see SetBusinessAccountGiftSettings.
Sourcefn get_business_account_star_balance(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::GetBusinessAccountStarBalance
fn get_business_account_star_balance( &self, business_connection_id: BusinessConnectionId, ) -> Self::GetBusinessAccountStarBalance
For Telegram documentation see GetBusinessAccountStarBalance.
Sourcefn transfer_business_account_stars(
&self,
business_connection_id: BusinessConnectionId,
star_count: u32,
) -> Self::TransferBusinessAccountStars
fn transfer_business_account_stars( &self, business_connection_id: BusinessConnectionId, star_count: u32, ) -> Self::TransferBusinessAccountStars
For Telegram documentation see TransferBusinessAccountStars.
Sourcefn get_business_account_gifts(
&self,
business_connection_id: BusinessConnectionId,
) -> Self::GetBusinessAccountGifts
fn get_business_account_gifts( &self, business_connection_id: BusinessConnectionId, ) -> Self::GetBusinessAccountGifts
For Telegram documentation see GetBusinessAccountGifts.
Sourcefn convert_gift_to_stars(
&self,
business_connection_id: BusinessConnectionId,
owned_gift_id: OwnedGiftId,
) -> Self::ConvertGiftToStars
fn convert_gift_to_stars( &self, business_connection_id: BusinessConnectionId, owned_gift_id: OwnedGiftId, ) -> Self::ConvertGiftToStars
For Telegram documentation see ConvertGiftToStars.
Sourcefn upgrade_gift(
&self,
business_connection_id: BusinessConnectionId,
owned_gift_id: OwnedGiftId,
) -> Self::UpgradeGift
fn upgrade_gift( &self, business_connection_id: BusinessConnectionId, owned_gift_id: OwnedGiftId, ) -> Self::UpgradeGift
For Telegram documentation see UpgradeGift.
Sourcefn transfer_gift<N>(
&self,
business_connection_id: BusinessConnectionId,
owned_gift_id: OwnedGiftId,
new_owner_chat_id: N,
) -> Self::TransferGift
fn transfer_gift<N>( &self, business_connection_id: BusinessConnectionId, owned_gift_id: OwnedGiftId, new_owner_chat_id: N, ) -> Self::TransferGift
For Telegram documentation see TransferGift.
Sourcefn post_story(
&self,
business_connection_id: BusinessConnectionId,
content: InputStoryContent,
active_period: Seconds,
) -> Self::PostStory
fn post_story( &self, business_connection_id: BusinessConnectionId, content: InputStoryContent, active_period: Seconds, ) -> Self::PostStory
For Telegram documentation see PostStory.
Sourcefn edit_story(
&self,
business_connection_id: BusinessConnectionId,
story_id: StoryId,
content: InputStoryContent,
) -> Self::EditStory
fn edit_story( &self, business_connection_id: BusinessConnectionId, story_id: StoryId, content: InputStoryContent, ) -> Self::EditStory
For Telegram documentation see EditStory.
Sourcefn delete_story(
&self,
business_connection_id: BusinessConnectionId,
story_id: StoryId,
) -> Self::DeleteStory
fn delete_story( &self, business_connection_id: BusinessConnectionId, story_id: StoryId, ) -> Self::DeleteStory
For Telegram documentation see DeleteStory.
Sourcefn send_invoice<Ch, T, D, Pa, C, P>(
&self,
chat_id: Ch,
title: T,
description: D,
payload: Pa,
currency: C,
prices: P,
) -> Self::SendInvoice
fn send_invoice<Ch, T, D, Pa, C, P>( &self, chat_id: Ch, title: T, description: D, payload: Pa, currency: C, prices: P, ) -> Self::SendInvoice
For Telegram documentation see SendInvoice.
Sourcefn create_invoice_link<T, D, Pa, C, P>(
&self,
title: T,
description: D,
payload: Pa,
currency: C,
prices: P,
) -> Self::CreateInvoiceLinkwhere
T: Into<String>,
D: Into<String>,
Pa: Into<String>,
C: Into<String>,
P: IntoIterator<Item = LabeledPrice>,
fn create_invoice_link<T, D, Pa, C, P>(
&self,
title: T,
description: D,
payload: Pa,
currency: C,
prices: P,
) -> Self::CreateInvoiceLinkwhere
T: Into<String>,
D: Into<String>,
Pa: Into<String>,
C: Into<String>,
P: IntoIterator<Item = LabeledPrice>,
For Telegram documentation see CreateInvoiceLink.
Sourcefn answer_shipping_query(
&self,
shipping_query_id: ShippingQueryId,
ok: bool,
) -> Self::AnswerShippingQuery
fn answer_shipping_query( &self, shipping_query_id: ShippingQueryId, ok: bool, ) -> Self::AnswerShippingQuery
For Telegram documentation see AnswerShippingQuery.
Sourcefn answer_pre_checkout_query(
&self,
pre_checkout_query_id: PreCheckoutQueryId,
ok: bool,
) -> Self::AnswerPreCheckoutQuery
fn answer_pre_checkout_query( &self, pre_checkout_query_id: PreCheckoutQueryId, ok: bool, ) -> Self::AnswerPreCheckoutQuery
For Telegram documentation see AnswerPreCheckoutQuery.
Sourcefn get_my_star_balance(&self) -> Self::GetMyStarBalance
fn get_my_star_balance(&self) -> Self::GetMyStarBalance
For Telegram documentation see GetMyStarBalance.
Sourcefn get_star_transactions(&self) -> Self::GetStarTransactions
fn get_star_transactions(&self) -> Self::GetStarTransactions
For Telegram documentation see GetStarTransactions.
Sourcefn refund_star_payment(
&self,
user_id: UserId,
telegram_payment_charge_id: TelegramTransactionId,
) -> Self::RefundStarPayment
fn refund_star_payment( &self, user_id: UserId, telegram_payment_charge_id: TelegramTransactionId, ) -> Self::RefundStarPayment
For Telegram documentation see RefundStarPayment.
Sourcefn edit_user_star_subscription(
&self,
user_id: UserId,
telegram_payment_charge_id: TelegramTransactionId,
is_canceled: bool,
) -> Self::EditUserStarSubscription
fn edit_user_star_subscription( &self, user_id: UserId, telegram_payment_charge_id: TelegramTransactionId, is_canceled: bool, ) -> Self::EditUserStarSubscription
For Telegram documentation see EditUserStarSubscription.
Sourcefn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E,
) -> Self::SetPassportDataErrorswhere
E: IntoIterator<Item = PassportElementError>,
fn set_passport_data_errors<E>(
&self,
user_id: UserId,
errors: E,
) -> Self::SetPassportDataErrorswhere
E: IntoIterator<Item = PassportElementError>,
For Telegram documentation see SetPassportDataErrors.
Sourcefn send_game<C, G>(&self, chat_id: C, game_short_name: G) -> Self::SendGame
fn send_game<C, G>(&self, chat_id: C, game_short_name: G) -> Self::SendGame
For Telegram documentation see SendGame.
Sourcefn set_game_score(
&self,
user_id: UserId,
score: u64,
chat_id: u32,
message_id: MessageId,
) -> Self::SetGameScore
fn set_game_score( &self, user_id: UserId, score: u64, chat_id: u32, message_id: MessageId, ) -> Self::SetGameScore
For Telegram documentation see SetGameScore.
Sourcefn set_game_score_inline<I>(
&self,
user_id: UserId,
score: u64,
inline_message_id: I,
) -> Self::SetGameScoreInline
fn set_game_score_inline<I>( &self, user_id: UserId, score: u64, inline_message_id: I, ) -> Self::SetGameScoreInline
For Telegram documentation see SetGameScoreInline.
Sourcefn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T,
) -> Self::GetGameHighScoreswhere
T: Into<TargetMessage>,
fn get_game_high_scores<T>(
&self,
user_id: UserId,
target: T,
) -> Self::GetGameHighScoreswhere
T: Into<TargetMessage>,
For Telegram documentation see GetGameHighScores.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.