ChatAdministratorRights class final

Describes rights of the administrator

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 canPostStories, required bool canEditStories, required bool canDeleteStories, required bool isAnonymous})
Describes rights of the administrator
const
ChatAdministratorRights.fromJson(Map<String, dynamic> json)
Parses a ChatAdministratorRights from TDLib JSON.
factory

Properties

canChangeInfo → bool
True, if the administrator can change the chat title, photo, and other settings
final
canDeleteMessages → bool
True, if the administrator can delete messages of other users
final
canDeleteStories → bool
True, if the administrator can delete stories posted by other users; applicable to channels only
final
canEditMessages → bool
True, if the administrator can edit messages of other users and pin messages; applicable to channels only
final
canEditStories → bool
True, if the administrator can edit stories posted by other users, pin stories and access story archive; applicable to channels only
final
canInviteUsers → bool
True, if the administrator can invite new users to the chat
final
canManageChat → bool
True, if the administrator can get chat event log, get chat boosts in channels, get channel members, report supergroup spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other privilege; applicable to supergroups and channels only
final
canManageTopics → bool
True, if the administrator can manage topics; applicable to forum supergroups only
final
canManageVideoChats → bool
True, if the administrator can manage video chats
final
canPinMessages → bool
True, if the administrator can pin messages; applicable to basic groups and supergroups only
final
canPostMessages → bool
True, if the administrator can create channel posts or view channel statistics; applicable to channels only
final
canPostStories → bool
True, if the administrator can create new channel stories, or edit and delete posted stories; applicable to channels only
final
canPromoteMembers → bool
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
True, if the administrator can restrict, ban, or unban chat members or view supergroup statistics; always true for channels
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isAnonymous → bool
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? canPostStories, bool? canEditStories, bool? canDeleteStories, bool? isAnonymous}) → ChatAdministratorRights
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.