2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-09-05 00:25:19 +00:00

MANY FEATURES

This commit is contained in:
Thomas Rory Gummerson
2017-07-24 18:08:31 +02:00
parent 4d7d57c620
commit caa8f1340b
2 changed files with 65 additions and 8 deletions

View File

@@ -5,6 +5,12 @@ const link = user =>
? `<a href="https://t.me/${user.username}">${user.username}</a>`
: `<code>${user.first_name}</code>`;
const deleteAfter = ms => ctx =>
setTimeout(() =>
ctx.telegram.deleteMessage(ctx.chat.id, ctx.message.message_id),
ms);
module.exports = {
deleteAfter,
link
};