mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Typo
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
parent
c934ca1e40
commit
8d4e30bf9c
1 changed files with 3 additions and 3 deletions
|
|
@ -25,10 +25,10 @@ async def broadcast(_, ctx: Message):
|
|||
failed = 0
|
||||
|
||||
success = 0
|
||||
async for chat in userdb.find({}):
|
||||
if chat["type"] == "user":
|
||||
async for chat in userdb.find({"type": "user"}):
|
||||
if chat["type"] != "user":
|
||||
continue
|
||||
pti, sh = await broadcast_messages(int(chat["id"]), b_msg)
|
||||
pti, sh = await broadcast_messages(int(chat["_id"]), b_msg)
|
||||
if pti:
|
||||
success += 1
|
||||
elif pti is False:
|
||||
|
|
|
|||
Loading…
Reference in a new issue