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:
@@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user