Skip to main content

Python3 telegram bot to retrieve public IP of the Telegram bot's host machine.

Project description


Python3 telegram bot to retrieve public IP of the Telegram bot's host machine.


Sometimes a DynDNS is an overkill. This bot is designed to cover the use case where you just need the IP of a network.


Install with pip

python3.8 -m pip install --user -U telegramgetbotip


From shell:

$ python3.8 telegramgetbotip -h
usage: telegramgetbotip [-h] [-v] [-t TOKENFILE] [-i IDSFILE] [-d DELTA]

Telegram Bot to get the public IP where the bot is hosted on.

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Verbosity.
  -t TOKENFILE, --tokenfile TOKENFILE
                        Bot token file.
  -i IDSFILE, --idsfile IDSFILE
                        Allowed Telegram IDs file.
  -d DELTA, --delta DELTA
                        Time between queries.

The Bot Token file must contain the bot ID in plain text. The ids's file must contain an ID in each line of the document (separated by "\n")

You can get your Telegram ID from @userinfobot You can register your Telegram Bot from @BotFather

From the interpreter:


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for telegramgetbotip, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size telegramgetbotip-0.1.3.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page