You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a service called telegram-mtproto-gateway-worker. The idea is to manage multiple Telegram sessions and run an Amp\Http\Server in the same process.
So far I need to:
expose these endpoints: /sessions/start /sessions/code /sessions/password /sessions/signup /rpc/:sessionId (JSON-RPC)
send webhooks from EventHandler for incoming message events
be able to add new sessions while the service is already running
The last part is what I'm not sure about.
For example, a user enters their phone number in the UI. I need to create and start a new session without affecting the existing ones and without restarting the whole service.
I already have the first two parts working, but I'm not sure whether this is the right way to handle sessions with MadelineProto, or if it's even possible.
Has anyone built something similar? How did you solve it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm building a service called telegram-mtproto-gateway-worker. The idea is to manage multiple Telegram sessions and run an Amp\Http\Server in the same process.
So far I need to:
expose these endpoints:
/sessions/start/sessions/code/sessions/password/sessions/signup/rpc/:sessionId (JSON-RPC)send webhooks from EventHandler for incoming message events
be able to add new sessions while the service is already running
The last part is what I'm not sure about.
For example, a user enters their phone number in the UI. I need to create and start a new session without affecting the existing ones and without restarting the whole service.
I already have the first two parts working, but I'm not sure whether this is the right way to handle sessions with MadelineProto, or if it's even possible.
Has anyone built something similar? How did you solve it?
All reactions