From 9d9e76e724e05908cc793f0b3338f7e043fafb43 Mon Sep 17 00:00:00 2001 From: robz-tirtlib <62515024+robz-tirtlib@users.noreply.github.com> Date: Mon, 25 Jul 2022 15:49:33 +0300 Subject: [PATCH] small fix Fixed "ERROR - TeleBot: "message_handler: Commands filter should be list of strings (commands), unknown type supplied to the 'commands' filter list. Not able to use the supplied type." --- examples/custom_states.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/custom_states.py b/examples/custom_states.py index 72c96df..a027612 100644 --- a/examples/custom_states.py +++ b/examples/custom_states.py @@ -47,7 +47,7 @@ def start_ex(message): # Any state -@bot.message_handler(state="*", commands='cancel') +@bot.message_handler(state="*", commands=['cancel']) def any_state(message): """ Cancel state