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 c5cd354 commit 78ecb33Copy full SHA for 78ecb33
utils/gcast.py
@@ -21,7 +21,7 @@ async def gcast(client: Client, message: Message):
21
done, errors = 0, 0
22
23
async for dialog in client.get_dialogs():
24
- if dialog.chat.type in ["supergroup", "group"]:
+ if dialog.chat.type.value in ["supergroup", "group"]:
25
try:
26
await client.send_message(dialog.chat.id, msg)
27
done += 1
@@ -48,7 +48,7 @@ async def gucast(client: Client, message: Message):
48
49
50
51
- if dialog.chat.type == "private" and not dialog.chat.is_bot:
+ if dialog.chat.type.value == "private" and not dialog.chat.is_bot:
52
53
54
0 commit comments