Skip to content

Commit 81ad61b

Browse files
committedMar 25, 2024·
Accept non-numeric IDs in Telegram image downloader
1 parent a8b36dc commit 81ad61b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎processors/visualisation/download-telegram-images.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ async def get_images(self):
173173
if message["chat"] not in messages_with_photos:
174174
messages_with_photos[message["chat"]] = []
175175

176-
messages_with_photos[message["chat"]].append(int(message["id"]))
176+
messages_with_photos[message["chat"]].append(int(message["id"].split("-")[-1]))
177177
total_media += 1
178178

179179
if amount and total_media >= amount:

0 commit comments

Comments
 (0)
Please sign in to comment.