fix upload answer filename
This commit is contained in:
4
bot.py
4
bot.py
@ -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 = {}
|
||||
|
Reference in New Issue
Block a user