A python module to make your Telegram bot persistent using Redis
Project description
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)
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
File details
Details for the file redis-persistence-0.0.4.tar.gz
.
File metadata
- Download URL: redis-persistence-0.0.4.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77f5b4ca7548faf5bf72be61120b85877db68c8d2da795c31d61bdbfaaa044a9 |
|
MD5 | 263bdbaa55b9c5536c8a30482d4e3bf4 |
|
BLAKE2b-256 | 938eba1f456c79c6f130464f7962f2febafeb707cc5851458d9d1b358b5bf008 |