936 B
936 B
title | description | image |
---|---|---|
botInfo | Info about bots (available bot commands, etc) | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: botInfo
Info about bots (available bot commands, etc)
Attributes:
Name | Type | Required | Description |
---|---|---|---|
user_id | int | Yes | ID of the bot |
description | string | Yes | Description of the bot |
commands | Array of BotCommand | Yes | Bot commands that can be used in the chat |
Type: BotInfo
Example:
$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand, BotCommand]];
Or, if you're into Lua:
botInfo={_='botInfo', user_id=int, description='string', commands={BotCommand}}