🐛 Fix issue of incorrect parameters being passed when calling add_delete_message_job

This commit is contained in:
洛水居室 2023-04-04 22:53:37 +08:00
parent 499efa778f
commit 46176ad875
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -157,7 +157,7 @@ class BirthdayPlugin(Plugin):
reply_markup=InlineKeyboardMarkup(buttons),
parse_mode=ParseMode.HTML,
)
self.add_delete_message_job(reply_msg.chat_id, delay=30)
self.add_delete_message_job(reply_msg, delay=30)
self.add_delete_message_job(message, delay=30)
else:
await message.reply_text(