fix: no markdown, no url

we don't have a URL to the comic itself,
only to the JSON API endpoint

and adding `("parse_mode", "MarkdownV2".to_string())`
would require one more allocation or refactoring the code
This commit is contained in:
DarkCat09 2024-11-27 19:00:21 +04:00
parent afd5ad906e
commit 515ea87156
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82

View file

@ -172,10 +172,7 @@ async fn send_comic(cfg: Config, ctx: SenderCtx) -> Result<(), reqwest::Error> {
("photo", info.img),
(
"caption",
format!(
"*{}. [{}]({})*\n\n{}",
ctx.comic_id, info.title, ctx.url, info.alt,
),
format!("{}. {}\n\n{}", ctx.comic_id, info.title, info.alt),
),
])
.send()