ForwardSource class final
Contains information about the last message from which a new message was forwarded last time
Constructors
- ForwardSource({required int chatId, required int messageId, MessageSender? senderId, required String senderName, required int date, required bool isOutgoing})
-
Contains information about the last message from which a new message was forwarded last time
const
-
ForwardSource.fromJson(Map<
String, dynamic> json) -
Parses a ForwardSource from TDLib 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?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- date → int
-
Point in time (Unix timestamp) when the message is sent; 0 if unknown
final
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
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 -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.