MadelineProtoDocs/docs/API_docs/constructors/botCommandScopePeer.md

30 lines
754 B
Markdown
Raw Normal View History

2024-05-01 14:53:46 +02:00
---
title: "botCommandScopePeer"
description: "The specified bot commands will be valid only in a specific dialog."
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: botCommandScopePeer
[Back to constructors index](/API_docs/constructors/index.html)
The specified bot commands will be valid only in a specific dialog.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|peer|[InputPeer](/API_docs/types/InputPeer.html) | Optional|The dialog|
### Type: [BotCommandScope](/API_docs/types/BotCommandScope.html)
### Example:
```
$botCommandScopePeer = ['_' => 'botCommandScopePeer', 'peer' => InputPeer];
```