Skip to content

Commit 78ecb33

Browse files
Update gcast.py
1 parent c5cd354 commit 78ecb33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/gcast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async def gcast(client: Client, message: Message):
2121
done, errors = 0, 0
2222

2323
async for dialog in client.get_dialogs():
24-
if dialog.chat.type in ["supergroup", "group"]:
24+
if dialog.chat.type.value in ["supergroup", "group"]:
2525
try:
2626
await client.send_message(dialog.chat.id, msg)
2727
done += 1
@@ -48,7 +48,7 @@ async def gucast(client: Client, message: Message):
4848
done, errors = 0, 0
4949

5050
async for dialog in client.get_dialogs():
51-
if dialog.chat.type == "private" and not dialog.chat.is_bot:
51+
if dialog.chat.type.value == "private" and not dialog.chat.is_bot:
5252
try:
5353
await client.send_message(dialog.chat.id, msg)
5454
done += 1

0 commit comments

Comments
 (0)