Skip to main content

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

redis-persistence-0.0.4.tar.gz (2.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page