Skip to content

Commit

Permalink
README.md: fix files example (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdericson authored and seLain committed Jan 1, 2019
1 parent 58a4226 commit bc3be35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ from mmpy_bot.bot import respond_to
def message_with_file(message):
# upload_file() can upload only one file at a time
# If you have several files to upload, you need call this function several times.
file = open('test.txt', 'w+')
file = open('test.txt')
result = message.upload_file(file)
file.close()
if 'file_infos' not in result:
Expand Down

0 comments on commit bc3be35

Please sign in to comment.