コード例 #1
0
ファイル: user.py プロジェクト: manstd/Nana-Remix
async def revert(client, message):
    first_name, last_name, bio = restore_identity()
    await client.send(
        functions.account.UpdateProfile(
            first_name=first_name if first_name is not None else "",
            last_name=last_name if last_name is not None else "",
            about=bio if bio is not None else "",
        ))
    photos = await client.get_profile_photos("me")
    await client.delete_profile_photos(photos[0].file_id)
    await edrep(message, text="`Identity Reverted`")
    await sleep(5)
    await message.delete()
コード例 #2
0
ファイル: cloner.py プロジェクト: zeuslord224/Nana-Userbot
async def revert(client, message):
    first_name, last_name, bio = restore_identity()

    await client.send(
        functions.account.UpdateProfile(
            first_name=first_name if first_name != None else "",
            last_name=last_name if last_name != None else "",
            about=bio if bio != None else ""))

    photos = await app.get_profile_photos("me")

    await app.delete_profile_photos(photos[0].file_id)

    await message.edit("Kaboom!\nIts me again!")