ChatInviteLinkInfo class final
Contains information about a chat invite link
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, ChatInviteLinkSubscriptionInfo? subscriptionInfo, required bool createsJoinRequest, required bool isPublic, VerificationStatus? verificationStatus, 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
- 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
- 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
- subscriptionInfo → ChatInviteLinkSubscriptionInfo?
-
Information about subscription plan that must be paid by the user to use the link; may be null if the link doesn't require subscription
final
- title → String
-
Title of the chat
final
- type → InviteLinkChatType
-
Type of the chat
final
- verificationStatus → VerificationStatus?
-
Information about verification status of the chat; may be null if none
final
Methods
-
copyWith(
{int? chatId, int? accessibleFor, InviteLinkChatType? type, String? title, ChatPhotoInfo? photo()?, int? accentColorId, String? description, int? memberCount, List< int> ? memberUserIds, ChatInviteLinkSubscriptionInfo? subscriptionInfo()?, bool? createsJoinRequest, bool? isPublic, VerificationStatus? verificationStatus()?, dynamic extra, int? clientId}) → ChatInviteLinkInfo -
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.