This python script use the Telegram API to send the changes in the public IP of the local machine.
Requirements:
- Create a bot in telegram (i.e. using @BotFather) and take the token.
- Send a message to the bot through Telegram from the user/group that should receibe the bot's messages.
- Make a post request to Telegram API with method getUpdates and take the chatid.
- Put token in the bot.py file, in the line: token = "bot..." # Dont use separators between "bot" and the token, example: token = "bot123456789:AbCdEfGhIjKlMnOpQrStUvWxYz"
- Put chatid in the bot.py file, in the line: chatID = # Dont use "", put only the ID number, example: chatID = 123456789
- Install python3 and python3-pip
- install requests (pip3 install requests)