fix(telegram): last draft push is the final text so the client folds it into the message

This commit is contained in:
hh
2026-08-28 18:51:16 +02:00
parent 7240e0cdac
commit 43407016d0
3 changed files with 36 additions and 11 deletions
+3
View File
@@ -251,6 +251,9 @@ async def test_general_is_master_and_reply_has_no_thread(stack: Stack) -> None:
await asyncio.sleep(0.2)
final = max(i for i, o in enumerate(stack.bot.order) if o[0] == "message")
assert all(o[0] != "draft" for o in stack.bot.order[final:])
last = stack.bot.drafts[-1]
assert last["text"] == reply["text"] and last["parse_mode"] == "HTML"
assert stack.bot.drafts[0]["text"] == "⏳ думаю"
rows = await stack.world.conversations.queue.recent(master.id)
assert [r.origin for r in rows] == ["telegram"]