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

Inheritance

Constructors

ForwardMessages({String? extra, int? client_id, int53? chat_id, int53? message_thread_id, int53? from_chat_id, vector<int53>? message_ids, MessageSendOptions? options, Bool? send_copy, Bool? remove_caption, Bool? only_preview})
ForwardMessages.fromMap(Map<String, dynamic> map)

Properties

chat_id int53?
Identifier of the chat to which to forward messages
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_chat_id int53?
Identifier of the chat from which to forward messages
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
message_ids vector<int53>?
Identifiers of the messages to forward. Message identifiers must be in a strictly increasing order. At most 100 messages can be forwarded simultaneously
getter/setter pair
message_thread_id int53?
If not 0, a message thread identifier in which the message will be sent; for forum threads only
getter/setter pair
only_preview Bool?
Pass true to get fake messages instead of actually forwarding them
getter/setter pair
options MessageSendOptions?
Options to be used to send the messages; pass null to use default options
getter/setter pair
remove_caption Bool?
Pass true to remove media captions of message copies. Ignored if send_copy is false
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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
getter/setter pair
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