MadelineProto/docs/TD_docs/constructors/botInfo.md

46 lines
946 B
Markdown
Raw Normal View History

---
title: botInfo
description: Provides information about bot and command supported by him
---
## Constructor: botInfo
[Back to constructors index](index.md)
Provides information about bot and command supported by him
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|description|[string](../types/string.md) | Yes|Big description shown in user info page|
|commands|Array of [botCommand](../constructors/botCommand.md) | Yes|List of commands cupported by bot|
### Type: [BotInfo](../types/BotInfo.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$botInfo = ['_' => 'botInfo', 'description' => 'string', 'commands' => [botCommand]];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "botInfo", "description": "string", "commands": [botCommand]}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
botInfo={_='botInfo', description='string', commands={botCommand}}
```