From d769a657c5cee3a3965b6d1e2c489401d3c6ee3e Mon Sep 17 00:00:00 2001 From: jensenhuangyankai Date: Mon, 1 May 2023 05:05:10 +0000 Subject: [PATCH] Added a note regarding set_my_commands in documentation. --- telebot/async_telebot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telebot/async_telebot.py b/telebot/async_telebot.py index 1a86024..4bcab65 100644 --- a/telebot/async_telebot.py +++ b/telebot/async_telebot.py @@ -4483,6 +4483,8 @@ class AsyncTeleBot: """ Use this method to change the list of the bot's commands. + Note: Commands have to be in all lowercase. Otherwise, Telegram API throws an error. + Telegram documentation: https://core.telegram.org/bots/api#setmycommands :param commands: List of BotCommand. At most 100 commands can be specified.