Skip to main content

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 plain text. The ids's file must contain an ID in each line of the document (separated by "\n")

From the interpreter:

help(telegramgetbotip)

Metadata

Release files for telegramgetbotip 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for telegramgetbotip 0.1.1
File Size Uploaded
telegramgetbotip-0.1.1.tar.gz 3.5 kB Details

Release files / telegramgetbotip-0.1.1.tar.gz

Download URL telegramgetbotip-0.1.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
87f95dcbab4c984f7d1dd2ee09ae912ec1eacc247e1093c92ec9b2c897f7c104
BLAKE2b-256 checksum
How to use checksums
86395dec5cb6991f5827496698dba85cabdb5c5d3e1f36782ea7838263782c59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

Release history Release notifications | RSS feed

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

This release

0.1.1 This release

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page