2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-29 05:07:49 +00:00
2017-09-21 16:14:54 +04:30

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
};