Spaces:
Paused
Paused
Update main.py
Browse files
main.py
CHANGED
@@ -115,7 +115,7 @@ async def send_image_to_telegram(image_path, caption):
|
|
115 |
|
116 |
# Generate the direct file link
|
117 |
file_info = await bot.get_file(image_url)
|
118 |
-
direct_link = f"
|
119 |
|
120 |
|
121 |
return direct_link
|
|
|
115 |
|
116 |
# Generate the direct file link
|
117 |
file_info = await bot.get_file(image_url)
|
118 |
+
direct_link = f"{file_info.file_path.lstrip('/')}"
|
119 |
|
120 |
|
121 |
return direct_link
|