ForwardMessages class

Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in message_ids. If a message can't be forwarded, null will be returned instead of the message.

Returns Messages.

Inheritance
Available Extensions

Constructors

ForwardMessages({required int chat_id, required int message_thread_id, required int from_chat_id, required List<int> message_ids, MessageSendOptions? options, required bool send_copy, required bool remove_caption, required bool only_preview, int? extra, int? clientId})
Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in message_ids. If a message can't be forwarded, null will be returned instead of the message

Properties

chat_id int
Identifier of the chat to which to forward messages.
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
from_chat_id int
Identifier of the chat from which to forward messages.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
message_ids List<int>
Identifiers of the messages to forward. Message identifiers must be in a strictly increasing order. At most 100 messages can be forwarded simultaneously.
read / write
message_thread_id int
If not 0, a message thread identifier in which the message will be sent; for forum threads only.
read / write
only_preview bool
Pass true to get fake messages instead of actually forwarding them.
read / write
options MessageSendOptions?
Options to be used to send the messages; pass null to use default options.
read / write
remove_caption bool
Pass true to remove media captions of message copies. Ignored if send_copy is false.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
send_copy bool
Pass true to copy content of the messages without reference to the original sender. Always true if the messages are forwarded to a secret chat or are local.
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) ForwardMessages?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"forwardMessages"