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