BotCommand constructor

const BotCommand({
  1. @JsonKey(name: 'key') required String key,
  2. @JsonKey(name: 'title') required String title,
  3. @JsonKey(name: 'args') required List<String> args,
})

Implementation

const factory BotCommand({
  /// What should be inserted to the chat.
  @JsonKey(name: 'key') required String key,

  /// What should be visible by user.
  @JsonKey(name: 'title') required String title,

  /// Command options, if any.
  @JsonKey(name: 'args') required List<String> args,
}) = _BotCommand;