ChatMemberAdministrator class
Represents a chat member that owns the chat and has all administrator privileges.
- Implemented types
Constructors
- ChatMemberAdministrator({required User user, required bool canBeEdited, 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? canManageTopics, String? customTitle, bool? canPostStories, bool? canEditStories, bool? canDeleteStories})
-
Creates a new ChatMemberAdministrator object.
const
-
ChatMemberAdministrator.fromJson(Map<
String, dynamic> json) -
Creates a new ChatMemberAdministrator object from json.
factory
Properties
- canBeEdited → bool
-
True, if the bot is allowed to edit administrator privileges of that user
final
- 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
- canManageTopics → 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
- customTitle → String?
-
Custom title for this user
final
- from → User
-
Information about the user
no setteroverride
- 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
- status → ChatMemberStatus
-
The member's status in the chat, always ChatMemberStatus.administrator
final
- user → User
-
Information about the user
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to json.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited