Dr.Caduceus commited on
Commit
85504ba
·
unverified ·
1 Parent(s): 4237497

Fix: Not verifying file code from deeplink.

Browse files
Files changed (1) hide show
  1. 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)