fix(telegram): last draft push is the final text so the client folds it into the message
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user