BotInfo class final

Contains information about a bot

Inheritance

Constructors

BotInfo({required String shortDescription, required String description, Photo? photo, Animation? animation, BotMenuButton? menuButton, required List<BotCommand> commands, ChatAdministratorRights? defaultGroupAdministratorRights, ChatAdministratorRights? defaultChannelAdministratorRights, InternalLinkType? editCommandsLink, InternalLinkType? editDescriptionLink, InternalLinkType? editDescriptionMediaLink, InternalLinkType? editSettingsLink})
Contains information about a bot
const
BotInfo.fromJson(Map<String, dynamic> json)
Parses a BotInfo from TDLib JSON.
factory

Properties

animation → Animation?
Animation shown in the chat with the bot if the chat is empty; may be null
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
commands → List<BotCommand>
List of the bot commands
final
defaultChannelAdministratorRights → ChatAdministratorRights?
Default administrator rights for adding the bot to channels; may be null
final
defaultGroupAdministratorRights → ChatAdministratorRights?
Default administrator rights for adding the bot to basic group and supergroup chats; may be null
final
description → String
The text shown in the chat with the bot if the chat is empty
final
The internal link, which can be used to edit bot commands; may be null
final
The internal link, which can be used to edit bot description; may be null
final
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
final
The internal link, which can be used to edit bot settings; may be null
final
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown
final
photo → Photo?
Photo shown in the chat with the bot if the chat is empty; may be null
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shortDescription → String
The text that is shown on the bot's profile page and is sent together with the link when users share the bot
final

Methods

copyWith({String? shortDescription, String? description, Photo? photo()?, Animation? animation()?, BotMenuButton? menuButton()?, List<BotCommand>? commands, ChatAdministratorRights? defaultGroupAdministratorRights()?, ChatAdministratorRights? defaultChannelAdministratorRights()?, InternalLinkType? editCommandsLink()?, InternalLinkType? editDescriptionLink()?, InternalLinkType? editDescriptionMediaLink()?, InternalLinkType? editSettingsLink()?}) → BotInfo
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.