command only shows to admin
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"}
the items of the list should be BotCommand, something like this BotCommand(command='start', description="starting the bot')
[[ BotCommand(command = 'start', description = 'starting the bot'), BotCommand(command = 'help', description = 'how to use me') ]]; like this?
Обсуждают сегодня