Telethon Session
Project description
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_telethon_multisession-0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7efbe856c70d9da9eef60ca0ab9c934a7b641ff9ea15cbac781c766dc386e12 |
|
MD5 | 5e2797832edcd30056c2e82ce69dc2dd |
|
BLAKE2b-256 | aaf6e67418d339e9a4bf3d18da18e991f093f1c467c8e0b5bca9a8fa1bf0d680 |
Close
Hashes for django_telethon_multisession-0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed8927ca50ebc5810ca0457d708c6602c93ddb8348637ec247563b0919851b5b |
|
MD5 | 44d1366d48aba1c71a8f43a9110636e6 |
|
BLAKE2b-256 | 6c43b71fdea36d98fd290d6d2ab9945cc977024b38ef02fbe326cc89496ff6c4 |