BotCommand constructor

const BotCommand({
  1. @JsonKey(name: 'command') required String command,
  2. @JsonKey(name: 'description') required String description,
})

Constructs a BotCommand object.

Implementation

const factory BotCommand({
  /// Text of the command, 1-32 characters. Can contain only lowercase English letters, digits and underscores.
  @JsonKey(name: 'command') required String command,

  /// Description of the command, 3-256 characters.
  @JsonKey(name: 'description') required String description,
}) = _BotCommand;