Add missing sender argument to a few "on_app_message" handlers in examples

This commit is contained in:
Paul Kompfner
2025-09-23 15:29:20 -04:00
parent 0bba02028d
commit 678dd22b8e
3 changed files with 3 additions and 3 deletions

View File

@@ -369,7 +369,7 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
await task.queue_frames([LLMRunFrame()])
@transport.event_handler("on_app_message")
async def on_app_message(transport, message):
async def on_app_message(transport, message, sender):
logger.debug(f"Received app message: {message}")
if "message" not in message:
return

View File

@@ -577,7 +577,7 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
await task.queue_frames([LLMRunFrame()])
@transport.event_handler("on_app_message")
async def on_app_message(transport, message):
async def on_app_message(transport, message, sender):
logger.debug(f"Received app message: {message}")
if "message" not in message:
return

View File

@@ -765,7 +765,7 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
await task.queue_frames([LLMRunFrame()])
@transport.event_handler("on_app_message")
async def on_app_message(transport, message):
async def on_app_message(transport, message, sender):
logger.debug(f"Received app message: {message}")
if "message" not in message:
return