Module telegram_bot_ars::types
source · Expand description
Telegram bot types.
Re-exports
pub use requests::*;
Modules
Telegram Bot API methods.
Structs
This object represents an audio file to be treated as music by the Telegram clients.
This object represents an incoming callback query from a callback button in an inline keyboard.
Unique identifier for CallbackQuery.
This object represents a channel.
Unique channel identifier.
This object represents a channel message.
Unique chat identifier.
Represents an invite link for a chat.
This object contains information about one member of the chat.
This object represents changes in the status of a chat member.
Represents a result of an inline query that was chosen by the user and sent to their chat partner.
This object represents a phone contact.
This object represents a general file (as opposed to photos, voice messages and audio files).
This object represents a file ready to be downloaded.
The file can be downloaded via the link
https://api.telegram.org/file/bot<token>/<file_path>
.
It is guaranteed that the link will be valid for at least 1 hour.Unique file identifier reference.
Upon receiving a message with this object, Telegram clients will
display a reply interface to the user (act as if the user has
selected the bot‘s message and tapped ’Reply’). This can be
extremely useful if you want to create user-friendly step-by-step
interfaces without having to sacrifice privacy mod
Information about the original message.
This object represents a group.
Unique group identifier.
This object represents one button of an inline keyboard.
This object represents an inline keyboard that appears right next to the message it belongs to.
This object represents one button of the reply keyboard.
This object represents a point on the map.
This object represents a chat message.
This object represents one special entity in a text message.
For example, hashtags, usernames, URLs, etc.
Unique message identifier inside a chat.
This object represents information about an order.
This object represents one size of a photo or a file / sticker thumbnail.
This object contains information about a poll.
This object represents an answer of a user in a non-anonymous poll.
This object contains information about one answer option in a poll.
This object contains information about an incoming pre-checkout query.
This object represents a chat, directly mapped.
This object represents a message. Directly mapped.
This object represents one special entity in a text message.
For example, hashtags, usernames, URLs, etc. Directly mapped.
Directly mapped telegram API response.
This object represents a custom keyboard with reply options.
Upon receiving a message with this object, Telegram clients will remove
the current custom keyboard and display the default letter-keyboard.
By default, custom keyboards are displayed until a new keyboard is sent
by a bot. An exception is made for one-time keyboards that are hidden
immediately after the user presses a button (see ReplyKeyboardMarkup).
Contains information about why a request was unsuccessful.
This object represents a shipping address.
This object contains information about an incoming shipping query.
This object represents a sticker.
This object represents a supergroup.
Unique supergroup identifier.
This object represents an incoming update.
This object represents a Telegram user or bot.
Unique user identifier.
This object represent a user’s profile pictures.
This object represents a venue.
This object represents a video file.
This object represents a video message (available in Telegram apps as of v.4.0).
This object represents a voice note.
Enums
This object represents a chat.
The member’s status in the chat
Unique identifier for the target chat or username of the
target channel (in the format @channelusername)
Information about the source of the original message.
This object represents an incoming inline query.
When the user sends an empty query, your bot could return some default or trending results.
This object represents the content of a message to be sent as a result of an inline query.
Telegram clients currently support the following 4 types:
This object represents a private, group or supergroup.
Kind of the entity.
Kind of the message.
This object represents a chat message or a channel post.
Strongly typed ParseMode.
See documentation for details.
Type of a poll.
All API responses are from this type. Mostly used internal.
Kind of the incoming update.
Traits
Get
CallbackQueryId
from the type reference.Get
ChatRef
from the type reference.Get
FileRef
from the type reference.Get
MessageId
from the type reference.Get source
ChatId
from the type reference.Get
UserId
from the type reference.