Python3 telegram bot to retrieve public IP of the Telegram bot's host machine.
Project description
telegramgetbotip
Python3 telegram bot to retrieve public IP of the Telegram bot's host machine.
Rationale:
Sometimes a DynDNS is an overkill. This bot is designed to cover the use case where you just need the IP of a network.
Installation
Install with pip
python3.8 -m pip install --user -U telegramgetbotip
Usage
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.
From the interpreter:
help(telegramgetbotip)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
telegramgetbotip-0.1.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for telegramgetbotip-0.1.0-py3.8.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93efa15db3d52c2ff9f90dafd8b5f971a5abe24fbaef251b62d169c1bce2475e |
|
MD5 | 1a48b6be62b81708d6c6159debd594d3 |
|
BLAKE2b-256 | 5647b724b73365ac80a9074c6910eb897319cdff1f3ce2a73204ca4079313d1a |