Link Search Menu Expand Document

Constructor: botCommandScopePeerUser

Back to constructors index

The specified bot commands will be valid only for a specific user in the specified group or supergroup.

Attributes:

NameTypeRequiredDescription
peerInputPeerOptionalThe chat
user_idInputUserOptionalThe user

Type: BotCommandScope

Example:

$botCommandScopePeerUser = ['_' => 'botCommandScopePeerUser', 'peer' => InputPeer, 'user_id' => InputUser];