TextQuote constructor

const TextQuote({
  1. @JsonKey(name: 'text') required String text,
  2. @JsonKey(name: 'entities') List<MessageEntity>? entities,
  3. @JsonKey(name: 'position') required int position,
  4. @JsonKey(name: 'is_manual') bool? isManual,
})

Constructs a TextQuote.

Implementation

const factory TextQuote({
  /// Text of the quoted part of a message that is replied to by the given
  /// message.
  @JsonKey(name: 'text') required String text,

  /// Special entities that appear in the quote. Currently, only bold, italic,
  /// underline, strikethrough, spoiler, and custom_emoji entities are kept in
  /// quotes.
  @JsonKey(name: 'entities') List<MessageEntity>? entities,

  /// Approximate quote position in the original message in UTF-16 code units
  /// as specified by the sender.
  @JsonKey(name: 'position') required int position,

  /// True, if the quote was chosen manually by the message sender. Otherwise,
  /// the quote was added automatically by the server.
  @JsonKey(name: 'is_manual') bool? isManual,
}) = _TextQuote;