Module telegram_types::bot::methods

source ·
Expand description

Request parameters types of Telegram bot methods.

Structs

Use this method to delete a message, including service messages, with the following limitations:
Use this method to edit captions of messages sent by the bot or via the bot (for inline bots). On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
Use this method to edit only the reply markup of messages sent by the bot or via the bot (for inline bots). On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
Use this method to edit text and game messages sent by the bot or via the bot (for inline bots). On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
Use this method to forward messages of any kind.
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.).
Use this method to get a list of administrators in a chat. On success, returns an Array of ChatMember objects that contains information about all chat administrators except other bots. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned.
Use this method to get information about a member of a chat. Returns a ChatMember object on success.
Use this method to get the number of members in a chat. Returns Int on success.
Use this method to receive incoming updates using long polling (wiki). An Array of Update objects is returned.
To get a list of profile pictures for a user. Returns a UserProfilePhotos object.
Send text messages. On success, the sent Message is returned.
Use this method to send photos.
Use this method to send .webp stickers.
Use this method to specify a url and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified url, containing a JSON-serialized Update. In case of an unsuccessful request, we will give up after a reasonable amount of attempts. Returns True on success.

Enums

Chat integer identifier or username
Kinds of reply markup.
Types of updates.

Traits

Telegram methods.

Type Definitions