BotInfo class final

Contains information about a bot

Inheritance

Constructors

BotInfo({required String shortDescription, required String description, Photo? photo, Animation? animation, required int managerBotUserId, BotMenuButton? menuButton, required List<BotCommand> commands, required String privacyPolicyUrl, ChatAdministratorRights? defaultGroupAdministratorRights, ChatAdministratorRights? defaultChannelAdministratorRights, AffiliateProgramInfo? affiliateProgram, required int webAppBackgroundLightColor, required int webAppBackgroundDarkColor, required int webAppHeaderLightColor, required int webAppHeaderDarkColor, BotVerificationParameters? verificationParameters, required bool canGetRevenueStatistics, required bool canManageEmojiStatus, required bool hasMediaPreviews, 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

affiliateProgram → AffiliateProgramInfo?
Information about the affiliate program of the bot; may be null if none
final
animation → Animation?
Animation shown in the chat with the bot if the chat is empty; may be null
final
canGetRevenueStatistics → bool
True, if the bot's revenue statistics are available to the current user
final
canManageEmojiStatus → bool
True, if the bot can manage emoji status of the current user
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
hasMediaPreviews → bool
True, if the bot has media previews
final
managerBotUserId → int
Identifier of the bot, which manages the bot; 0 if none or unknown; for owner of the bot only
final
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
privacyPolicyUrl → 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
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
verificationParameters → BotVerificationParameters?
Parameters of the verification that can be provided by the bot; may be null if none or the current user isn't the owner of the bot
final
webAppBackgroundDarkColor → int
Default dark background color for bot Web Apps; -1 if not specified
final
webAppBackgroundLightColor → int
Default light background color for bot Web Apps; -1 if not specified
final
webAppHeaderDarkColor → int
Default dark header color for bot Web Apps; -1 if not specified
final
webAppHeaderLightColor → int
Default light header color for bot Web Apps; -1 if not specified
final

Methods

copyWith({String? shortDescription, String? description, Photo? photo()?, Animation? animation()?, int? managerBotUserId, BotMenuButton? menuButton()?, List<BotCommand>? commands, String? privacyPolicyUrl, ChatAdministratorRights? defaultGroupAdministratorRights()?, ChatAdministratorRights? defaultChannelAdministratorRights()?, AffiliateProgramInfo? affiliateProgram()?, int? webAppBackgroundLightColor, int? webAppBackgroundDarkColor, int? webAppHeaderLightColor, int? webAppHeaderDarkColor, BotVerificationParameters? verificationParameters()?, bool? canGetRevenueStatistics, bool? canManageEmojiStatus, bool? hasMediaPreviews, 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.