deepak191z commited on
Commit
b4baa0b
·
verified ·
1 Parent(s): 6dcca82

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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"https://api.telegram.org/file/bot{TELEGRAM_BOT_TOKEN}/{file_info.file_path.lstrip('/')}"
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