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

States minor update

This commit is contained in:
Badiboy
2021-09-25 21:15:24 +03:00
parent be7317cc86
commit b35f17124f
2 changed files with 6 additions and 7 deletions

View File

@@ -143,7 +143,6 @@ class RedisHandlerBackend(HandlerBackend):
return handlers
class StateMachine:
def __init__(self):
self._states = {}
@@ -172,7 +171,6 @@ class StateMachine:
def _get_data(self, chat_id):
return self._states[chat_id]['data']
class State:
"""
Base class for state managing.
@@ -221,4 +219,4 @@ class StateContext:
return self.data
def __exit__(self, exc_type, exc_val, exc_tb):
return
return