diff --git a/examples/conversationbot.py b/examples/conversationbot.py index efda7304c..8814a9dd9 100644 --- a/examples/conversationbot.py +++ b/examples/conversationbot.py @@ -127,13 +127,13 @@ def main(): states={ GENDER: [RegexHandler('^(Boy|Girl|Other)$', gender)], - PHOTO: [MessageHandler([Filters.photo], photo), + PHOTO: [MessageHandler(Filters.photo, photo), CommandHandler('skip', skip_photo)], - LOCATION: [MessageHandler([Filters.location], location), + LOCATION: [MessageHandler(Filters.location, location), CommandHandler('skip', skip_location)], - BIO: [MessageHandler([Filters.text], bio)] + BIO: [MessageHandler(Filters.text, bio)] }, fallbacks=[CommandHandler('cancel', cancel)] diff --git a/examples/conversationbot2.py b/examples/conversationbot2.py index 3b82dfb16..2b30ddf68 100644 --- a/examples/conversationbot2.py +++ b/examples/conversationbot2.py @@ -120,12 +120,12 @@ def main(): custom_choice), ], - TYPING_CHOICE: [MessageHandler([Filters.text], + TYPING_CHOICE: [MessageHandler(Filters.text, regular_choice, pass_user_data=True), ], - TYPING_REPLY: [MessageHandler([Filters.text], + TYPING_REPLY: [MessageHandler(Filters.text, received_information, pass_user_data=True), ], diff --git a/examples/echobot2.py b/examples/echobot2.py index d0c81fa91..0d0120737 100644 --- a/examples/echobot2.py +++ b/examples/echobot2.py @@ -56,7 +56,7 @@ def main(): dp.add_handler(CommandHandler("help", help)) # on noncommand i.e message - echo the message on Telegram - dp.add_handler(MessageHandler([Filters.text], echo)) + dp.add_handler(MessageHandler(Filters.text, echo)) # log all errors dp.add_error_handler(error)