We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f1bcaa commit 3ac421eCopy full SHA for 3ac421e
utils/tg.js
@@ -15,7 +15,9 @@ const inlineKeyboard = (...inline_keyboard) =>
15
({ reply_markup: { inline_keyboard } });
16
17
const msgLink = msg =>
18
- `https://t.me/c/${msg.chat.id.toString().slice(4)}/${msg.message_id}`;
+ msg.chat.username
19
+ ? `https://t.me/${msg.chat.username}/${msg.message_id}`
20
+ : `https://t.me/c/${msg.chat.id.toString().slice(4)}/${msg.message_id}`;
21
22
const link = ({ id, first_name }) =>
23
html`${lrm}<a href="tg://user?id=${id}">${first_name}</a> [<code>${id}</code>]`;
0 commit comments