forwards property

List<MessageModel>? get forwards

the archive of forwarded messages (if any). The maximum number of elements is 100. The maximum nesting depth for forwarded messages is 45, the total maximum number in the chain, taking into account nesting, is 500.

Implementation

List<MessageModel>? get forwards => (message['fwd_messages'] as List?)
    ?.map((e) => MessageModel((e as Map).cast<String, dynamic>()))
    .toList();