xtrime-ru / TelegramApiServer

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

The first step is to set the session #144

Open lambq opened 8 months ago

lambq commented 8 months ago

Warning: file_put_contents(sessions/users/(.settings.json): Failed to open stream: No such file or directory in /app-host-link/src/Files.php on line 77

http://*:9503/system/saveSessionSettings?session=users/*&settings[app_info][app_id]=*&settings[app_info][app_hash]=*

xtrime-ru commented 8 months ago

Please provide settings in .env.docker file. If you need multiple accounts, then i recommend to create multiple containers via docker-compose.override.yml. You will need to provide different session names and ports. Optionally you can provide different path to .env.docker in arguments "command". Check README for additional info.

xtrime-ru commented 8 months ago

Also you can manually put settings.json in session folder, but its schema can be complicated and its easy to make mistake.