Skip to content

Commit 15d47b4

Browse files
committed
Add docstring for Chat.set_photo and Chat.remove_photo
1 parent 0fd583e commit 15d47b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

botogram/objects/mixins.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,14 @@ def delete_message(self, message):
363363

364364
@_require_api
365365
def set_photo(self, path):
366+
"""Set a new chat photo"""
366367
args = {"chat_id": self.id}
367368
files = {"photo": open(path, "rb")}
368369
self._api.call("setChatPhoto", args, files)
369370

370371
@_require_api
371372
def remove_photo(self):
373+
"""Remove the current chat photo"""
372374
args = {"chat_id": self.id}
373375
self._api.call("deleteChatPhoto", args)
374376

0 commit comments

Comments
 (0)