BotInfo class

Contains information about a bot.

Inheritance
Available Extensions

Constructors

BotInfo({required String short_description, required String description, Photo? photo, Animation? animation, BotMenuButton? menu_button, required List<BotCommand> commands, ChatAdministratorRights? default_group_administrator_rights, ChatAdministratorRights? default_channel_administrator_rights, InternalLinkType? edit_commands_link, InternalLinkType? edit_description_link, InternalLinkType? edit_description_media_link, InternalLinkType? edit_settings_link, int? extra, int? clientId})
Contains information about a bot

Properties

animation Animation?
Animation shown in the chat with the bot if the chat is empty; may be null.
read / write
clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
commands List<BotCommand>
List of the bot commands.
read / write
default_channel_administrator_rights ChatAdministratorRights?
Default administrator rights for adding the bot to channels; may be null.
read / write
default_group_administrator_rights ChatAdministratorRights?
Default administrator rights for adding the bot to basic group and supergroup chats; may be null.
read / write
description String
The text shown in the chat with the bot if the chat is empty.
read / write
The internal link, which can be used to edit bot commands; may be null.
read / write
The internal link, which can be used to edit bot description; may be null.
read / write
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.
read / write
The internal link, which can be used to edit bot settings; may be null.
read / write
extra int?
Request identifier. Must be non-zero.
read / writeoverride
hashCode int
The hash code for this object.
read-onlyinherited
Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown.
read / write
photo Photo?
Photo shown in the chat with the bot if the chat is empty; may be null.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
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.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Object to Map serializer
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromMap(Map<String, dynamic>? _map) BotInfo?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"botInfo"