Fixed permissions check

This commit is contained in:
2023-08-23 11:12:26 +02:00
parent 8eef171391
commit e61516f51f
10 changed files with 66 additions and 58 deletions

View File

@@ -103,5 +103,5 @@ async def handler_user_join(app: PyroClient, message: Message):
run_date=datetime.now() + timedelta(seconds=group.timeout_join),
)
await col_schedule.insert_one(
{"user": user.id, "group": group.id, "job_id": job.id}
{"user": int(user.id), "group": int(group.id), "job_id": job.id}
)