From 20f522ac4d2d78c6b934b23057be3f3d072d4ffb Mon Sep 17 00:00:00 2001 From: lucemia Date: Fri, 28 Apr 2023 10:30:17 +0800 Subject: [PATCH] fix #261 got IndexError while call talk_to_bot API --- src/marvin/api/bots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/marvin/api/bots.py b/src/marvin/api/bots.py index 67dcab557..77bdb6bdb 100644 --- a/src/marvin/api/bots.py +++ b/src/marvin/api/bots.py @@ -124,7 +124,7 @@ async def talk_to_bot( """ bot = await marvin.Bot.load(name=name) await bot.set_thread(thread_lookup_key=thread_lookup_key) - response = await bot.say(message=message) + response = await bot.say(message) return MessageRead(**response.dict())