GetChatHistory constructor

const GetChatHistory({
  1. required int chatId,
  2. required int fromMessageId,
  3. required int offset,
  4. required int limit,
  5. required bool onlyLocal,
})

Returns messages in a chat. The messages are returned in reverse chronological order (i.e., in order of decreasing message.id). For optimal performance, the number of returned messages is chosen by TDLib. This is an offline method if only_local is true

Implementation

const GetChatHistory({
  required this.chatId,
  required this.fromMessageId,
  required this.offset,
  required this.limit,
  required this.onlyLocal,
});