Module telegram_bot_fork::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.
This object contains information about one member of the chat.
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 one size of a photo or a file / sticker thumbnail.
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).
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 represents a venue.
This object represents a video file.
This object represents a voice note.
Enums
This object represents a chat.
Strongly typed ChatAction. Instead of passing a String to the
chat_action
method, this is used.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 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.
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.