mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-28 00:14:21 +00:00
[codex] Delegate web page bot stream helpers (#2245)
* fix(platform): delegate web page bot stream helpers * style(platform): format web page bot adapter
This commit is contained in:
@@ -84,6 +84,18 @@ class WebPageBotAdapter(abstract_platform_adapter.AbstractMessagePlatformAdapter
|
|||||||
):
|
):
|
||||||
self.listeners.pop(event_type, None)
|
self.listeners.pop(event_type, None)
|
||||||
|
|
||||||
|
async def is_stream_output_supported(self) -> bool:
|
||||||
|
"""Delegate stream output check to ws_adapter."""
|
||||||
|
if self._ws_adapter is not None:
|
||||||
|
return await self._ws_adapter.is_stream_output_supported()
|
||||||
|
return False
|
||||||
|
|
||||||
|
async def create_message_card(self, message_id: str | int, event: platform_events.MessageEvent) -> bool:
|
||||||
|
"""Delegate create_message_card to ws_adapter."""
|
||||||
|
if self._ws_adapter is not None:
|
||||||
|
return await self._ws_adapter.create_message_card(message_id, event)
|
||||||
|
return False
|
||||||
|
|
||||||
async def is_muted(self, group_id: int) -> bool:
|
async def is_muted(self, group_id: int) -> bool:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user