Link Search Menu Expand Document

Constructor: botCommandScopePeer

Back to constructors index

The specified bot commands will be valid only in a specific dialog.

Attributes:

NameTypeRequiredDescription
peerInputPeerOptionalThe dialog

Type: BotCommandScope

Example:

$botCommandScopePeer = ['_' => 'botCommandScopePeer', 'peer' => InputPeer];