mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 12:24:51 +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):
|
async def take_ss(_, message):
|
||||||
if len(message.command) == 1:
|
if len(message.command) == 1:
|
||||||
return await message.reply("Give A Url To Fetch Screenshot.")
|
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"
|
filename = f"imageToSave_{message.from_user.id}.png"
|
||||||
m = await message.reply("Capturing screenshot...")
|
m = await message.reply("Capturing screenshot...")
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue