2018-04-01 13:19:25 +02:00
|
|
|
---
|
|
|
|
title: botCommand
|
2018-04-01 13:24:46 +02:00
|
|
|
description: botCommand attributes, type and example
|
2018-04-01 13:19:25 +02:00
|
|
|
---
|
|
|
|
## Constructor: botCommand
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
2018-04-01 13:24:46 +02:00
|
|
|
| Name | Type | Required |
|
|
|
|
|----------|---------------|----------|
|
|
|
|
|command|[string](../types/string.md) | Yes|
|
|
|
|
|description|[string](../types/string.md) | Yes|
|
2018-04-01 13:19:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [BotCommand](../types/BotCommand.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
|
|
|
$botCommand = ['_' => 'botCommand', 'command' => 'string', 'description' => 'string'];
|
|
|
|
```
|
|
|
|
|
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
|
|
|
|
```
|
|
|
|
{"_": "botCommand", "command": "string", "description": "string"}
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
botCommand={_='botCommand', command='string', description='string'}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|