mirror of
https://github.com/TheCaduceus/FileStreamBot.git
synced 2026-01-15 08:23:28 -03:00
Fix: Not verifying file code from callback query.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user