Skip to content

Commit ebe5ab3

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/functions/groups.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ 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("Telegram", &format!("https://t.me/{}", &group.telegram[1..]))
124124
.unwrap();
125125

126126
if group.link.is_some() {

0 commit comments

Comments
 (0)