Skip to content

This Telegram bot allows you to perform speed tests for your server using the Smart-Tool Speedtest API. It measures the download speed, upload speed, and ping time of your server's internet connection and provides the results in a formatted manner.

Notifications You must be signed in to change notification settings

myydrivespace/speedtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Smart-Tool Speedtest Bot

This Telegram bot allows you to perform speed tests for your server using the Smart-Tool Speedtest API. It measures the download speed, upload speed, and ping time of your server's internet connection and provides the results in a formatted manner.

Features

  • Performs speed tests for your server's internet connection
  • Displays the download speed, upload speed, and ping time
  • Provides information about the internet provider

Usage

  1. Type /speedtest to initiate the speed test.
  2. The bot will calculate your server's speed and display the results.

How It Works

  • The bot utilizes the speedtest-cli library to perform the speed test.
  • It measures the download speed by downloading a file from the nearest server, the upload speed by uploading a file, and the ping time by testing the connection latency.
  • The results are then displayed in a formatted manner, including the download speed, upload speed, ping time, and internet provider.

Requirements

  • Python 3.7 or higher
  • aiogram library
  • speedtest-cli library

Installation

  1. Clone the repository: git clone https://github.com/bisnuray/speedtest

  2. Install the required dependencies

  3. Update the bot_token variable in the main.py file with your Telegram bot API token obtained from the BotFather.

  4. Run the bot: python main.py

Author

Feel free to reach out if you have any questions or feedback.

Please note that the README assumes you have created a Telegram bot and obtained the API token from the BotFather. Additionally, it provides instructions on how to install and run the bot. You may need to update the installation and execution steps if necessary.

About

This Telegram bot allows you to perform speed tests for your server using the Smart-Tool Speedtest API. It measures the download speed, upload speed, and ping time of your server's internet connection and provides the results in a formatted manner.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages