OpenTFD Telegram Client inside Docker. Python 3 Alpine official image used as base image.
From OpenTFD README:
Follow the instructions to obtain Telegram API id and hash.
Create .env file with id and hash. For example:
API_ID=123456
API_HASH=1234567890abcdefghijklmn
Run container in interactive mode:
docker run \
-it --rm \
--env-file .env \
ofstudio/opentfd
Enter you phone and code to login. Press ^C when done.
Run container in daemon mode:
docker run \
-d \
--restart unless-stopped \
--name opentfd \
--env-file .env \
ofstudio/opentfd
...or using docker-compose.yaml:
version: '3'
services:
app:
image: ofstudio/opentfd
restart: unless-stopped
environment:
API_ID: ${API_ID}
API_HASH: ${API_HASH}
...run docker-compose up -d
This image defines a volume for /var/lib/opentfd for session data.
You can bind this volume to local directory by adding -v option to command line:
docker run \
-it --rm \
--env-file .env \
-v local/path/to/store/session/data:/var/lib/opentfd \
ofstudio/opentfd
...or using docker-compose.yaml:
version: '3'
services:
app:
image: ofstudio/opentfd
restart: unless-stopped
volumes:
- local/path/to/store/session/data:/var/lib/opentfd
environment:
API_ID: ${API_ID}
API_HASH: ${API_HASH}
MIT
Content type
Image
Digest
Size
43.7 MB
Last updated
over 7 years ago
docker pull ofstudio/opentfd