Telethon Session
Project description
Django Telethon Session
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_session',
...
]
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_session.sessions import DjangoSession
client = TelegramClient(DjangoSession())
Feel free to send pull requests or report issues!
Project details
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_session-0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd77794141bb61ebd29a80ae1b639a6e0e046622e66bb01b7d3ba663f79ace06 |
|
MD5 | 5dbab48c4c1c6ae684d2bfd031e24bb1 |
|
BLAKE2b-256 | fbe2d7d49de8eca665e65e9aedd62c17fbc2534d197c007a8c5c24bdefdf5339 |
Close
Hashes for django_telethon_session-0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 601e84e642f24b94c5e5d0028f698561312a0f98ac5c53ff52ecab3399e4fc80 |
|
MD5 | dcf89c58e9f178481b16b0d0b2ff74da |
|
BLAKE2b-256 | 5f70076207fc59c678ba159819575566d155fdc2be6bf86680dd7ebf204410d8 |