Module for working with markup
Add a module that eases working with markup. It may look something like this:
use tbot::markup::markdown;
let message = tbot::markdown!(
"Hi, {name}!\n\n\
Here are some news in the Rust world from this week:\n\n\
1. {first_news}\n
2. {second_news}",
name = markdown::bold("star*case*for*the*win"),
first_news = markdown::link(
"[new release] Announcing Rust 1.40.0",
"https://blog.rust-lang.org/2019/12/19/Rust-1.40.0.html",
),
second_news = markdown::link(
"[loop { }] Revert stabilization of never type (sorry – llogiq)",
"https://github.com/rust-lang/rust/pull/67224",
),
);
bot.send_message(CHAT_ID, message).reply_markup(..).call().await?;
Edited by Artem Starikov