AddLocalMessage class
Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message.
Returns Message.
- Inheritance
- Available Extensions
Constructors
- AddLocalMessage({required int chat_id, required MessageSender sender_id, MessageReplyTo? reply_to, required bool disable_notification, required InputMessageContent input_message_content, int? extra, int? clientId})
- Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message
Properties
- chat_id ↔ int
-
Target chat.
read / write
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- disable_notification ↔ bool
-
Pass true to disable notification for the message.
read / write
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- input_message_content ↔ InputMessageContent
-
The content of the message to be added.
read / write
- reply_to ↔ MessageReplyTo?
-
Identifier of the replied message or story; pass null if none.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- sender_id ↔ MessageSender
-
Identifier of the sender of the message.
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) → AddLocalMessage? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"addLocalMessage"