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

Commit 02d5e88

Browse files
committed
fix: Deprecation warning
1 parent 1562e57 commit 02d5e88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pollbot/pollbot.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,14 @@
179179
# Poll handler
180180
dispatcher.add_handler(
181181
MessageHandler(
182-
Filters.poll & ~CustomFilters.quiz & Filters.private,
182+
Filters.poll & ~CustomFilters.quiz & Filters.chat_type.private,
183183
create_from_native_poll,
184184
run_async=True,
185185
)
186186
)
187187
dispatcher.add_handler(
188188
MessageHandler(
189-
CustomFilters.quiz & Filters.private,
189+
CustomFilters.quiz & Filters.chat_type.private,
190190
send_error_quiz_unsupported,
191191
run_async=True,
192192
)
@@ -253,7 +253,7 @@
253253
dispatcher.add_handler(
254254
MessageHandler(
255255
Filters.text
256-
& Filters.private
256+
& Filters.chat_type.private
257257
& (~Filters.update.edited_message)
258258
& (~Filters.reply)
259259
& (~Filters.update.channel_posts),

0 commit comments

Comments
 (0)