api: add call_info() JSON-RPC API

This commit is contained in:
link2xt
2025-09-19 14:01:06 +00:00
committed by l
parent 3680467e14
commit 738dc5ce19
6 changed files with 82 additions and 7 deletions

View File

@@ -110,3 +110,7 @@ class Message:
def end_call(self):
"""Ends incoming or outgoing call."""
self._rpc.end_call(self.account.id, self.id)
def get_call_info(self) -> AttrDict:
"""Return information about the call."""
return AttrDict(self._rpc.call_info(self.account.id, self.id))