Skip to main content

Telethon Session

Project description

!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!

Project details


Release history Release notifications | RSS feed

This version

0.5

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_telethon_multisession-0.5.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file django_telethon_multisession-0.5.tar.gz.

File metadata

  • Download URL: django_telethon_multisession-0.5.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for django_telethon_multisession-0.5.tar.gz
Algorithm Hash digest
SHA256 e7efbe856c70d9da9eef60ca0ab9c934a7b641ff9ea15cbac781c766dc386e12
MD5 5e2797832edcd30056c2e82ce69dc2dd
BLAKE2b-256 aaf6e67418d339e9a4bf3d18da18e991f093f1c467c8e0b5bca9a8fa1bf0d680

See more details on using hashes here.

File details

Details for the file django_telethon_multisession-0.5-py3-none-any.whl.

File metadata

  • Download URL: django_telethon_multisession-0.5-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for django_telethon_multisession-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ed8927ca50ebc5810ca0457d708c6602c93ddb8348637ec247563b0919851b5b
MD5 44d1366d48aba1c71a8f43a9110636e6
BLAKE2b-256 6c43b71fdea36d98fd290d6d2ab9945cc977024b38ef02fbe326cc89496ff6c4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page