Supergroup class

Implemented types

Constructors

Supergroup({int id, String username, int date, dynamic status, int memberCount, bool signMessages, 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. id Supergroup or channel identifier. username Username of the supergroup or channel; empty for private supergroups or channels. 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. status Status of the current user in the supergroup or channel. memberCount Member count; 0 if unknown. Currently it is guaranteed to be known only if the supergroup or channel was found through SearchPublicChats. signMessages True, if messages sent to the channel should contain information about the sender. This field is only applicable to channels. isChannel True, if the supergroup is a channel. isVerified True, if the supergroup or channel is verified. restrictionReason If non-empty, contains the reason why access to this supergroup or channel must be restricted. Format of the string is ". isScam True, if many users reported this supergroup as a scam
Supergroup.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

date int
read / write
extra ↔ dynamic
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
read / write
isChannel bool
read / write
isScam bool
read / write
isVerified bool
read / write
memberCount int
read / write
restrictionReason String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
signMessages bool
read / write
status ↔ dynamic
read / write
username String
read / write

Methods

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

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
"supergroup"