2

I've been trying to set the list of commands for my telegram bot but it doesn't work, here's what I'm doing:

bot = telebot.TeleBot("TOKEN")
bot.set_my_commands(commands = ['start','go','help'])
bot.set_chat_menu_button(bot.get_me().id, types.MenuButtonCommands(type = 'commands'))

can anyone help me to figure it out? Thx anyway.

Haidara
  • 21
  • 7
  • 1
    I figured it out, the list of commands must be in type "BotCommand" passed to the method "set_my_commands" without any use for the method "set_chat_menu_button". – Haidara Sep 25 '22 at 15:24

0 Answers0