InputChecklistTask constructor

const InputChecklistTask({
  1. @JsonKey(name: 'id') required int id,
  2. @JsonKey(name: 'text') required String text,
  3. @JsonKey(name: 'parse_mode') ParseMode? parseMode,
  4. @JsonKey(name: 'text_entities') List<MessageEntity>? textEntities,
})

Creates a new InputChecklistTask object.

Implementation

const factory InputChecklistTask({
  /// Unique identifier of the task; must be positive and unique among all
  /// task identifiers currently present in the checklist
  @JsonKey(name: 'id') required int id,

  /// Text of the task; 1-100 characters after entities parsing
  @JsonKey(name: 'text') required String text,

  /// Optional. Mode for parsing entities in the text. See formatting options
  /// for more details.
  @JsonKey(name: 'parse_mode') ParseMode? parseMode,

  /// Optional. List of special entities that appear in the text, which can be
  /// specified instead of parse_mode. Currently, only bold, italic,
  /// underline, strikethrough, spoiler, and custom_emoji entities are allowed.
  @JsonKey(name: 'text_entities') List<MessageEntity>? textEntities,
}) = _InputChecklistTask;