1.2 KiB
1.2 KiB
title | description | image |
---|---|---|
botInfo | Bot info | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: botInfo
Bot info
Attributes:
Name | Type | Required | Description |
---|---|---|---|
user_id | int | Yes | User ID |
version | int | Yes | Version |
share_text | string | Yes | Share text |
description | string | Yes | Description |
commands | Array of BotCommand | Yes | Commands |
Type: BotInfo
Example:
$botInfo = ['_' => 'botInfo', 'user_id' => int, 'version' => int, 'share_text' => 'string', 'description' => 'string', 'commands' => [BotCommand, BotCommand]];
PWRTelegram json-encoded version:
{"_": "botInfo", "user_id": int, "version": int, "share_text": "string", "description": "string", "commands": [BotCommand]}
Or, if you're into Lua:
botInfo={_='botInfo', user_id=int, version=int, share_text='string', description='string', commands={BotCommand}}