danog / MadelineProto

Async PHP client API for the telegram MTProto protocol
https://docs.madelineproto.xyz
GNU Affero General Public License v3.0
2.8k stars 636 forks source link

help, get the history. #1360

Closed indevor closed 1 year ago

indevor commented 1 year ago

Hi! Can you tell me how to get the history of the last 10 messages per channel, in a loop, with a new event handler. Maybe someone has an example to push off. It's hard to document... Thanks!

danog commented 1 year ago

Here's a full example: https://github.com/danog/MadelineProto/blob/v8/examples/bot.php