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 0fd583e commit 15d47b4Copy full SHA for 15d47b4
botogram/objects/mixins.py
@@ -363,12 +363,14 @@ def delete_message(self, message):
363
364
@_require_api
365
def set_photo(self, path):
366
+ """Set a new chat photo"""
367
args = {"chat_id": self.id}
368
files = {"photo": open(path, "rb")}
369
self._api.call("setChatPhoto", args, files)
370
371
372
def remove_photo(self):
373
+ """Remove the current chat photo"""
374
375
self._api.call("deleteChatPhoto", args)
376
0 commit comments