BotAdminRights class
Represents a bot admin rights.
Constructors
- BotAdminRights({bool changeInfo = false, bool postMessages = false, bool editMessages = false, bool deleteMessages = false, bool restrictMembers = false, bool inviteUsers = false, bool pinMessages = false, bool promoteMembers = false, bool manageVideoChats = false, bool anonymous = false, bool manageChat = false})
-
Creates a new BotAdminRights.
const
Properties
- anonymous → bool
-
Whether this admin is anonymous
final
- changeInfo → bool
-
If set, allows the admin to modify the description of the channel/supergroup
final
- deleteMessages → bool
-
If set, allows the admin to also delete messages from other admins in the channel
final
- editMessages → bool
-
If set, allows the admin to also edit messages from other admins in the channel.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inviteUsers → bool
-
If set, allows the admin to invite users in the channel/supergroup
final
- manageChat → bool
-
Set this flag if none of the other flags are set, but you still want the user to be an admin: if this or any of the other flags are set, the admin can get the chat admin log, get chat statistics, get message statistics in channels, get channel members, see anonymous administrators in supergroups and ignore slow mode.
final
- manageVideoChats → bool
-
If set, allows the admin to change group call/livestream settings
final
- param → String
-
Returns a base64url encoded value of the admin rights query parameter.
no setter
- pinMessages → bool
-
If set, allows the admin to pin messages in the channel/supergroup
final
- postMessages → bool
-
If set, allows the admin to post messages in the channel
final
- promoteMembers → bool
-
If set, allows the admin to add other admins with the same (or more limited) permissions in the channel/supergroup
final
- restrictMembers → bool
-
If set, allows the admin to ban users from the channel/supergroup
final
-
rights
→ List<
String> -
Returns a list of rights.
no setter
- 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> - Returns a JSON representation of the admin rights.
-
toString(
) → String -
Returns a string representation of the admin rights.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited