show help message when offline
This commit is contained in:
1
bot.py
1
bot.py
@ -81,7 +81,6 @@ def on_chat(msg):
|
|||||||
|
|
||||||
elif chat_type == 'private':
|
elif chat_type == 'private':
|
||||||
if command[0] == '/help' or command[0] == '幫助📚':
|
if command[0] == '/help' or command[0] == '幫助📚':
|
||||||
if user.check_online(chat_id, msg['message_id']) == True:
|
|
||||||
user.help_you()
|
user.help_you()
|
||||||
|
|
||||||
elif command[0] == '/password' or command[0] == '改密碼💱':
|
elif command[0] == '/password' or command[0] == '改密碼💱':
|
||||||
|
@ -200,8 +200,7 @@ class kuser:
|
|||||||
"[https://github.com/PinLin/kcoj_bot]\n\n",
|
"[https://github.com/PinLin/kcoj_bot]\n\n",
|
||||||
parse_mode='Markdown',
|
parse_mode='Markdown',
|
||||||
reply_markup=ReplyKeyboardMarkup(keyboard=[
|
reply_markup=ReplyKeyboardMarkup(keyboard=[
|
||||||
["首頁🏠"],
|
["首頁🏠"]
|
||||||
["登出🚪", "改密碼💱", "幫助📚"]
|
|
||||||
], resize_keyboard=True) if not self.status == '第一次用' else ReplyKeyboardRemove())
|
], resize_keyboard=True) if not self.status == '第一次用' else ReplyKeyboardRemove())
|
||||||
|
|
||||||
def upload_answer(self):
|
def upload_answer(self):
|
||||||
|
Reference in New Issue
Block a user