ChatAdministratorRights class

Inheritance

Constructors

ChatAdministratorRights({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 canManageTopics, required bool canPromoteMembers, required bool canManageVideoChats, required bool isAnonymous})
Describes rights of the administrator
const
ChatAdministratorRights.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

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
canManageTopics bool
canManageTopics True, if the administrator can manage topics; applicable to forum supergroups 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
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({bool? canManageChat, bool? canChangeInfo, bool? canPostMessages, bool? canEditMessages, bool? canDeleteMessages, bool? canInviteUsers, bool? canRestrictMembers, bool? canPinMessages, bool? canManageTopics, bool? canPromoteMembers, bool? canManageVideoChats, bool? isAnonymous}) ChatAdministratorRights
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