Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlehoff committed Dec 5, 2023
1 parent 7ff002e commit b2acd96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pybliotecario/backend/telegram_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def send_image(self, img_path, chat):
data = {"chat_id": chat}
with open(img_path, "rb") as img:
files = {"photo": ("picture.jpg", img)} # Here, the "rb" thing
blabla = requests.post(self.send_img, data=data, files=files)
blabla = requests.post(self.send_img, data=data, files=files)
log_request(blabla.status_code, blabla.reason, blabla.content)

def send_file(self, filepath, chat):
Expand Down

0 comments on commit b2acd96

Please sign in to comment.