Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
Yasir Aris M 2023-10-09 22:25:45 +07:00
parent c934ca1e40
commit 8d4e30bf9c

View file

@ -25,10 +25,10 @@ async def broadcast(_, ctx: Message):
failed = 0 failed = 0
success = 0 success = 0
async for chat in userdb.find({}): async for chat in userdb.find({"type": "user"}):
if chat["type"] == "user": if chat["type"] != "user":
continue continue
pti, sh = await broadcast_messages(int(chat["id"]), b_msg) pti, sh = await broadcast_messages(int(chat["_id"]), b_msg)
if pti: if pti:
success += 1 success += 1
elif pti is False: elif pti is False: