BotInfo class final

BotInfo (botInfo) - basic class

Contains information about a bot.

  • shortDescription: The text that is shown on the bot's profile page and is sent together with the link when users share the bot.
  • description: The text shown in the chat with the bot if the chat is empty.
  • photo: Photo shown in the chat with the bot if the chat is empty; may be null (optional).
  • animation: Animation shown in the chat with the bot if the chat is empty; may be null (optional).
  • menuButton: Information about a button to show instead of the bot commands menu button; may be null if ordinary bot commands menu must be shown (optional).
  • commands: List of the bot commands.
  • privacyPolicyUrl: 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.
  • defaultGroupAdministratorRights: Default administrator rights for adding the bot to basic group and supergroup chats; may be null (optional).
  • defaultChannelAdministratorRights: Default administrator rights for adding the bot to channels; may be null (optional).
  • hasMediaPreviews: True, if the bot has media previews.
  • editCommandsLink: The internal link, which can be used to edit bot commands; may be null (optional).
  • editDescriptionLink: The internal link, which can be used to edit bot description; may be null (optional).
  • editDescriptionMediaLink: 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 (optional).
  • editSettingsLink: The internal link, which can be used to edit bot settings; may be null (optional).
Inheritance

Constructors

BotInfo({required String shortDescription, required String description, Photo? photo, Animation? animation, BotMenuButton? menuButton, required List<BotCommand> commands, required String privacyPolicyUrl, ChatAdministratorRights? defaultGroupAdministratorRights, ChatAdministratorRights? defaultChannelAdministratorRights, required bool hasMediaPreviews, InternalLinkType? editCommandsLink, InternalLinkType? editDescriptionLink, InternalLinkType? editDescriptionMediaLink, InternalLinkType? editSettingsLink})
BotInfo (botInfo) - basic class
const
BotInfo.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

animation → Animation?
Animation shown in the chat with the bot if the chat is empty; may be null
final
clientId → int?
Client ID, from which this object was received
no setterinherited
commands → List<BotCommand>
List of the bot commands
final
currentObjectId → String
TDLib object type for current class instance
no setteroverride
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
A sign from TDLib update
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
hasMediaPreviews → bool
True, if the bot has media previews
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

Methods

copyWith({String? shortDescription, String? description, Photo? photo, Animation? animation, BotMenuButton? menuButton, List<BotCommand>? commands, String? privacyPolicyUrl, ChatAdministratorRights? defaultGroupAdministratorRights, ChatAdministratorRights? defaultChannelAdministratorRights, bool? hasMediaPreviews, InternalLinkType? editCommandsLink, InternalLinkType? editDescriptionLink, InternalLinkType? editDescriptionMediaLink, InternalLinkType? editSettingsLink}) → BotInfo
Copy model with modified properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Convert model to TDLib JSON format
override
toString() → String
Convert model to TDLib JSON format, encoded into String.
override

Operators

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

Constants

defaultObjectId → const String
TDLib object type