ChatInviteLinkInfo class final

Contains information about a chat invite link

Inheritance

Constructors

ChatInviteLinkInfo({required int chatId, required int accessibleFor, required InviteLinkChatType type, required String title, ChatPhotoInfo? photo, required int accentColorId, required String description, required int memberCount, required List<int> memberUserIds, required bool createsJoinRequest, required bool isPublic, required bool isVerified, required bool isScam, required bool isFake, dynamic extra, int? clientId})
Contains information about a chat invite link
const
ChatInviteLinkInfo.fromJson(Map<String, dynamic> json)
Parses a ChatInviteLinkInfo from TDLib JSON.
factory

Properties

accentColorId → int
Identifier of the accent color for chat title and background of chat photo
final
accessibleFor → int
If non-zero, the amount of time for which read access to the chat will remain available, in seconds
final
chatId → int
Chat identifier of the invite link; 0 if the user has no access to the chat before joining
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
createsJoinRequest → bool
True, if the link only creates join request
final
description → String
Chat description
final
extra → dynamic
"@extra" of the request this object answers.
final
hashCode → int
The hash code for this object.
no setterinherited
isFake → bool
True, if many users reported this chat as a fake account
final
isPublic → bool
True, if the chat is a public supergroup or channel, i.e. it has a username or it is a location-based supergroup
final
isScam → bool
True, if many users reported this chat as a scam
final
isVerified → bool
True, if the chat is verified
final
memberCount → int
Number of members in the chat
final
memberUserIds → List<int>
User identifiers of some chat members that may be known to the current user
final
photo → ChatPhotoInfo?
Chat photo; may be null
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
Title of the chat
final
type → InviteLinkChatType
Type of the chat
final

Methods

copyWith({int? chatId, int? accessibleFor, InviteLinkChatType? type, String? title, ChatPhotoInfo? photo()?, int? accentColorId, String? description, int? memberCount, List<int>? memberUserIds, bool? createsJoinRequest, bool? isPublic, bool? isVerified, bool? isScam, bool? isFake, dynamic extra, int? clientId}) → ChatInviteLinkInfo
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to 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.