from wbb import app from wbb.core.decorators.errors import capture_err from pyrogram import filters __MODULE__ = "WebSS" __HELP__ = "/webss | .webss [URL] - Take A Screenshot Of A Webpage" @app.on_message(filters.command("webss")) @capture_err async def take_ss(_, message): if len(message.command) != 2: await message.reply_text("Give A Url To Fetch Screenshot.") return url = message.text.split(None, 1)[1] m = await message.reply_text("**Taking Screenshot**") await m.edit("**Uploading**") try: await app.send_photo( message.chat.id, photo=f"https://webshot.amanoteam.com/print?q={url}", ) except TypeError: await m.edit("No Such Website.") return await m.delete()