InternalLinkTypePublicChat class final

The link is a link to a chat by its username. Call searchPublicChat with the given chat username to process the link. If the chat is found, open its profile information screen or the chat itself. If draft text isn't empty and the chat is a private chat with a regular user, then put the draft text in the input field

Inheritance

Constructors

InternalLinkTypePublicChat({required String chatUsername, required String draftText, required bool openProfile, required String unpaidMessagesToken, dynamic extra, int? clientId})
The link is a link to a chat by its username. Call searchPublicChat with the given chat username to process the link. If the chat is found, open its profile information screen or the chat itself. If draft text isn't empty and the chat is a private chat with a regular user, then put the draft text in the input field
const
InternalLinkTypePublicChat.fromJson(Map<String, dynamic> json)
Parses a InternalLinkTypePublicChat from TDLib JSON.
factory

Properties

chatUsername → String
Username of the chat
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
draftText → String
Draft text for message to send in the chat
final
extra → dynamic
"@extra" of the request this object answers.
final
hashCode → int
The hash code for this object.
no setterinherited
openProfile → bool
True, if chat profile information screen must be opened; otherwise, the chat itself must be opened
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unpaidMessagesToken → String
Token, which allows the current user to send unpaid messages; may be empty if none. If the token isn't empty and the chat is a private chat with a regular user, then call applyUnpaidMessagesToken with the user and the token
final

Methods

copyWith({String? chatUsername, String? draftText, bool? openProfile, String? unpaidMessagesToken, dynamic extra, int? clientId}) → InternalLinkTypePublicChat
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
override
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.