Repository navigation
Replies: 1 comment
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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