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:
parent
afd5ad906e
commit
515ea87156
1 changed files with 1 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue