ForwardMessages class

Inheritance

Constructors

ForwardMessages({int chatId, int fromChatId, List<int> messageIds, bool disableNotification, bool fromBackground, bool asAlbum, 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. chatId Identifier of the chat to which to forward messages . fromChatId Identifier of the chat from which to forward messages . messageIds Identifiers of the messages to forward. disableNotification Pass true to disable notification for the message, doesn't work if messages are forwarded to a secret chat . fromBackground Pass true if the messages are sent from the background. asAlbum True, if the messages should be grouped into an album after forwarding. For this to work, no more than 10 messages may be forwarded, and all of them must be photo or video messages. 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. removeCaption True, if media captions of message copies needs to be removed. Ignored if send_copy is false
ForwardMessages.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

asAlbum bool
read / write
chatId int
read / write
constructor String
read / write, inherited
disableNotification bool
read / write
extra ↔ dynamic
read / write
fromBackground bool
read / write
fromChatId int
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
messageIds List<int>
read / write
removeCaption bool
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sendCopy bool
read / write

Methods

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

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
"forwardMessages"