Skip to content

CraftStick/IPBot-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🌍 IP Info Telegram Bot

Python Version License Telegram Status

A Telegram bot that shows your public IP address with detailed location information including country flags, city, ISP, and coordinates.

✨ Features

Feature Description
πŸ“ IP Address Detection Shows your current public IP
πŸ‡ΊπŸ‡Έ Country with Flag Country name with emoji flag (πŸ‡ΊπŸ‡Έ, πŸ‡·πŸ‡Ί, πŸ‡ͺπŸ‡Ί, etc.)
πŸ™οΈ Location Details City, region, timezone information
πŸ“‘ Network Info Internet Service Provider (ISP) details
πŸ—ΊοΈ Map Integration Show location on OpenStreetMap
πŸ”„ Real-time Updates Refresh information anytime
🎯 User-friendly Simple buttons and intuitive commands

πŸ“Έ Screenshots

Main Interface

πŸ‘‹ Hello, User!

Your current IP: 123.45.67.89 πŸ‡ΊπŸ‡Έ Country: United States πŸ™οΈ City: New York

Select an action: [πŸ”„ Refresh Info] [πŸ“Š Full Details] [πŸ“ Show on Map]

Full Details

πŸ“ Your IP Information:

  • 🌐 IP Address: 123.45.67.89
  • πŸ‡ΊπŸ‡Έ Country: United States
  • πŸ™οΈ City: New York
  • πŸ—ΊοΈ Region: New York
  • πŸ• Timezone: America/New_York
  • πŸ“‘ ISP: Comcast Cable
  • πŸ“ Coordinates: 40.7128, -74.0060
  • 🌍 Open in Google Maps

πŸš€ Quick Start

1. Prerequisites

  • Python 3.7 or higher
  • Telegram account
  • Bot token from @BotFather

2. Installation

# Clone the repository
git clone https://github.com/CraftStick/IPBot-telegram.git
cd IPBot-telegram

# Install dependencies
pip install -r requirements.txt
3. Configuration
bash
# Copy example config
cp config.example.py config.py

# Edit config.py and add your bot token
# Get your token from @BotFather on Telegram
4. Run the Bot
bash
python bot.py
πŸ“– Usage
Commands
Command	Description
/start	Start the bot and show main menu
/info	Get full IP information
/help	Show help message
Buttons
Button	Action
- πŸ”„ Refresh Info	Update IP data
- πŸ“Š Full Details	Extended information
- πŸ“ Show on Map	Open location on map
- πŸ› οΈ Technical Details
API Used
ip-api.com - Free IP geolocation service

Rate limit: 45 requests per minute

No API key required for basic usage

Dependencies
pyTelegramBotAPI - Telegram Bot API wrapper

requests - HTTP library for API calls

Installation via pip
bash
pip install pyTelegramBotAPI requests
πŸ“ Project Structure
text
IPBot-telegram/
β”œβ”€β”€ bot.py              # Main bot application
β”œβ”€β”€ requirements.txt    # Python dependencies
β”œβ”€β”€ config.example.py   # Example configuration
β”œβ”€β”€ README.md          # Documentation
└── .gitignore         # Git ignore rules
🀝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.

Fork the repository

Create your feature branch (git checkout -b feature/AmazingFeature)

Commit your changes (git commit -m 'Add some AmazingFeature')

Push to the branch (git push origin feature/AmazingFeature)

Open a Pull Request

πŸ“„ License
This project is licensed under the MIT License - see the LICENSE file for details.

⭐ Support
If you find this project useful, please give it a star on GitHub!

πŸ“ž Contact & Links
GitHub: CraftStick

Repository: IPBot-telegram

Report Issues: GitHub Issues

About

TelegramBotIP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages