From 515ea87156ea16eaf61e97f78c1f9b2ac176aa85 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Wed, 27 Nov 2024 19:00:21 +0400 Subject: [PATCH] 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 --- src/main.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index c986839..70f2380 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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()