@ChanMbot part3

Ok. Our source code for now is here

In @ChanMbot 3.0 we’ll add:

  • HTML support
    Some tips for markdown
  • `code fix`
  • Markdown Help button fix

Ok! Let’s start:

  • HTML support

bot.on(['/html'], (msg, self) => {
let id = msg.chat.id;
let replyToMessage = msg.message_id;
let message = msg.text.replace('/html ', '');
let type = self.type;
let parseMode = 'html';
return bot.sendMessage(id, `${ message }`, {parseMode});
});

bot.on(['/html'], (msg, self) => {
let id = msg.chat.id;
let mssg = msg.message_id;
return bot.deleteMessage(id, mssg);
});

We need to add ⬆️this⬆️code (somewhere) [code by: YouTwitFace💩]

Ok. Now we need to make help menu for /htmlhelp [also made by ⬆️]

Due to little problems check Code here

Ok. Done for now !

Leave a Reply

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