Skip to content

Commit 72e77e8

Browse files
authored
Removed mistakenly included check for the group type in chat.photo (#133)
2 parents 512f271 + a905cb6 commit 72e77e8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

botogram/objects/chats.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,6 @@ def pin_message(self, message, notify=True):
364364
@mixins._require_api
365365
def photo(self):
366366
"""Get the current chat photo small and big ids"""
367-
if self.type not in ("supergroup", "channel"):
368-
raise RuntimeError(
369-
"You can only get the photo in a supergroup or a channel")
370-
371367
if hasattr(self, "_cache_photo"):
372368
return self._cache_photo
373369

0 commit comments

Comments
 (0)