Telegram bot that provides local and public IP addresses
Get your local and public IP addresses with web access URLs. Interactive inline keyboard navigation, simple and user-friendly interface.
web_app_tg_bot — a Telegram bot that provides local and public IP addresses with web access URLs. Interactive inline keyboard navigation, simple and user-friendly interface.
# Clone the repository git clone https://github.com/aixandrolab/web_app_tg_bot.git cd web_app_tg_bot # Create and activate virtual environment python -m venv venv source venv/bin/activate # Install dependencies pip install -r requirements.txt
Create a .env file in the root directory:
# Telegram Bot Token (required) TOKEN=your_telegram_bot_token_here # Application Settings PORT=8000 WEB_APP_TITLE=🌐 IP Address Bot WEB_APP_DESCRIPTION=Get your local and public IP addresses with web access URLs
| Variable | Description | Required | Default |
|---|---|---|---|
TOKEN | Telegram Bot API token from @BotFather | Yes | - |
PORT | Port number for web access URLs | No | 8000 |
WEB_APP_TITLE | Title displayed in bot messages | No | "🌐 IP Address Bot" |
WEB_APP_DESCRIPTION | Description text in welcome message | No | - |
web_app_tg_bot/ ├── .env # Environment variables ├── .gitignore # Git ignore file ├── bot.py # Main bot application ├── utils/ │ └── get_ip.py # IP address utilities ├── requirements.txt # Python dependencies └── README.md # Documentation
Start the bot:
python bot.py
Interact with the bot on Telegram:
/start commandNone if IP detection failsBy using this software, you agree to the full disclaimer terms.
Software provided "AS IS" without warranty. You assume all risks.
Full legal disclaimer: See DISCLAIMER.md
License: BSD 3-Clause License