fabianonline / telegram_backup

Java app to download all your telegram data.
GNU General Public License v3.0
447 stars 91 forks source link

Old Sticker not downloaded because of a null id #113

Closed reckter closed 6 years ago

reckter commented 6 years ago

Hey, When I try to download messages of a very old supergroup it fails with

java.lang.IllegalStateException: sticker["stickerset"].obj.get("id") must not be null
    at de.fabianonline.telegram_backup.mediafilemanager.StickerFileManager.getFilenameBase(StickerFileManager.kt:66)
    at de.fabianonline.telegram_backup.mediafilemanager.StickerFileManager.getTargetFilename(StickerFileManager.kt:72)
    at de.fabianonline.telegram_backup.Database.saveMessages(Database.kt:341)
    at de.fabianonline.telegram_backup.DownloadManager.downloadMessages(DownloadManager.kt:213)
    at de.fabianonline.telegram_backup.DownloadManager.downloadMessagesFromChannel(DownloadManager.kt:166)
    at de.fabianonline.telegram_backup.DownloadManager.downloadMessages(DownloadManager.kt:150)
    at de.fabianonline.telegram_backup.CommandLineController.<init>(CommandLineController.kt:173)
    at de.fabianonline.telegram_backup.CommandLineRunner.run(CommandLineRunner.kt:46)
    at de.fabianonline.telegram_backup.CommandLineRunnerKt.main(CommandLineRunner.kt:36)

I am currently using the master version of this tool:

Your version 1.1.3-71-g223a0fd seems to be a development version. Version check is disabled. Telegram_Backup version 1.1.3-71-g223a0fd, Copyright (C) 2016, 2017 Fabian Schlenz

reckter commented 6 years ago

Fixed by #114