A
A
Alexey Poloz2017-11-06 23:28:53
Python
Alexey Poloz, 2017-11-06 23:28:53

Python Telethon How to get channel message history?

We can receive messages with this method:
client.get_message_history(id)
But how do we receive channel messages?
if a channel is passed to id, an error occurs:


ValueError: Could not find the input entity corresponding to "PeerUser(user_id=-digitsdigits)".Make sure you have encountered this peer before.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question