pub enum APIEndpoint {
Show 78 variants
GetUpdates,
GetMe,
LogOut,
Close,
SendMessage,
SetMyCommands,
GetMyCommands,
ForwardMessage,
CopyMessage,
SendPhoto,
SendAudio,
SendDocument,
SendVideo,
SendAnimation,
SendVoice,
SendVideoNote,
SendMediaGroup,
SendLocation,
EditMessageLiveLocation,
StopMessageLiveLocation,
SendVenue,
SendContact,
SendPoll,
SendDice,
SendChatAction,
GetUserProfilePhotos,
GetFile,
KickChatMember,
UnbanChatMember,
RestrictChatMember,
PromoteChatMember,
SetChatAdministratorCustomTitle,
SetChatPermissions,
ExportChatInviteLink,
CreateChatInviteLink,
EditChatInviteLink,
RevokeChatInviteLink,
SetChatPhoto,
DeleteChatPhoto,
SetChatTitle,
SetChatDescription,
PinChatMessage,
UnpinChatMessage,
UnpinAllChatMessages,
LeaveChat,
GetChat,
GetChatAdministrators,
GetChatMembersCount,
GetChatMember,
SetChatStickerSet,
DeleteChatStickerSet,
AnswerCallbackQuery,
EditMessageText,
EditMessageCaption,
EditMessageMedia,
EditMessageReplyMarkup,
StopPoll,
DeleteMessage,
SendSticker,
GetStickerSet,
UploadStickerFile,
CreateNewStickerSet,
AddStickerToSet,
SetStickerPositionInSet,
DeleteStickerFromSet,
SetStickerSetThumb,
AnswerInlineQuery,
SendInvoice,
AnswerShippingQuery,
AnswerPreCheckoutQuery,
SendGame,
SetGameScore,
GetGameHighScores,
SetWebhook,
SetPassportDataErrors,
DeleteWebhook,
GetWebhookInfo,
Other(String),
}Expand description
This enum represents all the telegram API endpoints.
It is mostly used for letting the get and post methods in the API trait know how to form the endpoint path
Variants§
GetUpdates
GetMe
LogOut
Close
SendMessage
SetMyCommands
GetMyCommands
ForwardMessage
CopyMessage
SendPhoto
SendAudio
SendDocument
SendVideo
SendAnimation
SendVoice
SendVideoNote
SendMediaGroup
SendLocation
EditMessageLiveLocation
StopMessageLiveLocation
SendVenue
SendContact
SendPoll
SendDice
SendChatAction
GetUserProfilePhotos
GetFile
KickChatMember
UnbanChatMember
RestrictChatMember
PromoteChatMember
SetChatAdministratorCustomTitle
SetChatPermissions
ExportChatInviteLink
CreateChatInviteLink
EditChatInviteLink
RevokeChatInviteLink
SetChatPhoto
DeleteChatPhoto
SetChatTitle
SetChatDescription
PinChatMessage
UnpinChatMessage
UnpinAllChatMessages
LeaveChat
GetChat
GetChatAdministrators
GetChatMembersCount
GetChatMember
SetChatStickerSet
DeleteChatStickerSet
AnswerCallbackQuery
EditMessageText
EditMessageCaption
EditMessageMedia
EditMessageReplyMarkup
StopPoll
DeleteMessage
SendSticker
GetStickerSet
UploadStickerFile
CreateNewStickerSet
AddStickerToSet
SetStickerPositionInSet
DeleteStickerFromSet
SetStickerSetThumb
AnswerInlineQuery
SendInvoice
AnswerShippingQuery
AnswerPreCheckoutQuery
SendGame
SetGameScore
GetGameHighScores
SetWebhook
SetPassportDataErrors
DeleteWebhook
GetWebhookInfo
Other(String)
Implementations§
Trait Implementations§
Source§impl Debug for APIEndpoint
impl Debug for APIEndpoint
Source§impl Display for APIEndpoint
impl Display for APIEndpoint
Source§impl From<String> for APIEndpoint
impl From<String> for APIEndpoint
Source§fn from(string: String) -> APIEndpoint
fn from(string: String) -> APIEndpoint
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for APIEndpoint
impl RefUnwindSafe for APIEndpoint
impl Send for APIEndpoint
impl Sync for APIEndpoint
impl Unpin for APIEndpoint
impl UnwindSafe for APIEndpoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more