We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e491494 commit c4783aaCopy full SHA for c4783aa
botogram/objects/mixins.py
@@ -364,10 +364,7 @@ def delete_message(self, message):
364
@_require_api
365
def set_photo(self, path):
366
args = {"chat_id": self.id}
367
- if path is not None:
368
- files = {"photo": open(path, "rb")}
369
- else:
370
- raise TypeError("path of the new photo is missing")
+ files = {"photo": open(path, "rb")}
371
372
self._api.call("setChatPhoto", args, files)
373
0 commit comments