TelegramTools / TLImporter

📲 Telegram Chat Importer: Import chats from WhatsApp or other services into Telegram
GNU Affero General Public License v3.0
127 stars 11 forks source link

Successful import, no messages. #7

Closed zaratans closed 4 years ago

zaratans commented 4 years ago

I ran into no issues importing the chat using TLImpoter, but looking at the chat after, the only messages that imported are "IMPORTING THE CHAT WITH.." and "SUCCESS!!" There are no other messages. Ending TLImporter, it said there was a fatal error and to report it. TLImporter-log.log

ferferga commented 4 years ago

Good afternoon!

Please, give me more details. Are you using 1:1 mode or are you importing to "Saved Messages"?

zaratans commented 4 years ago

I am importing to "Saved Messages"

ferferga commented 4 years ago

@zaratans Telegram did some API changes and this is broken now. Add your phone number to your contact list and the error should be solved.

zaratans commented 4 years ago

I'm not sure I understand. When I try to add my phone number to my contact list in telegram it takes me to "Saved Messages". Am I doing something wrong?

ferferga commented 4 years ago

No, that means that you were added successfully to your contact list. Just try running TLImporter again. I suppose that yo're doing this in TDesktop as well, right?

zaratans commented 4 years ago

Yes, I am using the desktop telegram application. After adding myself to my contacts, I got the same error message and none of the messaged imported. On trying to exit TLImporter it says "FATAL ERROR! TLImporter had an irrecuperable error. Please, report this bug. Details in TLImporter-log.log. Press ENTER to exit" TLImporter-log.log

ferferga commented 4 years ago

Okay, this one is interesting. It seems that Telegram is really messing things up.

While debugging and trying to understand (this issue)[https://github.com/TelegramTools/TLMerger/issues/1] in my other app (which shares a lot of it's core with TLImporter), I received a strange error (an object was null where it shouldn't). I checked the chat in TDesktop and, when scrolling up to see older messages, I noticed they were way too slow to load. I spent like 3 minutes waiting for them to appear. After a while it finally loaded everything correctly, but it seemed that it was loading in batches and having multiple 'gaps'. Today, looking for a photo and a message in a friend's chat, I notice that search points me to the message everywhere else. I notice then how it moves me to December 2017. But just after December 2017, there were the messages of October this year!

I then took a look at the media gallery, and found this:

IMG_20191219_012544_634

Will report this. However, probably it's just a transient Telegram issue that have been wrecking things up lately. Didn't had so much time to check the issue deeply in my code though, I'm too busy with exams, but I will try to do it in holidays (I always say that and I never find time, but I really hope I will find some time) :p.

Have a nice day!

Heartran commented 4 years ago

I ran into no issues importing the chat using TLImpoter, but looking at the chat after, the only messages that imported are "IMPORTING THE CHAT WITH.." and "SUCCESS!!" There are no other messages. Ending TLImporter, it said there was a fatal error and to report it. TLImporter-log.log

Same error: seems that Telegram is really messed up! TLImporter-log.log

ferferga commented 4 years ago

@Heartran Did you try adding yourself to contacts first? Because you're importing messages to 'Saved Messages', right?

Heartran commented 4 years ago

I actually don’t understand what do you mean with adding myself to my contacts. I have already myself in my contacts

ferferga commented 4 years ago

@Heartran Add your phone number to your contact book in your phone or, in Telegram Desktop, go to Contact List > Add Contact and create a contact with your phone number.

(In case you are importing messages to 'Saved Messages', which you didn't confirm)

ferferga commented 4 years ago

@Heartran any news?

Heartran commented 4 years ago

Actually right now I am not using it 😅

ferferga commented 4 years ago

@Heartran I'm going to push an update this week, so I'm reviewing issues to close the ones I'm getting fixed. Are you still having issues with this?

Anyway, I'm 99% sure that issues unrelated to temporary problems with Telegram when importing to Saved Messages will be fixed.

ferferga commented 4 years ago

@Heartran @zaratans Everything commented in this issue has been addressed in TLImporter 3.0.6.

Closing this.