summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2020-02-11 21:42:01 +0400
committerAndrew <saintruler@gmail.com>2020-02-11 21:42:01 +0400
commitbc2124fbfa33b0aa5969c86523afb4f404e21ee5 (patch)
tree82b7c96ec304fa912b21f72e244e788ae74a6037 /utils.py
parenta2d7e6357ea7d9ffcd361580b5d48eefeb1e69cb (diff)
Added new bindings for backend api. Implemented restoring state of bot
for user after restarting bot.
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/utils.py b/utils.py
index a25571e..bb2cb28 100644
--- a/utils.py
+++ b/utils.py
@@ -1,14 +1,7 @@
-def get_input(update, user_data):
- if "resuming" in user_data and user_data["resuming"] == True:
- return user_data["text"]
- else:
- return update.message.text
-
-
(
WAIT_FOR_USERNAME,
MAIN_MENU, TOP_10, RULES,
TASK_CHOOSING, TASK_SHOWN, ANSWERING,
ANSWER_RIGHT, ANSWER_WRONG,
*_
-) = range(100) \ No newline at end of file
+) = range(100)