class BotCommandScopeChat implements BotCommandScopeInterface

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

Methods

__construct(string $type, int|string $chat_id)

No description

string
getType()

Scope type, must be chat.

int|string
getChatId()

Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername).

Details

at line 14
__construct(string $type, int|string $chat_id)

No description

Parameters

string $type
int|string $chat_id

at line 23
string getType()

Scope type, must be chat.

Return Value

string

at line 33
int|string getChatId()

Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername).

Return Value

int|string