Is there any example for doing setMyCommands()? i need the

command only shows to admin

5 ответов

160 просмотров
eninen- Автор вопроса

ive try this but still got an error. code : bot.setMyCommands({ commands: [ {command: 'start', description: 'starting the bot'}, {command: 'help', description: 'how to use me'} ], scope: { type: 'all_chat_administrators' } }); error : Error: Request failed for https://api.telegram.org returned code 400. Truncated server response: {"ok":false,"error_code":400,"description":"Bad Request: expected an Array of BotCommand"}

eninen
ive try this but still got an error. code : bot.s...

the items of the list should be BotCommand, something like this BotCommand(command='start', description="starting the bot')

eninen- Автор вопроса
Dash God
the items of the list should be BotCommand, someth...

[[ BotCommand(command = 'start', description = 'starting the bot'), BotCommand(command = 'help', description = 'how to use me') ]]; like this?

Похожие вопросы

Карта сайта