CreateChatInviteLink class

Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat.

Returns ChatInviteLink.

Inheritance
Available Extensions

Constructors

Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat

Properties

chat_id ↔ int
Chat identifier.
read / write
clientId ↔ int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
creates_join_request ↔ bool
Pass true if users joining the chat via the link need to be approved by chat administrators. In this case, member_limit must be 0.
read / write
expiration_date ↔ int
Point in time (Unix timestamp) when the link will expire; pass 0 if never.
read / write
extra ↔ int?
Request identifier. Must be non-zero.
read / writeoverride
hashCode → int
The hash code for this object.
read-onlyinherited
member_limit ↔ int
The maximum number of chat members that can join the chat via the link simultaneously; 0-99999; pass 0 if not limited.
read / write
name ↔ String
Invite link name; 0-32 characters.
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Object to Map serializer
override
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromMap(Map<String, dynamic>? _map) → CreateChatInviteLink?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"createChatInviteLink"