Fix: Not verifying file code from callback query.

This commit is contained in:
Dr.Caduceus
2023-12-03 17:31:25 +05:30
committed by GitHub
parent ae40ae9af6
commit f0df2839c0

View File

@@ -16,6 +16,8 @@ async def delete_file(event: CallbackQuery.Event):
if not message:
return await event.answer(MessageNotExist, alert=True)
if query_data[2] != message.raw_text:
return await event.answer(InvalidQueryText, alert=True)
await message.delete()