@ChanMbot 4.2

In this update:

Self-destruct timer!!!

First thing to do is: HOW TO DO THIS!!!

Ok. Maybe command /rm1h *message* _text_ *here*

Ok… So code:

bot.on([‘/rm1h’], function(msg) {

let id = msg.chat.id
let num1 = msg.message_id
let num2 = msg.chat.id
let sum = num1 + 2

return bot.sendMessage(msg.chat.id, “I’ll delete this message in 1hour”).then(() => {
setTimeout(() => bot.
deleteMessage(id, sum).catch(console.log), 36000000);

And /md commands should also answer this command add Just this:


Leave a Reply

Your email address will not be published. Required fields are marked *