Supergroup class
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:.
- Inheritance
- Available Extensions
Constructors
- Supergroup({required int id, Usernames? usernames, required int date, required ChatMemberStatus status, required int member_count, required bool has_linked_chat, required bool has_location, required bool sign_messages, required bool join_to_send_messages, required bool join_by_request, required bool is_slow_mode_enabled, required bool is_channel, required bool is_broadcast_group, required bool is_forum, required bool is_verified, required String restriction_reason, required bool is_scam, required bool is_fake, required bool has_active_stories, required bool has_unread_active_stories, int? 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:
Properties
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- 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.
read / write
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- has_active_stories ↔ bool
-
True, if the channel has non-expired stories available to the current user.
read / write
- has_linked_chat ↔ bool
-
True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel.
read / write
- has_location ↔ bool
-
True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup.
read / write
- has_unread_active_stories ↔ bool
-
True, if the channel has unread non-expired stories available to the current user.
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- id ↔ int
-
Supergroup or channel identifier.
read / write
- is_broadcast_group ↔ 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.
read / write
- is_channel ↔ bool
-
True, if the supergroup is a channel.
read / write
- is_fake ↔ bool
-
True, if many users reported this supergroup or channel as a fake account.
read / write
- is_forum ↔ bool
-
True, if the supergroup must be shown as a forum by default.
read / write
- is_scam ↔ bool
-
True, if many users reported this supergroup or channel as a scam.
read / write
- is_slow_mode_enabled ↔ bool
-
True, if the slow mode is enabled in the supergroup.
read / write
- is_verified ↔ bool
-
True, if the supergroup or channel is verified.
read / write
- join_by_request ↔ 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.
read / write
- join_to_send_messages ↔ bool
-
True, if users need to join the supergroup before they can send messages. Always true for channels and non-discussion supergroups.
read / write
- member_count ↔ 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.
read / write
- restriction_reason ↔ String
-
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-onlyinherited
- sign_messages ↔ bool
-
True, if messages sent to the channel need to contain information about the sender. This field is only applicable to channels.
read / write
- status ↔ ChatMemberStatus
-
Status of the current user in the supergroup or channel; custom title will always be empty.
read / write
- usernames ↔ Usernames?
-
Usernames of the supergroup or channel; may be null.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Object to Map serializer
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> ? _map) → Supergroup? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"supergroup"