mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-30 04:19:13 +01:00
commit
57f3c6f2b4
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user