Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix: Deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukesor committed Dec 15, 2022
1 parent 1562e57 commit 02d5e88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pollbot/pollbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,14 @@
# Poll handler
dispatcher.add_handler(
MessageHandler(
Filters.poll & ~CustomFilters.quiz & Filters.private,
Filters.poll & ~CustomFilters.quiz & Filters.chat_type.private,
create_from_native_poll,
run_async=True,
)
)
dispatcher.add_handler(
MessageHandler(
CustomFilters.quiz & Filters.private,
CustomFilters.quiz & Filters.chat_type.private,
send_error_quiz_unsupported,
run_async=True,
)
Expand Down Expand Up @@ -253,7 +253,7 @@
dispatcher.add_handler(
MessageHandler(
Filters.text
& Filters.private
& Filters.chat_type.private
& (~Filters.update.edited_message)
& (~Filters.reply)
& (~Filters.update.channel_posts),
Expand Down

0 comments on commit 02d5e88

Please sign in to comment.