pub struct BotInfo {
pub short_description: String,
pub description: String,
pub photo: Option<Photo>,
pub animation: Option<Animation>,
pub menu_button: Option<BotMenuButton>,
pub commands: Vec<BotCommand>,
pub default_group_administrator_rights: Option<ChatAdministratorRights>,
pub default_channel_administrator_rights: Option<ChatAdministratorRights>,
pub edit_commands_link: Option<InternalLinkType>,
pub edit_description_link: Option<InternalLinkType>,
pub edit_description_media_link: Option<InternalLinkType>,
pub edit_settings_link: Option<InternalLinkType>,
}Expand description
Contains information about a bot
Fields§
§short_description: StringThe text that is shown on the bot’s profile page and is sent together with the link when users share the bot
description: StringThe text shown in the chat with the bot if the chat is empty
photo: Option<Photo>Photo shown in the chat with the bot if the chat is empty; may be null
animation: Option<Animation>Animation shown in the chat with the bot if the chat is empty; may be null
Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown
commands: Vec<BotCommand>List of the bot commands
default_group_administrator_rights: Option<ChatAdministratorRights>Default administrator rights for adding the bot to basic group and supergroup chats; may be null
default_channel_administrator_rights: Option<ChatAdministratorRights>Default administrator rights for adding the bot to channels; may be null
edit_commands_link: Option<InternalLinkType>The internal link, which can be used to edit bot commands; may be null
edit_description_link: Option<InternalLinkType>The internal link, which can be used to edit bot description; may be null
edit_description_media_link: Option<InternalLinkType>The internal link, which can be used to edit the photo or animation shown in the chat with the bot if the chat is empty; may be null
edit_settings_link: Option<InternalLinkType>The internal link, which can be used to edit bot settings; may be null