Update main.py
Browse files
main.py
CHANGED
@@ -120,13 +120,13 @@ async def get_user_story(link: str = None):
|
|
120 |
)
|
121 |
caption = story.caption or f"By {user_client.me.mention}"
|
122 |
if file_id:
|
123 |
-
image_path = await user_client.download_media(file_id)
|
124 |
|
125 |
# with open(image_path, "rb") as f:
|
126 |
# base64_image = base64.b64encode(f.read()).decode("utf-8")
|
127 |
-
url_dl = await upload_to_catbox(image_path)
|
128 |
return {
|
129 |
-
"download":
|
130 |
"random_file_id": file_id,
|
131 |
"caption": caption
|
132 |
}
|
|
|
120 |
)
|
121 |
caption = story.caption or f"By {user_client.me.mention}"
|
122 |
if file_id:
|
123 |
+
# image_path = await user_client.download_media(file_id)
|
124 |
|
125 |
# with open(image_path, "rb") as f:
|
126 |
# base64_image = base64.b64encode(f.read()).decode("utf-8")
|
127 |
+
# url_dl = await upload_to_catbox(image_path)
|
128 |
return {
|
129 |
+
"download": "unavailable because blocked",
|
130 |
"random_file_id": file_id,
|
131 |
"caption": caption
|
132 |
}
|