We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e102dc4 commit ece2217Copy full SHA for ece2217
1 file changed
pyrogram/methods/chats/update_color.py
@@ -50,15 +50,15 @@ async def update_color(
50
Example:
51
.. code-block:: python
52
53
- await app.update_color(chat_id, 1)
+ await app.update_color(chat_id, enums.ProfileColor.RED)
54
"""
55
56
peer = await self.resolve_peer(chat_id)
57
58
if isinstance(peer, raw.types.InputPeerSelf):
59
await self.invoke(
60
raw.functions.account.UpdateColor(
61
- color=color,
+ color=color.value,
62
background_emoji_id=background_emoji_id
63
)
64
@@ -69,7 +69,7 @@ async def update_color(
69
r = await self.invoke(
70
raw.functions.channels.UpdateColor(
71
channel=peer,
72
73
74
75
0 commit comments