ChatMemberStatusAdministrator class

Implemented types

Constructors

ChatMemberStatusAdministrator({bool canBeEdited, bool canChangeInfo, bool canPostMessages, bool canEditMessages, bool canDeleteMessages, bool canInviteUsers, bool canRestrictMembers, bool canPinMessages, bool canPromoteMembers})
The user is a member of a chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, and ban unprivileged members. In supergroups and channels, there are more detailed options for administrator privileges. canBeEdited True, if the current user can edit the administrator privileges for the called user. canChangeInfo True, if the administrator can change the chat title, photo, and other settings. canPostMessages True, if the administrator can create channel posts; applicable to channels only. canEditMessages True, if the administrator can edit messages of other users and pin messages; applicable to channels only. canDeleteMessages True, if the administrator can delete messages of other users. canInviteUsers True, if the administrator can invite new users to the chat. canRestrictMembers True, if the administrator can restrict, ban, or unban chat members. canPinMessages True, if the administrator can pin messages; applicable to groups only. canPromoteMembers 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 him
ChatMemberStatusAdministrator.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

canBeEdited bool
read / write
canChangeInfo bool
read / write
canDeleteMessages bool
read / write
canEditMessages bool
read / write
canInviteUsers bool
read / write
canPinMessages bool
read / write
canPostMessages bool
read / write
canPromoteMembers bool
read / write
canRestrictMembers bool
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
override
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
"chatMemberStatusAdministrator"