Skip to content

Commit

Permalink
correction of sendDocument call
Browse files Browse the repository at this point in the history
  • Loading branch information
Krohmium authored and scaidermern committed Mar 19, 2023
1 parent 232d124 commit c1729c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piCamBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def watchImageDir(self):
if self.isArmed:
for ownerID in ownerIDs:
try:
bot.sendDocument(chat_id=ownerID, caption=filepath, photo=open(filepath, 'rb'))
bot.sendDocument(chat_id=ownerID, caption=filepath, document=open(filepath, 'rb'))
except:
# most likely network problem or user has blocked the bot
self.logger.exception('Could not send image to user %s: %s' % ownerID)
Expand Down

0 comments on commit c1729c3

Please sign in to comment.