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 a 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 request if only_local is true

Implementation

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