Skip to content

abelroes/telegram-ddnsbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram DDNS Bot

A simple Python script to call a Telegram Private Bot and send an IP address based on a Docker Cronjob.

It runs every X time (as configured in crontab file - innitially for each minute) and sends a Telegram message everytime IP changes as recorded inside last_ip.txt file.

Requisites:

Running:

Create a .env file in project's root directory with yours specific variables. See .env.local for reference.

docker build -t ddns_bot .
docker-compose up -d

Stopping:

docker-compose down

Logs:

docker ps
# see your container name than substitute
docker logs ddnsbot-ddnsbot-1

References:

About

Telegram Bot service for DDNS notification

Topics

Resources

Stars

Watchers

Forks