Telegram Bot which can retrieve IP information
- clone repository
git clone https://github.com/dmdhrumilmistry/ip_user_info_telegram_bot.git
- change directory to ip_user_info_telegram_bot
cd ip_user_info_telegram_bot
- Install requirements
pip3 install -r requirements.txt
- Update ipinfo.io and Telegram tokens in main.py on line 5 and 6 respectively.
- Start bot
python3 main.py
- Get token from Bot Father
- Use /newbot command to start a new bot
- Enter Name
- enter bot username ending with bot such as ip_user_info_bot
- update token in main.py
- Sign Up on ipinfo.io
- Copy generated access token
- update token in main.py
Command | Description |
---|---|
/start | get chat id and user details |
/help | get help menu |
/getinfo [IP] | get details of IP |
Python
- PyTelegramBotAPI
Telegram Bot Token
Ipinfo Access Token
- Create an issue
- Fork the repo, update script and create a Pull Request