1 parent 0d57241 commit 1e635f0Copy full SHA for 1e635f0
1 file changed
pyrogram/client/methods/chats/set_chat_description.py
@@ -47,15 +47,13 @@ def set_chat_description(
47
"""
48
peer = self.resolve_peer(chat_id)
49
50
- if isinstance(peer, types.InputPeerChannel):
+ if isinstance(peer, (types.InputPeerChannel, types.InputPeerChat)):
51
self.send(
52
- functions.channels.EditAbout(
53
- channel=peer,
+ functions.messages.EditChatAbout(
+ peer=peer,
54
about=description
55
)
56
57
- elif isinstance(peer, types.InputPeerChat):
58
- raise ValueError("The chat_id \"{}\" belongs to a basic group".format(chat_id))
59
else:
60
raise ValueError("The chat_id \"{}\" belongs to a user".format(chat_id))
61
0 commit comments