🐛 Fix the exception caused by update.message is None

This commit is contained in:
洛水居室 2022-10-28 12:10:30 +08:00
parent cfae262c0e
commit be5f4c51d5
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -59,5 +59,5 @@ class QuizPlugin(Plugin, BasePlugin):
type=Poll.QUIZ,
)
if filters.ChatType.GROUPS.filter(message):
self._add_delete_message_job(context, update.message.chat_id, update.message.message_id, 300)
self._add_delete_message_job(context, message.chat_id, message.message_id, 300)
self._add_delete_message_job(context, poll_message.chat_id, poll_message.message_id, 300)