E
E
estry2021-10-23 20:20:20
Python
estry, 2021-10-23 20:20:20

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

1 answer(s)
E
estry, 2021-10-23
@estry

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 your question

Ask a Question

731 491 924 answers to any question