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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user