File size: 878 Bytes
35e0008
af2b875
35e0008
 
 
 
 
af2b875
35e0008
 
 
af2b875
35e0008
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Currently not in use.

# from hydrogram.types import Message
# from bot import TelegramBot
# from bot.modules.decorators import verify_user
# from bot.modules.telegram import get_message, send_message
# from bot.modules.static import *

# async def deeplinks(msg: Message, payload: str):
#     if payload.startswith('file_'):
#         sp = payload.split('_')

#         if len(sp) != 3:
#             return await msg.reply(InvalidPayloadText, quote=True)
        
#         message = await get_message(int(sp[1]))
        
#         if not message:
#             return await msg.reply(MessageNotExist)
#         if sp[2] != message.caption:
#             return await msg.reply(InvalidPayloadText, quote=True)

#         await message.copy(chat_id=msg.from_user.id, caption="")
#     else:
#         await msg.reply(InvalidPayloadText, quote=True)