mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 04:35:49 +00:00
🐛 Fix the exception caused by update.message
is None
This commit is contained in:
parent
cfae262c0e
commit
be5f4c51d5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user