mirror of
https://github.com/maunium/stickerpicker
synced 2025-02-16 12:15:45 +00:00
Compare commits
6 Commits
6e490e052b
...
a2ea135b84
Author | SHA1 | Date | |
---|---|---|---|
|
a2ea135b84 | ||
|
47a98ba81b | ||
|
e38090e952 | ||
|
a6b8c09379 | ||
|
be477874e3 | ||
|
715f62af58 |
@ -81,11 +81,7 @@ async def reupload_pack(client: TelegramClient, pack: StickerSetFull, output_dir
|
||||
reuploaded_documents[document.id] = already_uploaded[document.id]
|
||||
print(f"Skipped reuploading {document.id}")
|
||||
except KeyError:
|
||||
try:
|
||||
reuploaded_documents[document.id] = await reupload_document(client, document)
|
||||
except Exception as e:
|
||||
print(f"Failed to reupload {document.id}: {e}")
|
||||
continue
|
||||
reuploaded_documents[document.id] = await reupload_document(client, document)
|
||||
# Always ensure the body and telegram metadata is correct
|
||||
add_meta(document, reuploaded_documents[document.id], pack)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user