Files
FileStreamBot-Caduceus/bot/plugins/deeplinks.py

26 lines
878 B
Python
Raw Normal View History

2024-11-20 15:29:44 +05:30
# Currently not in use.
2023-11-05 22:02:58 +05:30
2024-11-20 15:29:44 +05:30
# 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 *
2023-11-05 22:02:58 +05:30
2024-11-20 15:29:44 +05:30
# async def deeplinks(msg: Message, payload: str):
# if payload.startswith('file_'):
# sp = payload.split('_')
2023-11-05 22:02:58 +05:30
2024-11-20 15:29:44 +05:30
# 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)