mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-02 10:44:50 +00:00
Fix if link not start with http
This commit is contained in:
parent
a3efe8d991
commit
45b9fb1c42
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ __HELP__ = """
|
|||
async def take_ss(_, message):
|
||||
if len(message.command) == 1:
|
||||
return await message.reply("Give A Url To Fetch Screenshot.")
|
||||
url = message.command[1]
|
||||
url = message.command[1] if message.command[1].startswith("http") else f"https://{message.command[1]}"
|
||||
filename = f"imageToSave_{message.from_user.id}.png"
|
||||
m = await message.reply("Capturing screenshot...")
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue