esin / telegram_online

Telegram client to be forever online
59 stars 9 forks source link

how to run it #4

Open ignat-admin opened 6 months ago

ignat-admin commented 6 months ago

I don't quite understand how to run this application, can you explain in more detail?

esin commented 6 months ago
  1. You should have Linux
  2. You should install Docker
  3. Clone telegram_online
  4. Run ./run_docker.sh and enter necessary information
  5. Press ctrl+s to stop container
  6. Run again ./run_docker.sh :)
  7. Done
ignat-admin commented 6 months ago

Will it be possible to run this on Windows?

esin commented 6 months ago

Well, really - don't know Don't have any Windows :(

I think, if you have Docker, you can try to open run_docker.sh with notepad and copy commands from it into command line and may it will work

May be(!) run_docker.sh will work with WSL (have never seen it, but hope dies last)

ignat-admin commented 6 months ago

I did, you need to create a .py file and place it in a shared folder, here are its contents: import os

if not os.path.exists("session.madeline"): print("First run") os.system('docker run -ti -v %cd%:/app hub.madelineproto.xyz/danog/madelineproto:latest php /app/online.php') else: os.system('docker run --restart always -d --name telegram_online -v %cd%:/app hub.madelineproto.xyz/danog/madelineproto:latest php /app/online.php')

ignat-admin commented 6 months ago

а можно эту прогу сделать без докера, он чет комп грузит

esin commented 6 months ago

а можно эту прогу сделать без докера, он чет комп грузит

Да, конечно, но необходимо настроить окружение для запуска php скрипта

Готовый docker образ обеспечивает это окружение