Skip to main content

FastTelethon helper

  • Make use of FastTelethon to upload and download files

Usage:


Installation:

pip install FastTelethonhelper

Downloads:

  • Usage
    from FastTelethonhelper import fast_download
    
  • When you need to download file,
    downloaded_location = await fast_download(client, msg, reply, download_folder, progress_bar_function)
    
    • client = Telegram Client(Required)
    • msg = The message object which has the file to be downloaded(Required)
    • reply = The message on which you want the progressbar(Optional)
    • download_folder = Location where you want file to be downloaded, defaults to ./downloads/ (Optional)
    • progress_bar_function = The function you want to use to display the string in progressbar, it needs to have 2 parameters done bytes and total bytes and must return a desired string, defaults to a function I wrote(Optional)

- The function returns the download location.

Uploads:

  • Usage
    from FastTelethonhelper import fast_upload
    
  • When you need to upload file,
    await fast_upload(client, file_location, reply, name, progress_bar_function)
    
    • client = TelegramClient(Required)
    • file_location = Where the file is located(Required)
    • reply = The message object you want the progressbar to appear(Optional)
    • name = Name of the file you want while uploading(Optional)
    • progress_bar_function = The function you want to use to display the string in progressbar, it needs to have 2 parameters done bytes and total bytes and must return a desired string, defaults to a function I wrote(Optional)
  • This function returns the file object which you can use in send_message in telethon example
    await bot.send_message(file=<what this function returns>)
    


Credits

Metadata

Release files for FastTelethonhelper 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for FastTelethonhelper 1.0.7
File Size Uploaded Provenance Actions
FastTelethonhelper-1.0.7.tar.gz 6.5 kB Without provenance Details for FastTelethonhelper-1.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for FastTelethonhelper 1.0.7
File Interpreter ABI Platform Actions
FastTelethonhelper-1.0.7-py3-none-any.whl Python 3 none any Details for FastTelethonhelper-1.0.7-py3-none-any.whl

Total release size: 13.7 kB

Release files / FastTelethonhelper-1.0.7.tar.gz

Download URL FastTelethonhelper-1.0.7.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9ca0d4fb50c5edb27964ce73e849b9ae8839b3abe4222716ffae2933e7949f44
BLAKE2b-256 checksum
How to use checksums
2d878d300152a005bfdd02ffc8dccd0d08d95a79c58e941b188263aacb269717
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.7

Release files / FastTelethonhelper-1.0.7-py3-none-any.whl

Download URL FastTelethonhelper-1.0.7-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
539359394b5c9dd288d37aa12550fd6ff35020a9158851ff3f3d922733fe86f7
BLAKE2b-256 checksum
How to use checksums
04260362aa8ee3528159f2e05e0bf8274ea7ddb8060c7ca7f08b66522c086fff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.7

Security for FastTelethonhelper 1.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page