MadelineProtoDocs/old_docs/API_docs_v86/constructors/botCommand.md

40 lines
722 B
Markdown
Raw Normal View History

2018-12-26 02:56:50 +01:00
---
title: botCommand
description: Bot command
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: botCommand
[Back to constructors index](index.md)
Bot command
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|command|[string](../types/string.md) | Yes|Command|
|description|[string](../types/string.md) | Yes|Description|
### Type: [BotCommand](../types/BotCommand.md)
### Example:
```php
$botCommand = ['_' => 'botCommand', 'command' => 'string', 'description' => 'string'];
```
Or, if you're into Lua:
```lua
botCommand={_='botCommand', command='string', description='string'}
```