ChatInviteLink class

Represents an invite link for a chat.

Constructors

Creates a new ChatInviteLink object.
const
ChatInviteLink.fromJson(Map<String, dynamic> json)
Creates a new ChatInviteLink object from json.
factory

Properties

createsJoinRequest bool?
True, if users joining the chat via the link need to be approved by chat administrators
final
creator User?
Creator of the link
final
expireDate int?
Optional. Point in time (Unix timestamp) when the link will expire or has been expired
final
expireDateTime DateTime?
Returns the expiry date as DateTime object. Returns null if the link doesn't expire.
no setter
hashCode int
The hash code for this object.
no setterinherited
The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with “…”.
final
isPrimary bool?
True, if the link is primary
final
isRevoked bool?
True, if the link is revoked
final
memberLimit int?
Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
final
name String?
Optional. Invite link name
final
pendingMemberCount int?
Optional. Number of pending join requests created using this link
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Creates a new ChatInviteLink object from json.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited