This commit is contained in:
Evgeny (Krymmy) Momotov 2025-12-02 09:34:25 +03:00
parent a52092e8ec
commit 88dc681687
2 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,6 @@
[project]
name = "callerapimanager"
version = "0.1.4-2"
version = "0.1.5"
description = ""
authors = [
{name = "Evgeny (Krymmy) Momotov",email = "evgeny.momotov@gmail.com"}

View file

@ -79,6 +79,10 @@ class CallerManagerClient:
return None
return CallDialog(**response)
async def update_call_dialog(self, call_id: int, dialog: CallDialogIn) -> CallDialog:
response = await self._request('PATCH', f'/calls/{call_id}/dialog', json=dialog.model_dump(exclude_none=True))
return CallDialog(**response)
async def create_call_dialog(self, dialog: CallDialogIn) -> CallDialog:
response = await self._request('POST', f'/calls/dialog', json=dialog.model_dump(exclude_none=True))
return CallDialog(**response)