This Python bot reports speedtests to a Telegram channel.
sudo apt install python3 python3-pip
sudo pip3 install python-telegram-bot speedtest-cliCreate the file config.json in the root directory of this project,
which has the following format:
{
"telegram": {
"token": "abc...",
"channel": "@channel_xy"
}
}
Write to the account @BotFather the message /newbot and follow the
instructions. Enter the retreived token to the token property in
config.json
Create a Telegram channel and add your created bot as an admin with the
privileges to post messages. Then add the name of the created channel
(with a leading @) to the channel property in config.json. Make
shure your channel is public, otherwise it will not work.
python3 . If you want to run the script repeatedly, you can create a cronjob for that.