fix upload answer filename

This commit is contained in:
2018-04-14 16:55:27 +08:00
parent f1420f89c8
commit 0b8980b763
2 changed files with 14 additions and 7 deletions

4
bot.py
View File

@ -128,7 +128,7 @@ def on_chat(msg):
elif user._status == '上傳答案':
if user.check_online(chat_id, msg['message_id']) == True:
user.send_answer(msg['text'], '')
user.send_answer(msg['text'], '', user.list_questions(chat_id)[user._question][3])
else:
if user.check_online(chat_id, msg['message_id']) == True:
@ -140,7 +140,7 @@ def on_chat(msg):
if msg['document']['file_size'] > 167770000:
user.send_failed()
else:
user.send_answer('', msg['document']['file_id'])
user.send_answer('', msg['document']['file_id'], user.list_questions(chat_id)[user._question][3])
def backup_db():
users_backup = {}