ForwardSource class final
ForwardSource (forwardSource) - basic class
Contains information about the last message from which a new message was forwarded last time.
- chatId: Identifier of the chat to which the message that was forwarded belonged; may be 0 if unknown.
- messageId: Identifier of the message; may be 0 if unknown.
- senderId: Identifier of the sender of the message; may be null if unknown or the new message was forwarded not to Saved Messages (optional).
- senderName: Name of the sender of the message if the sender is hidden by their privacy settings.
- date: Point in time (Unix timestamp) when the message is sent; 0 if unknown.
- isOutgoing: True, if the message that was forwarded is outgoing; always false if sender is unknown.
Constructors
- ForwardSource({required int chatId, required int messageId, MessageSender? senderId, required String senderName, required int date, required bool isOutgoing})
-
ForwardSource (forwardSource) - basic class
const
-
ForwardSource.fromJson(Map<
String, dynamic> json) -
Parse from a json
factory
Properties
- chatId → int
-
Identifier of the chat to which the message that was forwarded belonged; may be 0 if unknown
final
- clientId → int?
-
Client ID, from which this object was received
no setterinherited
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- date → int
-
Point in time (Unix timestamp) when the message is sent; 0 if unknown
final
- extra → dynamic
-
A sign from TDLib update
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isOutgoing → bool
-
True, if the message that was forwarded is outgoing; always false if sender is unknown
final
- messageId → int
-
Identifier of the message; may be 0 if unknown
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- senderId → MessageSender?
-
Identifier of the sender of the message; may be null if unknown or the new message was forwarded not to Saved Messages
final
- senderName → String
-
Name of the sender of the message if the sender is hidden by their privacy settings
final
Methods
-
copyWith(
{int? chatId, int? messageId, MessageSender? senderId, String? senderName, int? date, bool? isOutgoing}) → ForwardSource - Copy model with modified properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Convert model to TDLib JSON format
override
-
toString(
) → String -
Convert model to TDLib JSON format, encoded into String.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultObjectId → const String
- TDLib object type