@@ -169,6 +169,17 @@ def cancel_cmd(bot, update):
169169 bot .answerCallbackQuery (callback_query_id = callback_query_id , text = translate ("cancelledMessage" , lang_id ))
170170
171171
172+ def hide_cmd (bot , update ):
173+ chat_id = update .message .chat_id
174+ reply_markup = ReplyKeyboardRemove ()
175+ bot .sendMessage (chat_id = chat_id , text = "\U0001F44D " , reply_markup = reply_markup )
176+
177+
178+ def mentions_cmd (bot , update ):
179+ # TODO mention users which helped (translations, etc.)
180+ pass
181+
182+
172183def multiplayer (bot , update ):
173184 chat_id = update .message .chat_id
174185 user_id = update .message .from_user .id
@@ -204,6 +215,9 @@ def join_secret(bot, update):
204215 # TODO send message that user joined
205216
206217
218+ # -----------------
219+ # Admin commands
220+ # -----------------
207221def answer (bot , update ):
208222 sender_id = update .message .from_user .id
209223 reply_to_message = update .message .reply_to_message
@@ -228,17 +242,11 @@ def answer(bot, update):
228242 bot .sendMessage (chat_id = sender_id , text = "Message sent!" )
229243
230244
231- def mentions (bot , update ):
232- # TODO mention users which helped (translations, etc.)
233- pass
234-
235-
236- def hide_cmd (bot , update ):
237- chat_id = update .message .chat_id
238- reply_markup = ReplyKeyboardRemove ()
239- bot .sendMessage (chat_id = chat_id , text = "\U0001F44D " , reply_markup = reply_markup )
240245
241246
247+ # -----------------
248+ # Internal methods
249+ # -----------------
242250def change_language (bot , update , lang_id ):
243251 bot .editMessageText (chat_id = update .callback_query .message .chat_id , text = translate ("langChanged" , lang_id ),
244252 message_id = update .callback_query .message .message_id , reply_markup = None )
0 commit comments