Skip to content

PJR1988/IP_Reporter_bot-

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

IP_Reporter_bot

This python script use the Telegram API to send the changes in the public IP of the local machine.

Requirements:

  1. Create a bot in telegram (i.e. using @BotFather) and take the token.
  2. Send a message to the bot through Telegram from the user/group that should receibe the bot's messages.
  3. Make a post request to Telegram API with method getUpdates and take the chatid.
  4. Put token in the bot.py file, in the line: token = "bot..." # Dont use separators between "bot" and the token, example: token = "bot123456789:AbCdEfGhIjKlMnOpQrStUvWxYz"
  5. Put chatid in the bot.py file, in the line: chatID = # Dont use "", put only the ID number, example: chatID = 123456789
  6. Install python3 and python3-pip
  7. install requests (pip3 install requests)

About

This python script use the telegram API to send the changes in the public IP of the local machine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%