mirror of
https://github.com/TheCaduceus/FileStreamBot.git
synced 2026-01-15 16:33:25 -03:00
Fix: Not verifying file code from deeplink.
This commit is contained in:
@@ -17,6 +17,8 @@ async def send_file(event: NewMessage.Event | Message):
|
||||
|
||||
if not message:
|
||||
return await event.reply(MessageNotExist)
|
||||
if payload[2] != message.raw_text:
|
||||
return await event.reply(InvalidPayloadText)
|
||||
|
||||
message.raw_text = ''
|
||||
await send_message(message, send_to=event.chat_id)
|
||||
|
||||
Reference in New Issue
Block a user