Skip to content

Commit

Permalink
feat: add new line between title and link (media)
Browse files Browse the repository at this point in the history
When sending messages this is the behavior, this change makes it more
consistent
  • Loading branch information
Massolari committed Mar 21, 2024
1 parent f1d4c50 commit 0f5f27e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/telegram.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ fn send_animation(
}

pub fn media_caption(post: reddit.Post, chat_id: String) {
post.title <> "\n" <> reddit.short_link(post) <> "\n\n" <> chat_id
post.title <> "\n\n" <> reddit.short_link(post) <> "\n\n" <> chat_id
}

fn caption_json_field(post: reddit.Post, chat_id: String) {
Expand Down

0 comments on commit 0f5f27e

Please sign in to comment.