Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Redis backend for Telethon session storage

Project description

A Telethon session storage implementation backed by Redis.


This session implementation can store multiple Sessions in the same key hive.


pip3 install teleredis


pip3 install -U 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, 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)

Project details

Download files

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

Files for teleredis, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size teleredis-0.1.3-py3-none-any.whl (5.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size teleredis-0.1.3.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page