[][src]Module telegram_bot_async::types::requests

Telegram Bot API methods.

Structs

AnswerCallbackQuery

Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert.

DeleteMessage
EditMessageCaption

Use this method to edit captions of messages sent by the bot.

EditMessageLiveLocation

Use this method to edit live location messages sent by the bot. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation.

EditMessageReplyMarkup

Use this method to edit only the reply markup of messages sent by the bot.

EditMessageText

Use this method to edit text messages sent by the bot.

ExportChatInviteLink

Use this method to get a list of administrators in a chat. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned.

ForwardMessage

Use this method to forward messages of any kind.

GetChat

Use this method to get up to date information about the chat.

GetChatAdministrators

Use this method to get a list of administrators in a chat. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned.

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. For the moment, bots can download files of up to 20MB in size.

GetMe

A simple method for testing your bot's auth token. Requires no parameters. Returns basic information about the bot in form of a User object.

GetUpdates

Use this method to receive incoming updates using long polling.

GetUserProfilePhotos

Use this method to get a list of profile pictures for a user.

KickChatMember

Use this method to kick a user from a group or a supergroup. In the case of supergroups, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the group for this to work.

LeaveChat

Use this method for your bot to leave a group, supergroup or channel.

PinChatMessage

Use this method to pin a message in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the ‘can_pin_messages’ admin right in the supergroup or ‘can_edit_messages’ admin right in the channel.

RestrictChatMember

Use this method to kick a user from a group or a supergroup. In the case of supergroups, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the group for this to work.

SendAudio

Use this method to send an audio

SendChatAction

Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status).

SendContact

Use this method to send phone contacts.

SendLocation

Use this method to send point on the map.

SendMessage

Use this method to send text messages.

SendVenue

Use this method to send information about a venue.

StopMessageLiveLocation

Use this method to stop updating a live location message sent by the bot before live_period expires.

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 in the group for this to work.

UnpinChatMessage

Use this method to unpin a message in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the ‘can_pin_messages’ admin right in the supergroup or ‘can_edit_messages’ admin right in the channel.

Traits

CanExportChatInviteLink

Get a list of administrators in a chat.