from telegram.bot import Bot, BotCommand
command = BotCommand("start","To start a process")
Bot.set_my_commands([command])
i get following error
Bot.set_my_commands([command])
TypeError: set_my_commands() missing 1 required positional argument: ‘commands’
can someone explain me how to set command for a telegram bot using set_my_command()
2
Answers
i found answer. I haven't passed botid. And the way i passed arguement into se_my_commands()
you can simply use