Interface BotInfo

Contains information about a bot.

Properties

@type: "botInfo"
affiliate_program: AffiliateProgramInfo

Information about the affiliate program of the bot; may be null if none.

animation: Animation

Animation shown in the chat with the bot if the chat is empty; may be null.

can_get_revenue_statistics?: boolean

True, if the bot's revenue statistics are available to the current user.

can_manage_emoji_status?: boolean

True, if the bot can manage emoji status of the current user.

commands: BotCommand[]

List of the bot commands.

default_channel_administrator_rights: ChatAdministratorRights

Default administrator rights for adding the bot to channels; may be null.

default_group_administrator_rights: ChatAdministratorRights

Default administrator rights for adding the bot to basic group and supergroup chats; may be null.

description: string

Contains information about a bot.

edit_commands_link: InternalLinkType

The internal link, which can be used to edit bot commands; may be null.

edit_description_link: InternalLinkType

The internal link, which can be used to edit bot description; may be null.

edit_description_media_link: 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: InternalLinkType

The internal link, which can be used to edit bot settings; may be null.

has_media_previews?: boolean

True, if the bot has media previews.

menu_button: BotMenuButton

Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown.

photo: Photo

Photo shown in the chat with the bot if the chat is empty; may be null.

privacy_policy_url: string

The HTTP link to the privacy policy of the bot. If empty, then /privacy command must be used if supported by the bot. If the command isn't supported, then https://telegram.org/privacy-tpa must be opened.

short_description: string

The text that is shown on the bot's profile page and is sent together with the link when users share the bot.

web_app_background_dark_color: number

Default dark background color for bot Web Apps; -1 if not specified.

web_app_background_light_color: number

Default light background color for bot Web Apps; -1 if not specified.

web_app_header_dark_color: number

Default dark header color for bot Web Apps; -1 if not specified.

web_app_header_light_color: number

Default light header color for bot Web Apps; -1 if not specified.