Skip to content

TelegramPlayground/bmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eXperiment: Testing Telegram Download Upload Speed using Different Client Libraries

How ?

  • Login using Telegram APP_ID, API_HASH, BOT_TOKEN.
  • Configure the client library.
    • TG_SESSION is only used by the gogram and pyrogram libraries at the moment. Why
    • FLOOD_WAIT_SLEEP_TIME: to automatically sleep for longer time to avoid FLOOD_*_WAIT_ from Telegram. This is only used by the pyrogram, telethon, grammers and mtkruto libraries.
    • Rewrite abandoned fork import names, if required.
    • Add boost capability if required by the library.
  • Get a 2GB Telegram Message using MESSAGE_LINK.
  • Download the message.
  • Calculate time.
  • Upload the saved file to the same chat.
  • Calculate time.
  • Logout from Telegram. (ideally, but currently this is not done by the scripts.)
  • Write to the appropriate file in the outputs directory.

Motivation

Actions Secrets used in this Repository

Abandoned

The account which had created the bot used for the upload process was banned by Telegram without any notification or justification.

I came to know of the ban only upon checking the actions logs.

Credits