randydev commited on
Commit
77411ed
·
verified ·
1 Parent(s): fb2f620

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -83,7 +83,7 @@ async def get_chat_raw(username: str = None):
83
  ok = await user_client.get_chat(username)
84
  response = await js.get_creation_date(
85
  api_key="akeno_OSrXhljIomunACd5JY18jFIeIuuB6Pdx",
86
- user_id=ok.pinned_message.from_user.id
87
  )
88
  except Exception:
89
  return {"error": "Error try again invalid"}
@@ -107,7 +107,7 @@ async def get_chat_raw(username: str = None):
107
  "id": ok.pinned_message.from_user.id if ok.pinned_message.from_user else None,
108
  "first_name": ok.pinned_message.from_user.first_name if ok.pinned_message.from_user else None,
109
  "last_name": ok.pinned_message.from_user.last_name if ok.pinned_message.from_user else None,
110
- "status": ok.pinned_message.from_user.status.name if ok.pinned_message.from_user else None,
111
  "last_online_date": ok.pinned_message.from_user.last_online_date if ok.pinned_message.from_user else None,
112
  "username": ok.pinned_message.from_user.username if ok.pinned_message.from_user else None,
113
  "is_premium": ok.pinned_message.from_user.is_premium if ok.pinned_message.from_user else None,
 
83
  ok = await user_client.get_chat(username)
84
  response = await js.get_creation_date(
85
  api_key="akeno_OSrXhljIomunACd5JY18jFIeIuuB6Pdx",
86
+ user_id=ok.pinned_message.from_user.id if
87
  )
88
  except Exception:
89
  return {"error": "Error try again invalid"}
 
107
  "id": ok.pinned_message.from_user.id if ok.pinned_message.from_user else None,
108
  "first_name": ok.pinned_message.from_user.first_name if ok.pinned_message.from_user else None,
109
  "last_name": ok.pinned_message.from_user.last_name if ok.pinned_message.from_user else None,
110
+ "status": ok.pinned_message.from_user.status.name if ok.pinned_message.from_user.status else None,
111
  "last_online_date": ok.pinned_message.from_user.last_online_date if ok.pinned_message.from_user else None,
112
  "username": ok.pinned_message.from_user.username if ok.pinned_message.from_user else None,
113
  "is_premium": ok.pinned_message.from_user.is_premium if ok.pinned_message.from_user else None,