ChatAdministratorRights class

Describes rights of the administrator

Inheritance

Constructors

ChatAdministratorRights({String? extra, int? client_id, Bool? can_manage_chat, Bool? can_change_info, Bool? can_post_messages, Bool? can_edit_messages, Bool? can_delete_messages, Bool? can_invite_users, Bool? can_restrict_members, Bool? can_pin_messages, Bool? can_manage_topics, Bool? can_promote_members, Bool? can_manage_video_chats, Bool? is_anonymous})
ChatAdministratorRights.fromMap(Map<String, dynamic> map)

Properties

can_change_info Bool?
True, if the administrator can change the chat title, photo, and other settings
getter/setter pair
can_delete_messages Bool?
True, if the administrator can delete messages of other users
getter/setter pair
can_edit_messages Bool?
True, if the administrator can edit messages of other users and pin messages; applicable to channels only
getter/setter pair
can_invite_users Bool?
True, if the administrator can invite new users to the chat
getter/setter pair
can_manage_chat Bool?
True, if the administrator can get chat event log, get chat statistics, get message statistics in channels, get channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other privilege; applicable to supergroups and channels only
getter/setter pair
can_manage_topics Bool?
True, if the administrator can manage topics; applicable to forum supergroups only
getter/setter pair
can_manage_video_chats Bool?
True, if the administrator can manage video chats
getter/setter pair
can_pin_messages Bool?
True, if the administrator can pin messages; applicable to basic groups and supergroups only
getter/setter pair
can_post_messages Bool?
True, if the administrator can create channel posts; applicable to channels only
getter/setter pair
can_promote_members Bool?
True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them
getter/setter pair
can_restrict_members Bool?
True, if the administrator can restrict, ban, or unban chat members; always true for channels
getter/setter pair
client_id int?
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
extra String?
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
is_anonymous Bool?
True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tdType String
JSON object type; maps to the field @type.
no setteroverride

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 skipNulls is true the 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