Module telegram_types::bot::methods[][src]

Request parameters types of Telegram bot methods.

Structs

DeleteMessage

Use this method to delete a message, including service messages, with the following limitations:

EditMessageCaption

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.

EditMessageReplyMarkup

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.

EditMessageText

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.

ForwardMessage

Use this method to forward messages of any kind. On success, the sent Message is returned.

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. 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.

GetChatMember

Use this method to get information about a member of a chat. Returns a ChatMember object on success.

GetChatMembersCount

Use this method to get the number of members in a chat. Returns Int on success.

GetUpdates

Use this method to receive incoming updates using long polling (wiki). An Array of [Update] objects is returned.

GetUserProfilePhotos

To get a list of profile pictures for a user. Returns a UserProfilePhotos object.

SendMessage

Send text messages. On success, the sent Message is returned.

SetWebhook

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

ChatTarget

Chat integer identifier or username

ReplyMarkup

Kinds of reply markup.