ChatAdministratorRights class
Describes rights of the administrator.
- Inheritance
- Available Extensions
Constructors
- ChatAdministratorRights({required bool can_manage_chat, required bool can_change_info, required bool can_post_messages, required bool can_edit_messages, required bool can_delete_messages, required bool can_invite_users, required bool can_restrict_members, required bool can_pin_messages, required bool can_manage_topics, required bool can_promote_members, required bool can_manage_video_chats, required bool can_post_stories, required bool can_edit_stories, required bool can_delete_stories, required bool is_anonymous, int? extra, int? clientId})
- Describes rights of the administrator
Properties
- can_change_info ↔ bool
-
True, if the administrator can change the chat title, photo, and other settings.
read / write
- can_delete_messages ↔ bool
-
True, if the administrator can delete messages of other users.
read / write
- can_delete_stories ↔ bool
-
True, if the administrator can delete stories posted by other users; applicable to channels only.
read / write
- can_edit_messages ↔ bool
-
True, if the administrator can edit messages of other users and pin messages; applicable to channels only.
read / write
- can_edit_stories ↔ bool
-
True, if the administrator can edit stories posted by other users, pin stories and access story archive; applicable to channels only.
read / write
- can_invite_users ↔ bool
-
True, if the administrator can invite new users to the chat.
read / write
- can_manage_chat ↔ bool
-
True, if the administrator can get chat event log, get chat statistics, get chat boosts in channels, get message statistics in channels, get channel members,.
read / write
- can_manage_topics ↔ bool
-
True, if the administrator can manage topics; applicable to forum supergroups only.
read / write
- can_manage_video_chats ↔ bool
-
True, if the administrator can manage video chats.
read / write
- can_pin_messages ↔ bool
-
True, if the administrator can pin messages; applicable to basic groups and supergroups only.
read / write
- can_post_messages ↔ bool
-
True, if the administrator can create channel posts; applicable to channels only.
read / write
- can_post_stories ↔ bool
-
True, if the administrator can create new channel stories, or edit and delete posted stories; applicable to channels only.
read / write
- 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.
read / write
- can_restrict_members ↔ bool
-
True, if the administrator can restrict, ban, or unban chat members; always true for channels.
read / write
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- is_anonymous ↔ bool
-
True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
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) → ChatAdministratorRights? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"chatAdministratorRights"