File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -199,10 +199,10 @@ def main():
199
199
get_all_stocks ()
200
200
except Exception as e :
201
201
logging .error (e )
202
+
202
203
application = Application .builder ().token (os .getenv ("TOKEN" )).build ()
203
204
job_queue = application .job_queue
204
205
205
- # Ежедневные задачи.
206
206
job_queue .run_daily (
207
207
notify_assignees ,
208
208
datetime .time (
@@ -218,7 +218,6 @@ def main():
218
218
),
219
219
)
220
220
221
- # Обработчик для игры.
222
221
game_handler = ConversationHandler (
223
222
entry_points = [CommandHandler ("game" , game_menu )],
224
223
states = {
@@ -231,7 +230,6 @@ def main():
231
230
)
232
231
application .add_handler (game_handler )
233
232
234
- # Регистрируем обработчик команд.
235
233
application .add_handler (CommandHandler ("daily" , daily ))
236
234
application .add_handler (CommandHandler ("start" , start ))
237
235
application .add_handler (CommandHandler ("help" , help_msg ))
@@ -242,7 +240,6 @@ def main():
242
240
application .add_handler (CommandHandler ("stocks" , get_list_stocks ))
243
241
application .add_handler (CommandHandler ("stats" , stats ))
244
242
245
- # Обработка сообщений.
246
243
application .run_polling (allowed_updates = Update .ALL_TYPES )
247
244
248
245
You can’t perform that action at this time.
0 commit comments