ViewMessages class
Informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen (excluding the button)..
Returns Ok.
- Inheritance
- Available Extensions
Constructors
-
ViewMessages({required int chat_id, required List<
int> message_ids, MessageSource? source, required bool force_read, int? extra, int? clientId}) - Informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen (excluding the button).
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
- force_read ↔ bool
-
Pass true to mark as read the specified messages even the chat is closed.
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
-
message_ids
↔ List<
int> -
The identifiers of the messages being viewed.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- source ↔ MessageSource?
-
Source of the message view; pass null to guess the source based on chat open state.
read / write
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) → ViewMessages? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"viewMessages"