Merge pull request #116 from Surzhikov/patch-1

Update README.md
This commit is contained in:
Alexander Pankratov 2023-02-01 22:29:02 +01:00 committed by GitHub
commit 57f3c6f2b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,11 +46,12 @@ Fast, simple, async php telegram api server:
## First start
1. Get app_id and app_hash at [my.telegram.org](https://my.telegram.org/).
Only one app_id needed for any amount of users and bots.
1. Create .env file: `cp .env.docker.exaple .env.docker` or `cp .env.exaple .env`
1. Create .env file: `cp .env.docker.example .env.docker` or `cp .env.example .env`
1. Fill app_id and app_hash in `.env.docker` or `.env`.
1. Start TelegramApiServer in cli:
* docker:
1. Start container interactively: `docker-compose run --rm telegram-api-server`
2. If you need to start multiple sessions, create docker-compose.override.yml. Add additional containers there. Use unique ports and session names in command.
* manual:
1. `php server.php --session=session`
1. Authorize your session: