ChatMemberStatusAdministrator class

Inheritance

Constructors

ChatMemberStatusAdministrator({String customTitle, bool canBeEdited, bool canChangeInfo, bool canPostMessages, bool canEditMessages, bool canDeleteMessages, bool canInviteUsers, bool canRestrictMembers, bool canPinMessages, bool canPromoteMembers, bool canManageVoiceChats, bool isAnonymous})
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, ban unprivileged members, and manage voice chats. In supergroups and channels, there are more detailed options for administrator privileges
ChatMemberStatusAdministrator.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

canBeEdited bool
canBeEdited True, if the current user can edit the administrator privileges for the called user
read / write
canChangeInfo bool
canChangeInfo True, if the administrator can change the chat title, photo, and other settings
read / write
canDeleteMessages bool
canDeleteMessages True, if the administrator can delete messages of other users
read / write
canEditMessages bool
canEditMessages True, if the administrator can edit messages of other users and pin messages; applicable to channels only
read / write
canInviteUsers bool
canInviteUsers True, if the administrator can invite new users to the chat
read / write
canManageVoiceChats bool
canManageVoiceChats True, if the administrator can manage voice chats; applicable to groups only
read / write
canPinMessages bool
canPinMessages True, if the administrator can pin messages; applicable to groups only
read / write
canPostMessages bool
canPostMessages True, if the administrator can create channel posts; applicable to channels only
read / write
canPromoteMembers bool
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 them
read / write
canRestrictMembers bool
canRestrictMembers True, if the administrator can restrict, ban, or unban chat members
read / write
customTitle String
customTitle A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
isAnonymous bool
isAnonymous 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-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
A string representation of this object. [...]
inherited

Operators

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

Constants

CONSTRUCTOR → const String
'chatMemberStatusAdministrator'