change import dir
This commit is contained in:
parent
d5dfcfff33
commit
a35e1e456b
2
main.py
2
main.py
@ -41,7 +41,7 @@ def handle_file(message):
|
||||
downloaded_file = bot.download_file(file_info.file_path)
|
||||
|
||||
if file_ext(message.document.file_name) == 'csv':
|
||||
src='/media/'+message.document.file_name;
|
||||
src='/tmp/'+message.document.file_name;
|
||||
with open(src, 'wb') as new_file:
|
||||
new_file.write(downloaded_file)
|
||||
bot.reply_to(message,"Added\n"+src)
|
||||
|
Loading…
Reference in New Issue
Block a user