This commit is contained in:
debu-2 2026-10-15 03:39:09 +05:30
parent 9f03e5df32
commit 33b6b5d26f
4 changed files with 159 additions and 50 deletions

View file

@ -303,11 +303,12 @@ async def whatsapp_account_refresh(
@router.get("/accounts/{account_id}/messages")
def whatsapp_account_messages(
account_id: str,
limit: int = Query(default=300, ge=1, le=500),
limit: int = Query(default=500, ge=1, le=500),
q: str = Query(default="", max_length=80),
db: Session = Depends(get_db),
user: UserAccount = Depends(current_user),
) -> list[dict]:
return list_account_messages(db, user, account_id, limit)
return list_account_messages(db, user, account_id, limit, q)
@router.post("/accounts/{account_id}/delivery")