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

Export a group #81

Open
llann opened this issue Aug 20, 2018 · 1 comment
Open

Export a group #81

llann opened this issue Aug 20, 2018 · 1 comment

Comments

@llann
Copy link

llann commented Aug 20, 2018

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 :)

@expectocode
Copy link
Owner

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

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

2 participants