[−][src]Module teloxide::requests
API requests.
Structs
AddStickerToSet | Use this method to add a new sticker to a set created by the bot. |
AnswerCallbackQuery | Use this method to send answers to callback queries sent from inline keyboards. |
AnswerInlineQuery | Use this method to send answers to an inline query. |
AnswerPreCheckoutQuery | Once the user has confirmed their payment and shipping details, the Bot API
sends the final confirmation in the form of an |
AnswerShippingQuery | If you sent an invoice requesting a shipping address and the parameter
|
CreateNewStickerSet | Use this method to create new sticker set owned by a user. The bot will be able to edit the created sticker set. |
DeleteChatPhoto | Use this method to delete a chat photo. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. |
DeleteChatStickerSet | Use this method to delete a group sticker set from a supergroup. |
DeleteMessage | Use this method to delete a message, including service messages. |
DeleteStickerFromSet | Use this method to delete a sticker from a set created by the bot. |
DeleteWebhook | Use this method to remove webhook integration if you decide to switch back to Bot::get_updates. |
EditMessageCaption | Use this method to edit captions of messages. |
EditMessageLiveLocation | Use this method to edit live location messages. |
EditMessageMedia | Use this method to edit animation, audio, document, photo, or video messages. |
EditMessageReplyMarkup | Use this method to edit only the reply markup of messages. |
EditMessageText | Use this method to edit text and game messages. |
ExportChatInviteLink | Use this method to generate a new invite link for a chat; any previously generated link is revoked. |
ForwardMessage | Use this method to forward messages of any kind. |
GetChat | Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). |
GetChatAdministrators | Use this method to get a list of administrators in a chat. |
GetChatMember | Use this method to get information about a member of a chat. |
GetChatMembersCount | Use this method to get the number of members in a chat. |
GetFile | Use this method to get basic info about a file and prepare it for downloading. |
GetGameHighScores | Use this method to get data for high score tables. |
GetMe | A simple method for testing your bot's auth token. Requires no parameters. |
GetMyCommands | Use this method to get the current list of the bot's commands. |
GetStickerSet | Use this method to get a sticker set. |
GetUpdates | Use this method to receive incoming updates using long polling (wiki). |
GetUserProfilePhotos | Use this method to get a list of profile pictures for a user. |
GetWebhookInfo | Use this method to get current webhook status. |
KickChatMember | Use this method to kick a user from a group, a supergroup or a channel. |
LeaveChat | Use this method for your bot to leave a group, supergroup or channel. |
Pin | A pinned pointer. |
PinChatMessage | Use this method to pin a message in a group, a supergroup, or a channel. |
PromoteChatMember | Use this method to promote or demote a user in a supergroup or a channel. |
RestrictChatMember | Use this method to restrict a user in a supergroup. |
SendAnimation | Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound). |
SendAudio | Use this method to send audio files, if you want Telegram clients to display them in the music player. |
SendChatAction | Use this method when you need to tell the user that something is happening on the bot's side. |
SendContact | Use this method to send phone contacts. |
SendDice | Use this method to send an animated emoji that will display a random value. |
SendDocument | Use this method to send general files. |
SendGame | Use this method to send a game. |
SendInvoice | Use this method to send invoices. |
SendLocation | Use this method to send point on the map. |
SendMediaGroup | Use this method to send a group of photos or videos as an album. |
SendMessage | Use this method to send text messages. |
SendPhoto | Use this method to send photos. |
SendPoll | Use this method to send a native poll. |
SendSticker | Use this method to send static .WEBP or animated .TGS stickers. |
SendVenue | Use this method to send information about a venue. |
SendVideo | Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document). |
SendVideoNote | As of v.4.0, Telegram clients support rounded square mp4 videos of up to 1 minute long. Use this method to send video messages. |
SendVoice | Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. |
SetChatAdministratorCustomTitle | Use this method to set a custom title for an administrator in a supergroup promoted by the bot. |
SetChatDescription | Use this method to change the description of a group, a supergroup or a channel. |
SetChatPermissions | Use this method to set default chat permissions for all members. |
SetChatPhoto | Use this method to set a new profile photo for the chat. |
SetChatStickerSet | Use this method to set a new group sticker set for a supergroup. |
SetChatTitle | Use this method to change the title of a chat. |
SetGameScore | Use this method to set the score of the specified user in a game. |
SetMyCommands | Use this method to change the list of the bot's commands. |
SetStickerPositionInSet | Use this method to move a sticker in a set created by the bot to a specific position. |
SetStickerSetThumb | Use this method to set the thumbnail of a sticker set. Animated thumbnails can be set for animated sticker sets only. |
SetWebhook | Use this method to specify a url and receive incoming updates via an outgoing webhook. |
StopMessageLiveLocation | Use this method to stop updating a live location message before
|
StopPoll | Use this method to stop a poll which was sent by the bot. |
UnbanChatMember | Use this method to unban a previously kicked user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator for this to work. |
UnpinChatMessage | Use this method to unpin a message in a group, a supergroup, or a channel. |
UploadStickerFile | Use this method to upload a .png file with a sticker for later use in
|
Enums
SendChatActionKind | A type of action used in |
Traits
Request | Designates an API request. |
RequestWithFile | Designates an API request with possibly sending file. |
Type Definitions
ResponseResult | A type that is returned after making a request to Telegram. |