xtrime-ru / TelegramApiServer

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

Get updates when madeline is not running #89

Closed AmirHosseinKarimi closed 2 years ago

AmirHosseinKarimi commented 2 years ago

Hi. I used TelegramApiServer in production and connected via WebSocket to receive the updates and handle them.

But now, I realize it doesn't send the updates received when the Madeline and TelegramApiServer are down.

So, I am looking for a way to receive these updates when they become online via a WebSocket connection. Is there any way to achieve this?

xtrime-ru commented 2 years ago

Hi! This is looks like bug. Non received updates should be delivered after start of madelineProto. Please, create issue in MadelineProto repo or ask in MadelineProto support group. Few years ago madeline had option handle_old_updates (its still in TAS config), but currently its ignored. Maybe some logic was broken after refactoring...

AmirHosseinKarimi commented 2 years ago

Looks like it was from the TelegramApiServer WebSocket interface and now it is fixed.