ChatMemberStatusAdministrator class

Inheritance

Constructors

ChatMemberStatusAdministrator({required String customTitle, required bool canBeEdited, required bool canManageChat, required bool canChangeInfo, required bool canPostMessages, required bool canEditMessages, required bool canDeleteMessages, required bool canInviteUsers, required bool canRestrictMembers, required bool canPinMessages, required bool canPromoteMembers, required bool canManageVideoChats, required bool isAnonymous})
The user is a member of the 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 video chats. In supergroups and channels, there are more detailed options for administrator privileges
const
ChatMemberStatusAdministrator.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

canBeEdited bool
canBeEdited True, if the current user can edit the administrator privileges for the called user
final
canChangeInfo bool
canChangeInfo True, if the administrator can change the chat title, photo, and other settings
final
canDeleteMessages bool
canDeleteMessages True, if the administrator can delete messages of other users
final
canEditMessages bool
canEditMessages True, if the administrator can edit messages of other users and pin messages; applicable to channels only
final
canInviteUsers bool
canInviteUsers True, if the administrator can invite new users to the chat
final
canManageChat bool
canManageChat 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
final
canManageVideoChats bool
canManageVideoChats True, if the administrator can manage video chats
final
canPinMessages bool
canPinMessages True, if the administrator can pin messages; applicable to basic groups and supergroups only
final
canPostMessages bool
canPostMessages True, if the administrator can create channel posts; applicable to channels only
final
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
final
canRestrictMembers bool
canRestrictMembers True, if the administrator can restrict, ban, or unban chat members; always true for channels
final
clientId int?
client identifier
no setterinherited
customTitle String
customTitle A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only
final
extra → dynamic
callback sign
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isAnonymous bool
isAnonymous True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? customTitle, bool? canBeEdited, bool? canManageChat, bool? canChangeInfo, bool? canPostMessages, bool? canEditMessages, bool? canDeleteMessages, bool? canInviteUsers, bool? canRestrictMembers, bool? canPinMessages, bool? canPromoteMembers, bool? canManageVideoChats, bool? isAnonymous}) ChatMemberStatusAdministrator
override
getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) 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