ChatInviteLink class final
Contains a chat invite link
Constructors
- ChatInviteLink({required String inviteLink, required String name, required int creatorUserId, required int date, required int editDate, required int expirationDate, required int memberLimit, required int memberCount, required int pendingJoinRequestCount, required bool createsJoinRequest, required bool isPrimary, required bool isRevoked, dynamic extra, int? clientId})
-
Contains a chat invite link
const
-
ChatInviteLink.fromJson(Map<
String, dynamic> json) -
Parses a ChatInviteLink from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- createsJoinRequest → bool
-
True, if the link only creates join request. If true, total number of joining members will be unlimited
final
- creatorUserId → int
-
User identifier of an administrator created the link
final
- date → int
-
Point in time (Unix timestamp) when the link was created
final
- editDate → int
-
Point in time (Unix timestamp) when the link was last edited; 0 if never or unknown
final
- expirationDate → int
-
Point in time (Unix timestamp) when the link will expire; 0 if never
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inviteLink → String
-
Chat invite link
final
- isPrimary → bool
-
True, if the link is primary. Primary invite link can't have name, expiration date, or usage limit. There is exactly one primary invite link for each administrator with can_invite_users right at a given time
final
- isRevoked → bool
-
True, if the link was revoked
final
- memberCount → int
-
Number of chat members, which joined the chat using the link
final
- memberLimit → int
-
The maximum number of members, which can join the chat using the link simultaneously; 0 if not limited. Always 0 if the link requires approval
final
- name → String
-
Name of the link
final
- pendingJoinRequestCount → int
-
Number of pending join requests created using this link
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? inviteLink, String? name, int? creatorUserId, int? date, int? editDate, int? expirationDate, int? memberLimit, int? memberCount, int? pendingJoinRequestCount, bool? createsJoinRequest, bool? isPrimary, bool? isRevoked, dynamic extra, int? clientId}) → ChatInviteLink -
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.