fix: send text posts as HTML

This commit is contained in:
2026-09-24 20:29:04 +08:00
parent 6a2ba6a50a
commit 5e7a87c0dd
3 changed files with 45 additions and 8 deletions
@@ -428,6 +428,22 @@ impl MediaSender for MockSender {
})
}
fn send_html_message(
&self,
_chat_id: ChatId,
text: String,
_reply_to: Option<MessageId>,
) -> BoxFuture<'_, Result<i64, RequestError>> {
Box::pin(async move {
self.messages.lock().push(text);
match self.next("send_html_message") {
Outcome::MessageOk => Ok(MockSender::SENT_ID),
Outcome::MessageErr => Err(self.error()),
other => panic!("unexpected outcome {other:?} for send_html_message"),
}
})
}
fn answer_inline_query(
&self,
_id: InlineQueryId,