Telethon: PeerChannel cannot find some Channels by channel_id

Created on 14 Jun 2018  路  3Comments  路  Source: LonamiWebs/Telethon

Hi!
First of all thanks for this amazing library. I'm using these lines to get channel_info by channel_id:

entity = client.get_entity(PeerChannel(channelName))
fullchn = client.invoke(GetFullChannelRequest(entity))

It works for the majority of channels (even if they are private, if user is member of the channel), but today I found a channel where this does not work and returns:

Could not find the input entity for "PeerChannel(channel_id=1198432346)". Please read ... for more details.

The ID is correct.
Thanks

Most helpful comment

Solved by adding dialogs = client.get_dialogs(), didn't paid attention to it as it worked well 馃憤
Thanks

All 3 comments

Please read ...

Did you read that link?

Also, thanks! Glad you like the library. I hope you like the documentation just as much, I put a lot of time into writing it :)

Solved by adding dialogs = client.get_dialogs(), didn't paid attention to it as it worked well 馃憤
Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chri1389 picture chri1389  路  6Comments

justxor picture justxor  路  4Comments

Jinqad picture Jinqad  路  6Comments

Fleyderer picture Fleyderer  路  3Comments

aminhyper picture aminhyper  路  3Comments