Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

How to Install and Run #90

Open
ElliotP123 opened this issue Oct 17, 2018 · 12 comments
Open

How to Install and Run #90

ElliotP123 opened this issue Oct 17, 2018 · 12 comments

Comments

@ElliotP123
Copy link

Good Morning,

I have pip installed telegram_export but I'm unsure how/where to add the config file or how to encourage telegram dump to run.

I have installed my python environment through anaconda and usually just work with data in jupyter notebook/pycharm.

This is an unbelievable tool by the way, thank you so much to the development team.

@Lonami
Copy link
Collaborator

Lonami commented Oct 17, 2018

Try python3 -m telegram_export.

@ElliotP123
Copy link
Author

@Lonami Thanks for the quick response. Works perfectly, I'll let you know how I go.

@ElliotP123
Copy link
Author

ElliotP123 commented Oct 18, 2018

I'm having a few teething issues getting it all up and running. I have updated all of my packages to be safe.

I have edited my config.ini file now a few times now and this seems to helping solving the issue. Once I setup the logging/error level to 'debug' I can see that it is being throttled or slowed. I will leave it running for a while to see what progress it can make.

@ElliotP123
Copy link
Author

ElliotP123 commented Oct 18, 2018

Here is my config file if anyone can spot an issue:
(removed config.ini file)

@ElliotP123
Copy link
Author

I left it running and came back from lunch to find my account has been banned. I tried to log back into telegram and it just says "this phone number is banned". Help?

@Lonami
Copy link
Collaborator

Lonami commented Oct 18, 2018

Sorry to hear that your account was banned. Sometimes Telegram randomly decides to ban legit use cases like this one, and you need to send them an email. You're not alone (a lot of affected people in LonamiWebs/Telethon#824).

Emails: login@stel.com, recover@telegram.org.

If those don't work, abuse@telegram.org, https://telegram.org/support and DM to https://twitter.com/smstelegram may be worth trying.

@ElliotP123
Copy link
Author

Thank you, I will email those and see how I go.

@cantorio
Copy link

Had the same issue today. Emailed telegram-support and they unbanned my number.

@ElliotP123
Copy link
Author

They unbanned me as well. Thank you so much @Lonami, you are a life saver.

@ElliotP123
Copy link
Author

ElliotP123 commented Nov 8, 2018

Afternoon,

I can make a new issue if that's better.

I am trying to download the chat data for a large (5k members) that I'm moderating. My export has been stuck for nearly the past hour without making any progress on downloading the messages from the group. I have downloaded cryptg before I started this so I'm not sure.

Here is my config file:
config.txt

Here is a readout of the log:

tes...
2018-11-08 16:04:31,566 - telethon.network.mtprotosender - DEBUG - Sending 88 by
tes...
2018-11-08 16:04:31,568 - telethon.network.mtprotosender - DEBUG - Outgoing mess
ages 6621598632088519384 sent!
2018-11-08 16:04:31,568 - telethon.network.mtprotosender - DEBUG - Outgoing mess
ages 6621598632088519384 sent!
2018-11-08 16:04:31,887 - telethon.network.mtprotosender - DEBUG - Decoding pack
et of 88 bytes...
2018-11-08 16:04:31,887 - telethon.network.mtprotosender - DEBUG - Decoding pack
et of 88 bytes...
2018-11-08 16:04:31,889 - telethon.network.mtprotosender - DEBUG - Handling pong
 for message 6621598632068518924
2018-11-08 16:04:31,889 - telethon.network.mtprotosender - DEBUG - Handling pong
 for message 6621598632068518924
2018-11-08 16:04:31,891 - telethon.network.mtprotosender - DEBUG - Receiving ite
ms from the network...
2018-11-08 16:04:31,891 - telethon.network.mtprotosender - DEBUG - Receiving ite
ms from the network...
entities: 100%|¦¦¦¦¦¦¦¦¦¦¦¦| 2/2 [56:46<00:00,  1.38 entities/s, chat=Telegram]
media:   0%|                        | 0.00/44.6k [56:46<?, ?B/s, chat=Telegram]

@expectocode
Copy link
Owner

Thanks for uploading your config file and log, it helps with debugging a lot.
Currently, media downloading does present some problems. Telegram's API can be quite tricky to safely work with, and the two of us don't have a lot of time for the project.
Related: #51

Also, I think creating a folder specifically for the dump is a good idea - it will make a usermedia folder inside.

By the way, you left your phone number in your config file. Might want to edit that.

@ElliotP123
Copy link
Author

Thank you, I will try to download into a file with media switched off and let you know.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants