Skip to content

Commit

Permalink
Remove '@' in chat_id to support private channel
Browse files Browse the repository at this point in the history
  • Loading branch information
williamlsh authored Apr 1, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 709aa31 commit 2bbc611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/telegram.rs
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ pub(crate) struct Message {
impl Message {
pub(crate) fn new(channel: &str, tweet: Tweet) -> Self {
Self {
chat_id: format!("@{channel}"),
chat_id: format!("{channel}"),
text: format!("{}\n\n{}", tweet.text, tweet.created_at),
}
}

0 comments on commit 2bbc611

Please sign in to comment.