Skip to main content

!alt text alt text

Django Telethon MultiSession

A Telethon session storage implementation backed for Django ORM to use telethon in django projects.

Tested with:

  • Python 3.7+
  • Django 2.2+

Use the following command to install using pip:

pip install django-telethon-session

Usage example

Usage is very simple, just follow three simple steps below

Add Django-Telethon-Session to your installed apps

First add django telethon session to your installed apps in your django project settings:

INSTALLED_APPS = [
    ...,
    'django_telethon_session2',
    ...
]

Migrate the database

Then run migrate command to create migrations in database.

python manage.py migrate

Use custom session

Use the session in django_telethon_session.sessions to initialize telegram client:

from django_telethon_session2.sessions import DjangoSession
client = TelegramClient(DjangoSession())

Feel free to send pull requests or report issues!

Metadata

Release files for django-telethon-multisession 0.5

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

Source distribution (sdist)

Source distribution for django-telethon-multisession 0.5
File Size Uploaded Provenance
django_telethon_multisession-0.5.tar.gz 8.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-telethon-multisession 0.5
File Interpreter ABI Platform
django_telethon_multisession-0.5-py3-none-any.whl Python 3 none any Details

Total release size: 17.9 kB

Release files / django_telethon_multisession-0.5.tar.gz

Download URL django_telethon_multisession-0.5.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e7efbe856c70d9da9eef60ca0ab9c934a7b641ff9ea15cbac781c766dc386e12
BLAKE2b-256 checksum
How to use checksums
aaf6e67418d339e9a4bf3d18da18e991f093f1c467c8e0b5bca9a8fa1bf0d680
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / django_telethon_multisession-0.5-py3-none-any.whl

Download URL django_telethon_multisession-0.5-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed8927ca50ebc5810ca0457d708c6602c93ddb8348637ec247563b0919851b5b
BLAKE2b-256 checksum
How to use checksums
6c43b71fdea36d98fd290d6d2ab9945cc977024b38ef02fbe326cc89496ff6c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Security for django-telethon-multisession 0.5

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.

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files No provenance

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