Files
plain-ub-overfork/app/plugins/tg_tools/click.py
thedragonsinn 9ae2b69762 code formatting
2025-03-18 17:40:12 +05:30

13 lines
404 B
Python

from app import BOT, Message
@BOT.add_cmd(cmd="click")
async def click(bot: BOT, message: Message):
if not message.input or not message.replied:
await message.reply("reply to a message containing a button and give a button to click")
return
try:
await message.replied.click(message.input.strip())
except Exception as e:
await message.reply(str(e), del_in=5)