randydev commited on
Commit
84e3408
·
verified ·
1 Parent(s): 4b5bc86

Update Akeno/plugins/clone.py

Browse files
Files changed (1) hide show
  1. Akeno/plugins/clone.py +4 -4
Akeno/plugins/clone.py CHANGED
@@ -141,11 +141,11 @@ async def user_clone(client: Client, message: Message):
141
  photos = [p async for p in client.get_chat_photos("me")]
142
  if photos:
143
  await client.delete_profile_photos(photos[0].file_id)
144
- if user_back["randydev"]["first_name"]:
145
  await client.update_profile(
146
- first_name=user_back["randydev"]["first_name"],
147
- last_name=user_back["randydev"]["last_name"] or "",
148
- bio=user_back["randydev"]["bio"] or ""
149
  )
150
  else:
151
  return await message.reply_text("User doesn't have a profile bio and last name")
 
141
  photos = [p async for p in client.get_chat_photos("me")]
142
  if photos:
143
  await client.delete_profile_photos(photos[0].file_id)
144
+ if user_back["randydev"].get("first_name", ""):
145
  await client.update_profile(
146
+ first_name=user_back["randydev"].get("first_name", ""),
147
+ last_name=user_back["randydev"].get("last_name", ""),
148
+ bio=user_back["randydev"].get("bio", "")
149
  )
150
  else:
151
  return await message.reply_text("User doesn't have a profile bio and last name")