telegram-export icon indicating copy to clipboard operation
telegram-export copied to clipboard

Export a group

Open llann opened this issue 7 years ago • 1 comments

I'm trying to export a group, but I systematically get an error

File "/mnt/d/Dev/Perso/telegram-export/venv/lib/python3.5/site-packages/telethon/client/users.py", line 297, in get_input_entity .format(peer) ValueError: Could not find the input entity for "-123456789123". Please read https://telethon.readthedocs.io/en/latest/extra/basic/entities.html to find out more details.

In .ini file, I get this

# Blacklist = @username : this is a comment, -1001132836449 :another comment,
# +12345678, +232525252 : the previous phone number had no comment.
# Phones must start with '+'  as shown. Usernames can be with or without @
Whitelist = -123456789123
# Don't forget your commas! If you miss one after a comment, everything until
# the next comma will be treated as a comment.

It's working perfectly with a username.

The strange thing is that when I let the Whitelist empty., the group is exported and with the same ID that is in my .ini file. I get this id by running the --list-dialogs command line.

I tried to install telethon 1.1.1 as 1.2 is 6 days old, but still, I got the error.

I use the last version of the code that I just git pulled.

I'm probably missing something stupid, but I can't get it right now.

Thanks for your help :)

llann avatar Aug 20 '18 20:08 llann

Just checking, are you putting "123456789123" in your config?

expectocode avatar Sep 27 '18 12:09 expectocode