GetChatHistory class

Returns messages in a chat. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id)..

Returns Messages.

Inheritance
Available Extensions

Constructors

GetChatHistory({required int chat_id, required int from_message_id, required int offset, required int limit, required bool only_local, int? extra, int? clientId})
Returns messages in a chat. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id).

Properties

chat_id int
Chat identifier.
read / write
clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
extra int?
Request identifier. Must be non-zero.
read / writeoverride
from_message_id int
Identifier of the message starting from which history must be fetched; use 0 to get results from the last message.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
limit int
The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than or equal to -offset..
read / write
offset int
Specify 0 to get results from exactly the from_message_id or a negative offset up to 99 to get additionally some newer messages.
read / write
only_local bool
Pass true to get only messages that are available without sending network requests.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Object to Map serializer
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromMap(Map<String, dynamic>? _map) GetChatHistory?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"getChatHistory"