BotCommandScopeChatAdministrators class

Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat.

Implemented types

Constructors

BotCommandScopeChatAdministrators({required ID chatId})
Creates a new BotCommandScopeChatAdministrators object.
const
BotCommandScopeChatAdministrators.fromJson(Map<String, dynamic> json)
Creates a new BotCommandScopeChatAdministrators object from json.
factory

Properties

chatId ID
Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type BotCommandScopeType
Scope type, always be BotCommandScopeType.chatAdministrators
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a BotCommandScopeChatAdministrators to a Map for JSON encoding.
override
toString() String
A string representation of this object.
inherited

Operators

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