Supergroup class final

Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos. Unlike supergroups, channels can have an unlimited number of subscribers

Inheritance

Constructors

Supergroup({required int id, Usernames? usernames, required int date, required ChatMemberStatus status, required int memberCount, required int boostLevel, required bool hasLinkedChat, required bool hasLocation, required bool signMessages, required bool joinToSendMessages, required bool joinByRequest, required bool isSlowModeEnabled, required bool isChannel, required bool isBroadcastGroup, required bool isForum, required bool isVerified, required String restrictionReason, required bool isScam, required bool isFake, required bool hasActiveStories, required bool hasUnreadActiveStories, dynamic extra, int? clientId})
Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos. Unlike supergroups, channels can have an unlimited number of subscribers
const
Supergroup.fromJson(Map<String, dynamic> json)
Parses a Supergroup from TDLib JSON.
factory

Properties

boostLevel → int
Approximate boost level for the chat
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
date → int
Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member
final
extra → dynamic
"@extra" of the request this object answers.
final
hasActiveStories → bool
True, if the supergroup or channel has non-expired stories available to the current user
final
hashCode → int
The hash code for this object.
no setterinherited
hasLinkedChat → bool
True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel
final
hasLocation → bool
True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup
final
hasUnreadActiveStories → bool
True, if the supergroup or channel has unread non-expired stories available to the current user
final
id → int
Supergroup or channel identifier
final
isBroadcastGroup → bool
True, if the supergroup is a broadcast group, i.e. only administrators can send messages and there is no limit on the number of members
final
isChannel → bool
True, if the supergroup is a channel
final
isFake → bool
True, if many users reported this supergroup or channel as a fake account
final
isForum → bool
True, if the supergroup is a forum with topics
final
isScam → bool
True, if many users reported this supergroup or channel as a scam
final
isSlowModeEnabled → bool
True, if the slow mode is enabled in the supergroup
final
isVerified → bool
True, if the supergroup or channel is verified
final
joinByRequest → bool
True, if all users directly joining the supergroup need to be approved by supergroup administrators. Always false for channels and supergroups without username, location, or a linked chat
final
joinToSendMessages → bool
True, if users need to join the supergroup before they can send messages. Always true for channels and non-discussion supergroups
final
memberCount → int
Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received through getChatSimilarChats, getChatsToSendStories, getCreatedPublicChats, getGroupsInCommon, getInactiveSupergroupChats, getSuitableDiscussionChats, getUserPrivacySettingRules, getVideoChatAvailableParticipants, searchChatsNearby, searchPublicChats, or in chatFolderInviteLinkInfo.missing_chat_ids, or for public chats in which where sent messages and posted stories from publicForwards, or for public chats in which where sent messages from getMessagePublicForwards response
final
restrictionReason → String
If non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be restricted
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signMessages → bool
True, if messages sent to the channel need to contain information about the sender. This field is only applicable to channels
final
status → ChatMemberStatus
Status of the current user in the supergroup or channel; custom title will always be empty
final
usernames → Usernames?
Usernames of the supergroup or channel; may be null
final

Methods

copyWith({int? id, Usernames? usernames()?, int? date, ChatMemberStatus? status, int? memberCount, int? boostLevel, bool? hasLinkedChat, bool? hasLocation, bool? signMessages, bool? joinToSendMessages, bool? joinByRequest, bool? isSlowModeEnabled, bool? isChannel, bool? isBroadcastGroup, bool? isForum, bool? isVerified, String? restrictionReason, bool? isScam, bool? isFake, bool? hasActiveStories, bool? hasUnreadActiveStories, dynamic extra, int? clientId}) → Supergroup
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.