MessageLinkInfo class final
MessageLinkInfo (messageLinkInfo) - basic class
Contains information about a link to a message or a forum topic in a chat.
- isPublic: True, if the link is a public link for a message or a forum topic in a chat.
- chatId: If found, identifier of the chat to which the link points, 0 otherwise.
- messageThreadId: If found, identifier of the message thread in which to open the message, or a forum topic to open if the message is missing.
- message: If found, the linked message; may be null (optional).
- mediaTimestamp: 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 link preview.
- forAlbum: True, if the whole media album to which the message belongs is linked.
Constructors
- MessageLinkInfo({required bool isPublic, required int chatId, required int messageThreadId, Message? message, required int mediaTimestamp, required bool forAlbum, dynamic extra, int? clientId})
-
MessageLinkInfo (messageLinkInfo) - basic class
const
-
MessageLinkInfo.fromJson(Map<
String, dynamic> json) -
Parse from a json
factory
Properties
- chatId → int
-
If found, identifier of the chat to which the link points, 0 otherwise
final
- clientId → int?
-
clientId client identifier
final
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- extra → dynamic
-
extra callback sign
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 link 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 - 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