Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pybotx/client/voex_api/get_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def from_domain(


class BotXAPIGetCallResult(VerifiedPayloadBaseModel):
id: UUID
call_id: UUID
members: list[UUID]


Expand All @@ -30,7 +30,7 @@ class BotXAPIGetCallResponsePayload(VerifiedPayloadBaseModel):

def to_domain(self) -> Call:
return Call(
id=self.result.id,
id=self.result.call_id,
members=self.result.members,
)

Expand Down
4 changes: 2 additions & 2 deletions pybotx/client/voex_api/get_conference.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def from_domain(


class BotXAPIGetConferenceResult(VerifiedPayloadBaseModel):
id: UUID
call_id: UUID
name: str
link: str
members: list[UUID]
Expand All @@ -32,7 +32,7 @@ class BotXAPIGetConferenceResponsePayload(VerifiedPayloadBaseModel):

def to_domain(self) -> Conference:
return Conference(
id=self.result.id,
id=self.result.call_id,
name=self.result.name,
link=self.result.link,
members=self.result.members,
Expand Down
2 changes: 1 addition & 1 deletion pybotx/models/conference.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
class Conference:
id: UUID
name: str
link: str
link: str | None
members: list[UUID]
3 changes: 2 additions & 1 deletion pybotx/models/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class ChatTypes(AutoName):
GROUP_CHAT = auto()
CHANNEL = auto()
THREAD = auto()
VOEX_CALL = auto()


class SyncSourceTypes(AutoName):
Expand Down Expand Up @@ -366,7 +367,7 @@ def convert_chat_type_to_domain(
APIChatTypes.GROUP_CHAT: ChatTypes.GROUP_CHAT,
APIChatTypes.CHANNEL: ChatTypes.CHANNEL,
APIChatTypes.THREAD: ChatTypes.THREAD,
APIChatTypes.VOEX_CALL: ChatTypes.GROUP_CHAT,
APIChatTypes.VOEX_CALL: ChatTypes.VOEX_CALL,
}

converted_type: IncomingChatTypes | None
Expand Down