ChatAdministratorRights class

Represents the rights of an administrator in a chat.

Constructors

ChatAdministratorRights({required bool isAnonymous, required bool canManageChat, required bool canDeleteMessages, required bool canManageVideoChats, required bool canRestrictMembers, required bool canPromoteMembers, required bool canChangeInfo, required bool canInviteUsers, bool? canPostMessages, bool? canEditMessages, bool? canPinMessages, bool? canManageForum, bool? canPostStories, bool? canEditStories, bool? canDeleteStories})
Creates a new ChatAdministratorRights object.
const
ChatAdministratorRights.fromJson(Map<String, dynamic> json)
Creates a new ChatAdministratorRights object from json.
factory

Properties

canChangeInfo bool
True, if the user is allowed to change the chat title, photo and other settings
final
canDeleteMessages bool
True, if the administrator can delete messages of other users
final
canDeleteStories bool?
Optional. True, if the administrator can delete stories posted by other users
final
canEditMessages bool?
Optional. True, if the administrator can edit messages of other users and can pin messages; channels only
final
canEditStories bool?
Optional. True, if the administrator can edit stories posted by other users; channels only
final
canInviteUsers bool
True, if the user is allowed to invite new users to the chat
final
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
final
canManageForum bool?
Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only
final
canManageVideoChats bool
True, if the administrator can manage video chats
final
canPinMessages bool?
Optional. True, if the user is allowed to pin messages; groups and supergroups only
final
canPostMessages bool?
Optional. True, if the administrator can post in the channel; channels only
final
canPostStories bool?
Optional. True, if the administrator can post stories in the channel; channels only
final
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)
final
canRestrictMembers bool
True, if the administrator can restrict, ban or unban chat members
final
hashCode int
The hash code for this object.
no setterinherited
isAnonymous bool
True, if the user's presence in the chat is hidden
final
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<String, dynamic>
Converts a ChatAdministratorRights to a Map for JSON encoding.
toString() String
A string representation of this object.
inherited

Operators

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