[Update] Ultroid v0.6

Co-Authored-By: Amit Sharma <48654350+buddhhu@users.noreply.github.com>
Co-Authored-By: MMETMA <79155572+MMETMA@users.noreply.github.com>
Co-Authored-By: Aditya <me@xditya.me>
Co-Authored-By: marat2509 <93652988+marat2509@users.noreply.github.com>
Co-Authored-By: smartman_ru <14003491+smartmanru@users.noreply.github.com>
Co-Authored-By: Flasho <75789819+flashokillerify@users.noreply.github.com>
Co-Authored-By: ÁÑÑÍHÌLÅTØR SPÄRK <75305464+annihilatorrrr@users.noreply.github.com>
This commit is contained in:
Devesh Pal
2022-06-06 23:18:16 +05:30
parent d4085913e7
commit 4d30dd7dd7
41 changed files with 1062 additions and 1153 deletions

View File

@@ -112,6 +112,9 @@ async def remove_profilepic(delpfp):
async def gpoto(e):
ult = e.pattern_match.group(1).strip()
a = await e.eor(get_string("com_1"))
just_dl = ult in ["-dl", "--dl"]
if just_dl:
ult = None
if not ult:
if e.is_reply:
gs = await e.get_reply_message()
@@ -121,6 +124,8 @@ async def gpoto(e):
okla = await e.client.download_profile_photo(ult)
if not okla:
return await eor(a, "`Pfp Not Found...`")
await a.delete()
await e.reply(file=okla)
os.remove(okla)
if not just_dl:
await a.delete()
await e.reply(file=okla)
return os.remove(okla)
await a.edit(f"Downloaded pfp to [ `{okla}` ].")