MessageLinkInfo class final
Contains information about a link to a message or a forum topic in a chat
Constructors
- MessageLinkInfo({required bool isPublic, required int chatId, required int messageThreadId, Message? message, required int mediaTimestamp, required bool forAlbum, dynamic extra, int? clientId})
-
Contains information about a link to a message or a forum topic in a chat
const
-
MessageLinkInfo.fromJson(Map<
String, dynamic> json) -
Parses a MessageLinkInfo from TDLib JSON.
factory
Properties
- chatId → int
-
If found, identifier of the chat to which the link points, 0 otherwise
final
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- forAlbum → bool
-
True, if the whole media album to which the message belongs is linked
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPublic → bool
-
True, if the link is a public link for a message or a forum topic in a chat
final
- mediaTimestamp → int
-
Timestamp from which the video/audio/video note/voice note/story playing must start, in seconds; 0 if not specified. The media can be in the message content or in its web page preview
final
- message → Message?
-
If found, the linked message; may be null
final
- messageThreadId → int
-
If found, identifier of the message thread in which to open the message, or a forum topic to open if the message is missing
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{bool? isPublic, int? chatId, int? messageThreadId, Message? message()?, int? mediaTimestamp, bool? forAlbum, dynamic extra, int? clientId}) → MessageLinkInfo -
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.