Update main.py
Browse files
main.py
CHANGED
@@ -96,15 +96,14 @@ async def get_author_chat_admin(username: str = None):
|
|
96 |
@fast_app.get("/user/raw/getchat")
|
97 |
async def get_chat_raw(username: str = None):
|
98 |
try:
|
99 |
-
username = None
|
100 |
chat_raw = (await client.get_chat(username)).raw
|
101 |
ok = await user_client.get_chat(username)
|
102 |
response = await js.get_creation_date(
|
103 |
api_key="akeno_OSrXhljIomunACd5JY18jFIeIuuB6Pdx",
|
104 |
user_id=ok.pinned_message.from_user.id
|
105 |
)
|
106 |
-
except Exception:
|
107 |
-
return {"error": "Error try again invalid"}
|
108 |
return {
|
109 |
"id": chat_raw.id,
|
110 |
"about": chat_raw.about,
|
|
|
96 |
@fast_app.get("/user/raw/getchat")
|
97 |
async def get_chat_raw(username: str = None):
|
98 |
try:
|
|
|
99 |
chat_raw = (await client.get_chat(username)).raw
|
100 |
ok = await user_client.get_chat(username)
|
101 |
response = await js.get_creation_date(
|
102 |
api_key="akeno_OSrXhljIomunACd5JY18jFIeIuuB6Pdx",
|
103 |
user_id=ok.pinned_message.from_user.id
|
104 |
)
|
105 |
+
except Exception as e:
|
106 |
+
return {"error": f"Error try again invalid: {str(e)}"}
|
107 |
return {
|
108 |
"id": chat_raw.id,
|
109 |
"about": chat_raw.about,
|