Redis backend for Telethon session storage
Project description
A Telethon session storage implementation backed by Redis.
Usage
This session implementation can store multiple Sessions in the same key hive.
Installing
pip3 install teleredis
Quick start
from telethon import TelegramClient from teleredis import RedisSession import redis # These example values won't work. You must get your own api_id and # api_hash from https://my.telegram.org, under API Development. api_id = 12345 api_hash = '0123456789abcdef0123456789abcdef' redis_connector = redis.Redis(host='localhost', port=6379, db=0, decode_responses=False) session = RedisSession('session_name', redis_connector) client = TelegramClient(session, api_id, api_hash) client.start()
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
teleredis-0.1.2.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for teleredis-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82e4e4f43c9bf8dfce4e92795fca47d3d3a8b9f5d0c5f5480839aa99d5f42602 |
|
MD5 | 91ab808ed42d48c413a3b796b2559cf5 |
|
BLAKE2b-256 | fa9165e7724c875de0c8bb2c25d9bb5e3261cfaef342705b7059d91419dbb103 |