xtrime-ru / TelegramApiServer

Fast, simple, async php telegram api server: MadelineProto + Amp HTTP Server
https://tg.i-c-a.su
MIT License
574 stars 127 forks source link

not an issue - question on functionality #114

Closed johndpope closed 1 year ago

johndpope commented 1 year ago

I like the idea of using this backend which sits in front of telegram api. I'm building ios app - but one thing I need is to mark the messages (from a specific group as seen). (so on subsequent revisits - viewer is presented with fresh content.) Does this / could this api support that?

xtrime-ru commented 1 year ago

Sure. Here is what i found in methods list: https://docs.madelineproto.xyz/API_docs/methods/

Снимок экрана 2023-01-30 в 20 50 17

One of them is what you need. Also you dont need to mark messages, you can just save last id and fetch messages with greater id in messages.getHistory method.

johndpope commented 1 year ago

cool - looks good.