ForwardMessages class



ForwardMessages({int chatId, int fromChatId, List<int> messageIds, MessageSendOptions options, bool sendCopy, bool removeCaption})
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
ForwardMessages.fromJson(Map<String, dynamic> json)
Parse from a json


chatId int
chatId Identifier of the chat to which to forward messages
read / write
extra ↔ dynamic
callback sign
read / write
fromChatId int
fromChatId Identifier of the chat from which to forward messages
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
messageIds List<int>
messageIds 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
options MessageSendOptions
options Options to be used to send the messages
read / write
removeCaption bool
removeCaption True, if media caption of message copies needs to be removed. Ignored if send_copy is false
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sendCopy bool
sendCopy True, if content of the messages needs to be copied without links to the original messages. Always true if the messages are forwarded to a secret chat
read / write


getConstructor() String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]


CONSTRUCTOR → const String