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.
- Performs speed tests for your server's internet connection
- Displays the download speed, upload speed, and ping time
- Provides information about the internet provider
- Type
/speedtest
to initiate the speed test. - The bot will calculate your server's speed and display the results.
- 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.
- Python 3.7 or higher
aiogram
libraryspeedtest-cli
library
-
Clone the repository: git clone https://github.com/bisnuray/speedtest
-
Install the required dependencies
-
Update the
bot_token
variable in themain.py
file with your Telegram bot API token obtained from the BotFather. -
Run the bot: python main.py
- Name: Bisnu Ray
- Telegram: @SmartBisnuBio
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.