xtrime-ru / TelegramApiServer

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

Add sessions #24

Closed Maverick1983 closed 4 years ago

Maverick1983 commented 4 years ago

I have this error, when I call curl http://127.0.0.1:9503/system/addInstance?session=users/cloud

{ "success": false, "errors": [ { "code": 0, "message": "Call to undefined method TelegramApiServer\\MadelineProtoExtensions\\SystemApiExtensions::addInstance()" } ], "response": null }

xtrime-ru commented 4 years ago

Thank you for feedback! Fixed method names in readme. Should be: curl "http://127.0.0.1:9503/system/addSession?session=users/cloud"

https://github.com/xtrime-ru/TelegramApiServer/commit/2d1d3c1876158424e08edf30e4b0d688ae227220