Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
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."
  • Loading branch information
robz-tirtlib authored Jul 25, 2022
1 parent 7c12162 commit 9d9e76e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/custom_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d9e76e

Please sign in to comment.