TelegramApiSever now supports MadelineProto EventHandler.
Connect to ws://127.0.0.1:9503/events
to subscribe to all events from running MadelineProto. Each event stored inside object, where key is name of session which created event.
When using CombinedAPI (multiple account) name of session can be added to path of websocket endpoint: ws://127.0.0.1:9503/events/session_name
. This endpoint will emmit events only from given session.
PHP websocket client example: websocket-events.php