AddLocalMessage class final
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
-
- Object
- TdFunction<
Message> - AddLocalMessage
Constructors
- AddLocalMessage({required int chatId, required MessageSender senderId, MessageReplyTo? replyTo, required bool disableNotification, required InputMessageContent inputMessageContent})
-
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
const
Properties
- canBeCalledSynchronously → bool
-
Whether TDLib documents this request as callable through
td_execute.no setterinherited - chatId → int
-
Target chat
final
- disableNotification → bool
-
Pass true to disable notification for the message
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputMessageContent → InputMessageContent
-
The content of the message to be added
final
- replyTo → MessageReplyTo?
-
Identifier of the replied message or story; pass null if none
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- senderId → MessageSender
-
Identifier of the sender of the message
final
Methods
-
copyWith(
{int? chatId, MessageSender? senderId, MessageReplyTo? replyTo()?, bool? disableNotification, InputMessageContent? inputMessageContent}) → AddLocalMessage -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib function name, e.g.
getMe.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
Converts this request to TDLib JSON, tagged with
extraif given.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.