Update main.py
Browse files
main.py
CHANGED
@@ -56,8 +56,7 @@ async def get_user_story(link=None):
|
|
56 |
except Exception as e:
|
57 |
return {"error": str(e)}
|
58 |
file_id = (
|
59 |
-
stories.
|
60 |
-
or stories.video.file_id if stories and stories.video else None
|
61 |
)
|
62 |
caption = stories.caption or f"By {user_client.me.mention}"
|
63 |
return {
|
|
|
56 |
except Exception as e:
|
57 |
return {"error": str(e)}
|
58 |
file_id = (
|
59 |
+
stories.video.file_id or stories.photo.file_id
|
|
|
60 |
)
|
61 |
caption = stories.caption or f"By {user_client.me.mention}"
|
62 |
return {
|