Supergroup class



Supergroup({int id, String username, int date, ChatMemberStatus status, int memberCount, bool hasLinkedChat, bool hasLocation, bool signMessages, bool isSlowModeEnabled, bool isChannel, bool isVerified, String restrictionReason, bool isScam})
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
Supergroup.fromJson(Map<String, dynamic> json)
Parse from a json


date int
date 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
read / write
extra ↔ dynamic
callback sign
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
hasLinkedChat bool
hasLinkedChat True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel
read / write
hasLocation bool
hasLocation True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup
read / write
id int
id Supergroup or channel identifier
read / write
isChannel bool
isChannel True, if the supergroup is a channel
read / write
isScam bool
isScam True, if many users reported this supergroup as a scam
read / write
isSlowModeEnabled bool
isSlowModeEnabled True, if the slow mode is enabled in the supergroup
read / write
isVerified bool
isVerified True, if the supergroup or channel is verified
read / write
memberCount int
memberCount 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 searchPublicChats, searchChatsNearby, getInactiveSupergroupChats, getSuitableDiscussionChats, getGroupsInCommon, or getUserPrivacySettingRules
read / write
restrictionReason String
restrictionReason If non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be restricted
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
signMessages bool
signMessages True, if messages sent to the channel should contain information about the sender. This field is only applicable to channels
read / write
status ChatMemberStatus
status Status of the current user in the supergroup or channel; custom title will be always empty
read / write
username String
username Username of the supergroup or channel; empty for private supergroups or channels
read / write


getConstructor() String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]


CONSTRUCTOR → const String