Setup
You can find the package, here.
pip3 install redis-persistence
Requirements
- Python 3.8
- Redis 3.5
Import
from redispersistence.persistence import RedisPersistence
Usage
You need to use this persistence with pyton-telegram-bot module.
redis_instance = Redis(host='localhost', port=6379, db=0)
persistence = RedisPersistence(redis_instance)
updater = Updater(BOT_TOKEN, persistence=persistence)
Release files for redis-persistence 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| redis-persistence-0.0.4.tar.gz | 2.9 kB | Details |
Release files / redis-persistence-0.0.4.tar.gz
| Download URL | redis-persistence-0.0.4.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77f5b4ca7548faf5bf72be61120b85877db68c8d2da795c31d61bdbfaaa044a9
|
|
BLAKE2b-256 checksum How to use checksums |
938eba1f456c79c6f130464f7962f2febafeb707cc5851458d9d1b358b5bf008
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|