Spaces:
Runtime error
Runtime error
File size: 895 Bytes
80287e2 |
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 |
from pyrogram import filters
from pyrogram import *
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, Message
from datetime import datetime
from Devine import app as app
import requests
@app.on_message(filters.command("write"))
async def handwrite(_, message: Message):
if message.reply_to_message:
text = message.reply_to_message.text
else:
text =message.text.split(None, 1)[1]
m =await message.reply_text( "<b>ʜᴏʟᴅ ᴏɴ,\nᴡʀɪᴛɪɴɢ ʏᴏᴜʀ ᴛᴇxᴛ...</b>")
write = requests.get(f"https://apis.xditya.me/write?text={text}").url
caption = f"""
<b>sᴜᴄᴇssғᴜʟʟʏ ᴛᴇxᴛ ᴡʀɪᴛᴛᴇɴ, ✨</b>
<b>• ᴡʀɪᴛᴛᴇɴ ʙʏ : </b>{app.mention}
<b>• ʀᴇǫᴜᴇsᴛᴇᴅ ʙʏ : </b>{message.from_user.mention}
"""
await m.delete()
await message.reply_photo(photo=write,caption=caption)
|