ForwardMessages class

Inheritance

Constructors

ForwardMessages({required int chatId, required int fromChatId, required List<int> messageIds, MessageSendOptions? options, required bool sendCopy, required bool removeCaption, required bool onlyPreview})
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
const

Properties

chatId int
chatId Identifier of the chat to which to forward messages
final
fromChatId int
fromChatId Identifier of the chat from which to forward messages
final
hashCode int
The hash code for this object.
no setterinherited
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
final
onlyPreview bool
onlyPreview If true, messages will not be forwarded and instead fake messages will be returned
final
options MessageSendOptions?
options Options to be used to send the messages; pass null to use default options
final
removeCaption bool
removeCaption If true, media caption of message copies will be removed. Ignored if send_copy is false
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendCopy bool
sendCopy If true, content of the messages will be copied without reference to the original sender. Always true if the messages are forwarded to a secret chat or are local
final

Methods

copyWith({int? chatId, int? fromChatId, List<int>? messageIds, MessageSendOptions? options, bool? sendCopy, bool? removeCaption, bool? onlyPreview}) ForwardMessages
getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String