diff --git a/pkg/platform/sources/lark.py b/pkg/platform/sources/lark.py index e844fc53..87172009 100644 --- a/pkg/platform/sources/lark.py +++ b/pkg/platform/sources/lark.py @@ -332,7 +332,7 @@ class LarkAdapter(adapter.MessagePlatformAdapter): listeners: typing.Dict[ typing.Type[platform_events.Event], typing.Callable[[platform_events.Event, adapter.MessagePlatformAdapter], None], - ] = {} + ] config: dict quart_app: quart.Quart @@ -342,6 +342,7 @@ class LarkAdapter(adapter.MessagePlatformAdapter): self.config = config self.ap = ap self.quart_app = quart.Quart(__name__) + self.listeners = {} @self.quart_app.route('/lark/callback', methods=['POST']) async def lark_callback():