Giter Club home page Giter Club logo

telegram-speedtest-bot's Introduction

Telegram speedtest bot

This Python bot reports speedtests to a Telegram channel.

Install dependencies

sudo apt install python3 python3-pip
sudo pip3 install python-telegram-bot speedtest-cli

Create config file

Create the file config.json in the root directory of this project, which has the following format:

{
    "telegram": {
        "token": "abc...",
        "channel": "@channel_xy"
    }
}

Create a Telegram bot

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

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.

Run the script

python3 . 

If you want to run the script repeatedly, you can create a cronjob for that.

telegram-speedtest-bot's People

Contributors

philipptrenz avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.