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.
The Bot Token file must contain the bot ID in JSON format. { "token": "token_string" (str) }
The ids's file must contain the IDs in JSON format. { "name": id (int) }
You can get your Telegram ID from @userinfobot You can register your Telegram Bot from @BotFather
From the interpreter:
help(telegramgetbotip)
Metadata
Release files for telegramgetbotip 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| telegramgetbotip-0.1.4.tar.gz | 3.6 kB | Without provenance | Details |
Release files / telegramgetbotip-0.1.4.tar.gz
| Download URL | telegramgetbotip-0.1.4.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3394250b7d7ec3d46f9971669b1dd745af01b0f3594dcd6441d910ad68695f2a
|
|
BLAKE2b-256 checksum How to use checksums |
6f0ad58f3d0b313bf16310ba409c8bc6e84f88a31b26f909750252fd7d0a5d58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0
|
Security for telegramgetbotip 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.