File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -129,14 +129,15 @@ def game_commands(bot, update):
129129 game .analyze_message (update )
130130
131131
132- # Decorator for marking admin methods
133132def stop_and_restart ():
134133 """Gracefully stops the Updater and replaces the current process with a new one"""
135134 updater .stop ()
136135 os .execl (sys .executable , sys .executable , * sys .argv )
137136
138137
139138def admin_method (func ):
139+ """Decorator for marking methods as admin-only methods, so that strangers can't use them"""
140+
140141 def admin_check (bot , update ):
141142 db = DBwrapper .get_instance ()
142143 user = update .message .from_user
@@ -329,6 +330,7 @@ def cancel_cmd(bot, update):
329330
330331
331332def hide_cmd (bot , update ):
333+ """Hides the keyboard in the specified chat."""
332334 chat_id = update .message .chat_id
333335 reply_markup = ReplyKeyboardRemove ()
334336 bot .sendMessage (chat_id = chat_id , text = "\U0001F44D " , reply_markup = reply_markup )
You can’t perform that action at this time.
0 commit comments