BotCommandScopeChat class

Represents the scope of bot commands, covering a specific chat.

Implemented types

Constructors

BotCommandScopeChat({required ID chatId})
Creates a new BotCommandScopeChat object.
const
BotCommandScopeChat.fromJson(Map<String, dynamic> json)
Creates a new BotCommandScopeChat 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.chat
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a BotCommandScopeChat 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