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: 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
Constructors
- Supergroup({String? extra, int? client_id, int53? id, Usernames? usernames, int32? date, ChatMemberStatus? status, int32? member_count, Bool? has_linked_chat, Bool? has_location, Bool? sign_messages, Bool? join_to_send_messages, Bool? join_by_request, Bool? is_slow_mode_enabled, Bool? is_channel, Bool? is_broadcast_group, Bool? is_forum, Bool? is_verified, string? restriction_reason, Bool? is_scam, Bool? is_fake})
-
Supergroup.fromMap(Map<
String, dynamic> map)
Properties
- client_id ↔ int?
-
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
- date ↔ int32?
-
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
getter/setter pair
- extra ↔ String?
-
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
- has_linked_chat ↔ Bool?
-
True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel
getter/setter pair
- has_location ↔ Bool?
-
True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int53?
-
Supergroup or channel identifier
getter/setter pair
- 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
getter/setter pair
- is_channel ↔ Bool?
-
True, if the supergroup is a channel
getter/setter pair
- is_fake ↔ Bool?
-
True, if many users reported this supergroup or channel as a fake account
getter/setter pair
- is_forum ↔ Bool?
-
True, if the supergroup must be shown as a forum by default
getter/setter pair
- is_scam ↔ Bool?
-
True, if many users reported this supergroup or channel as a scam
getter/setter pair
- is_slow_mode_enabled ↔ Bool?
-
True, if the slow mode is enabled in the supergroup
getter/setter pair
- is_verified ↔ Bool?
-
True, if the supergroup or channel is verified
getter/setter pair
- 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
getter/setter pair
- 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
getter/setter pair
- member_count ↔ int32?
-
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
getter/setter pair
- restriction_reason ↔ string?
-
If non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be restricted
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sign_messages ↔ Bool?
-
True, if messages sent to the channel need to contain information about the sender. This field is only applicable to channels
getter/setter pair
- status ↔ ChatMemberStatus?
-
Status of the current user in the supergroup or channel; custom title will always be empty
getter/setter pair
- tdType → String
-
JSON object type; maps to the field @type.
no setteroverride
- usernames ↔ Usernames?
-
Usernames of the supergroup or channel; may be null
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{dynamic skipNulls = true}) → String -
Serialize a Td instance to a JSON string.
If
skipNullsistruethe fields with null values are not serialized.inherited -
toMap(
{dynamic skipNulls = true}) → Map< String, dynamic> -
Create a Map from a Td instance.
override
-
toString(
{dynamic skipNulls = false}) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited