BotCommandScopeChatMember class

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

Implemented types

Constructors

BotCommandScopeChatMember({required ID chatId, required int userId})
Creates a new BotCommandScopeChatMember object.
const
BotCommandScopeChatMember.fromJson(Map<String, dynamic> json)
Creates a new BotCommandScopeChatMember 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.chatMember
no setteroverride
userId int
Unique identifier of the target user
final

Methods

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