MadelineProtoDocs/docs/API_docs/constructors/botCommandScopePeerUser.md
2024-05-01 14:53:46 +02:00

980 B

title description nav_exclude image
botCommandScopePeerUser The specified bot commands will be valid only for a specific user in the specified group or supergroup. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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:

Name Type Required Description
peer InputPeer Optional The chat
user_id InputUser Optional The user

Type: BotCommandScope

Example:

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