-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dumping channels with the test branch in cygwin #5
Comments
I prefer to ensure compatibility once the new features are merged into master, because the test branch may change / break randomly anyway. If you want to dump channels, you can use a known working tg revision from the test branch (it worked for me with revision c69f2a2, also see #4). Or is there another reason you want to use the test branch? But considering how long it is taking tg to merge test into master, I may attempt to get telegram-history-dump working with tg's test branch. I can't work on it right now however because of ISP issues at home. |
I finally looked into this, it seems telegram-cli changed some names in the API. Added a compatibility workaround, it works for me now with telegram-history-dump@master and tg@test (tg@ca8c525 at the time of writing). |
Thanks for your response. It seems the error I mentioned above has been fixed I am backing up channels that their names are unicode (persian language) and the messages also contain unicode characters so I wonder if it is the problem:
I have compiled the test branch that you have mentioned tg@ca8c525 . |
Looks like you are running into this issue now: Try the temporary solution suggested there :) |
Alternatively, you could make a special configuration file for dumping channels only (set |
Thanks changing the chunk size and chunk timeout makes it work. but it only gives me 100 messages from each channels I tried changing the chunk size and chunk timeout to make right but it has no effect on the result. |
Did you try the first suggestion, recompiling tg@test with the code change suggested in vysheng/tg#947, then running with normal chunk size? If that does not work either I'm afraid I don't know a solution other than waiting until this is properly fixed by tg devs. |
Yes I have tried it. it Gives me the following error:
|
That's too bad, I wish I could do something about it but I can't. Let's hope telegram-cli development gets more active again and issues like these get fixed. The issue is unrelated to cygwin by the way, I think you probably realized that already. |
Current status of channel dumping:
|
Forgot to update this issue, both channels and supergroups can be dumped using the latest version of telegram-cli and telegram-history-dump. |
I have built the test branch like this:
git clone --recursive https://github.com/vysheng/tg.git -b test --single-branch tg-test
telegram-cli --json -P 9009
as Instructed.
I also run the "ruby telegram-history-dump/telegram-history-dump.rb" command in another terminal.
But it skips all the dialogs and says:
(It gets stuck a little bit after Attaching to telegram-cli control socket at localhost:9009 and then skips the dialogs and finishes)
I have tried changing the config.json5 But it doesn't affect anything. I have dumped history using the master branch build of telegram-cli and I didn't have any problem. but as you can see I can't dump anything with the test branch build. Any help would be appreciated.
The text was updated successfully, but these errors were encountered: