Spaces:
Sleeping
Sleeping
Dr.Caduceus commited on
Fix: Not verifying file code from deeplink.
Browse files- bot/plugins/deeplinks.py +2 -0
bot/plugins/deeplinks.py
CHANGED
|
@@ -17,6 +17,8 @@ async def send_file(event: NewMessage.Event | Message):
|
|
| 17 |
|
| 18 |
if not message:
|
| 19 |
return await event.reply(MessageNotExist)
|
|
|
|
|
|
|
| 20 |
|
| 21 |
message.raw_text = ''
|
| 22 |
await send_message(message, send_to=event.chat_id)
|
|
|
|
| 17 |
|
| 18 |
if not message:
|
| 19 |
return await event.reply(MessageNotExist)
|
| 20 |
+
if payload[2] != message.raw_text:
|
| 21 |
+
return await event.reply(InvalidPayloadText)
|
| 22 |
|
| 23 |
message.raw_text = ''
|
| 24 |
await send_message(message, send_to=event.chat_id)
|