Skip to content

Commit 40a918e

Browse files
committed
fix: remove '@' when linking as a URL
1 parent 72bd3bb commit 40a918e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/functions/groups.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ pub fn keyboard_detail(page: i32, data: &Option<Group>) -> InlineKeyboardMarkup
120120

121121
if let Some(group) = data {
122122
keyboard
123-
.url("Telegram", &format!("https://t.me/{}", group.telegram))
123+
.url(
124+
"Telegram",
125+
&format!("https://t.me/{}", &group.telegram[1..]),
126+
)
124127
.unwrap();
125128

126129
if group.link.is_some() {

0 commit comments

Comments
 (0)