GetChatHistory class
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
- Inheritance
-
- Object
- Td
- TdFunction
- GetChatHistory
Constructors
Properties
- chat_id ↔ int53?
-
Chat identifier
getter/setter pair
- client_id ↔ int?
-
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
- extra ↔ String?
-
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
- from_message_id ↔ int53?
-
Identifier of the message starting from which history must be fetched; use 0 to get results from the last message
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- limit ↔ int32?
-
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.
For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit
getter/setter pair
- offset ↔ int32?
-
Specify 0 to get results from exactly the from_message_id or a negative offset up to 99 to get additionally some newer messages
getter/setter pair
- only_local ↔ Bool?
-
Pass true to get only messages that are available without sending network requests
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tdReturnType → String
-
The return type as String for this function.
Currently not used.
no setteroverride
- tdType → String
-
JSON object type; maps to the field @type.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{dynamic skipNulls = true}) → String -
Serialize a Td instance to a JSON string.
If
skipNullsistruethe fields with null values are not serialized.inherited -
toMap(
{dynamic skipNulls = true}) → Map< String, dynamic> -
Create a Map from a Td instance.
override
-
toString(
{dynamic skipNulls = false}) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited