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."
This commit is contained in:
robz-tirtlib 2022-07-25 15:49:33 +03:00 committed by GitHub
parent 7c12162576
commit 9d9e76e724
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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