jacopofar / telegram-cli

Dockerized Telegram CLI fork
2 stars 1 forks source link

How to install in Synology Docker #1

Open TBR-BRD opened 2 years ago

TBR-BRD commented 2 years ago

Hi, thank you for your work. Can you please describe how to install the container eg in Synology Docker. My goal is the same function as on my RPi. crontab on RPi: @reboot sleep 60 && screen -dmS TelegramCLI /home/pi/tg/bin/telegram-cli -s /home/pi/tg/rpicontrol.lua -k -P 54321 /home/pi/tg/tg-server.pub Thank you

jacopofar commented 2 years ago

Hello, I have no idea what is Synology docker and how different it is from the usual Docker command, but assuming they are the same you can try to use:

docker run -it jacopofar/telegram-cli

and it should download and start an interactive telegram-cli session.

However I see now that it probably doesn't work, unfortunately this script is unmaintained, the Telegram protocol is super weird and I don't know much of Lua, so I cannot really figure out how to fix it. In fact I created this repo because it gave random segfaults in 2019 and hoped to avoid it.

What I do these days is to use Telethon, which is up to date and well documented. Hope it helps