ChatAdministratorRights class

Represents the rights of an administrator in a chat.

Constructors

ChatAdministratorRights(bool isAnonymous, bool canManageChat, bool canDeleteMessages, bool canManageVideoChats, bool canRestrictMembers, bool canPromoteMembers, bool canChangeInfo, bool canInviteUsers, bool? canPostMessages, bool? canEditMessages, bool? canPinMessages)
Basic constructor

Properties

canChangeInfo bool
True, if the user is allowed to change the chat title, photo and other settings
getter/setter pair
canDeleteMessages bool
True, if the administrator can delete messages of other users
getter/setter pair
canEditMessages bool?
Optional. True, if the administrator can edit messages of other users and can pin messages; channels only
getter/setter pair
canInviteUsers bool
True, if the user is allowed to invite new users to the chat
getter/setter pair
canManageChat bool
True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege
getter/setter pair
canManageVideoChats bool
True, if the administrator can manage video chats
getter/setter pair
canPinMessages bool?
Optional. True, if the user is allowed to pin messages; groups and supergroups only
getter/setter pair
canPostMessages bool?
Optional. True, if the administrator can post in the channel; channels only
getter/setter pair
canPromoteMembers bool
True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user)
getter/setter pair
canRestrictMembers bool
True, if the administrator can restrict, ban or unban chat members
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isAnonymous bool
True, if the user's presence in the chat is hidden
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map
Creates a json from the object
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromJson(Map<String, dynamic> json) ChatAdministratorRights
Creates a object from a json