Closed vcvitaly closed 1 year ago
You were looking at the wrong API. The method is SetMyCommands https://core.telegram.org/bots/api#setmycommands
This is likely caused by a wrong bot token. How are you initialising your bot?
Agree with @Chase22 , method is correct as per API specs
Describe the bug SetMyCommands points to an incorrect telegram api path, which leads to:
The actual command seems to be
setBotCommands
, notsetMyCommands
according to https://core.telegram.org/method/bots.setBotCommandsTo Reproduce Steps to reproduce the behavior:
sendApiMethod(setMyCommands)
Expected behavior Bot commands should be set.