mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-29 05:07:49 +00:00
15 lines
303 B
JavaScript
15 lines
303 B
JavaScript
'use strict';
|
|
|
|
const link = ({ id, username, first_name }) =>
|
|
`<a href="tg://user?id=${id}">${username ? username : first_name}</a>`;
|
|
|
|
const deleteAfter = ms => ctx =>
|
|
setTimeout(() =>
|
|
ctx.telegram.deleteMessage(ctx.chat.id, ctx.message.message_id),
|
|
ms);
|
|
|
|
module.exports = {
|
|
deleteAfter,
|
|
link
|
|
};
|