Categories
How to get all posts from a channel in pyrogram?
Hello. Is there a method in pyrogram to get posts from a channel? There is a get_messages method to get messages by id. But you still need to get the message id. It probably won't fit...
Answer the question
In order to leave comments, you need to log in
Found a solution:
app = Client("D:/1234156.session") app.start() for dialog in app.get_history('channels'): pass
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question