Skip to content

Commit 83dac9c

Browse files
authored
fix: Callback hasn't been received. (#29)
* fix: Callback hasn't been received. * chore: Bump version.
1 parent 0ef77a0 commit 83dac9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/api/endpoints/botx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async def callback_handler(request: Request, bot: Bot = bot_dependency) -> JSONR
7373
"""Process BotX methods callbacks."""
7474

7575
try:
76-
bot.set_raw_botx_method_result(await request.json())
76+
await bot.set_raw_botx_method_result(await request.json())
7777
except BotXMethodCallbackNotFoundError as exc:
7878
error_label = f"Unexpected callback with sync_id: {exc.sync_id}"
7979
logger.warning(error_label)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[tool.poetry]
44
name = "todo-bot"
5-
version = "2.0.2"
5+
version = "2.0.3"
66
description = "TODO"
77
authors = []
88

0 commit comments

Comments
 (0)