GetMessageThreadHistory class

Returns messages in a message thread of a message. Can be used only if message.can_get_message_thread == true. Message thread of a channel message is in the channel's linked supergroup. 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

Inheritance

Constructors

GetMessageThreadHistory({String? extra, int? client_id, int53? chat_id, int53? message_id, int53? from_message_id, int32? offset, int32? limit})
GetMessageThreadHistory.fromMap(Map<String, dynamic> map)

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
message_id int53?
Message identifier, which thread history needs to be returned
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
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 skipNulls is true the 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