We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b42f098 + 5ee6bc2 commit d255788Copy full SHA for d255788
src/main.py
@@ -123,8 +123,9 @@ def clean_url(message_text: str) -> str:
123
# Split by space and take the first part (the URL)
124
url = url.split()[0]
125
126
- # Remove any @username from the end of the URL
127
- url = url.split('@')[0]
+ # Remove any @username from the end of the URL only if it's an Instagram URL
+ if "instagram.com" in url:
128
+ url = url.split('@')[0]
129
130
return url
131
src/requirements.txt
@@ -2,4 +2,4 @@ python-telegram-bot[ext]==22.0
2
python-dotenv==1.1.0
3
yt-dlp==2025.3.31
4
gallery-dl==1.29.4
5
-aiohttp==3.9.3
+aiohttp==3.11.18
0 commit comments