account settings
Set TG bot commands
Set bot commands for a Telegram account.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
accountIdstring
commands
Response Body
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.accountsettings.setTelegramCommands({ path: { accountId: 'account_abc123', }, body: { commands: [ { command: 'string', description: 'Hello, world!', }, ], },});console.log(data);Empty
Empty
{
"error": "Unauthorized"
}