mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Handlers and Middlewares processing union
Call for handlers now union in a single function for future extension. Plus minor fixes in storages.
This commit is contained in:
@ -16,6 +16,7 @@ class StateRedisStorage(StateStorageBase):
|
||||
TeleBot(storage=StateRedisStorage())
|
||||
"""
|
||||
def __init__(self, host='localhost', port=6379, db=0, password=None, prefix='telebot_'):
|
||||
super().__init__()
|
||||
self.redis = ConnectionPool(host=host, port=port, db=db, password=password)
|
||||
#self.con = Redis(connection_pool=self.redis) -> use this when necessary
|
||||
#
|
||||
|
Reference in New Issue
Block a user