1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Remove class static variable

This commit is contained in:
bedilbek 2020-04-13 03:17:13 +05:00
parent e7e7c58133
commit 3aec66bc0d

View File

@ -9,11 +9,10 @@ class HandlerBackend:
"""
Class for saving (next step|reply) handlers
"""
handlers = {}
def __init__(self, handlers=None):
if handlers:
self.handlers = handlers
if handlers is None:
handlers = {}
self.handlers = handlers
def register_handler(self, handler_group_id, handler):
raise NotImplementedError()