MessageHandler not able to catch commands #3649
-
we would like to monitor users who send commands to the bot, but when the bot is started, the messagehandler is able to catch messages and report that a private chat is started, but it seems that it can't catch any of the three pre-defined commands(which are working fine). this is confusing. below is the main function block. thanks in advance.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
according to @obaskly : adding group =1 in the message handler fixed the probelm. |
Beta Was this translation helpful? Give feedback.
according to @obaskly :
https://stackoverflow.com/questions/75955308/messagehandler-not-able-to-catch-commands/75955412?noredirect=1#comment133968458_75955412
adding group =1 in the message handler fixed the probelm.
application.add_handler(MessageHandler(Filters.all, start_private_chat), group=1)