@ChanMbot 4.0

In this update we will add themes!

And /commands in @BotFather

/start – rly? idk What this command does

/help – let me thing… maybe it shows help?

/markdown – markdown help menu

/htmlhelp – html help menu

/md – /md *Your* _text_ *here*

/html – /html <b>Your text here</b>

So What themes?

Template #1

🌐 *Article name*

[🔰](link://for.image/preview) [email protected] and @AntiMany!_

_Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut a libero pharetra, maximus ex vel, tincidunt sapien. Phasellus ut tempus libero. Proin sapien lectus, lobortis sit amet leo eu, venenatis eleifend leo. Fusce nibh metus, mollis sed posuere dapibus, molestie et libero.…_

[⬆️Read More…⬆️](http://google.com)

Also we need to create /template commands [:(]

bot.on(['/templates'], (msg, self) => {
let id = msg.from.id;
let replyToMessage = msg.message_id;
let type = self.type;
let parseMode = 'markdown';
return bot.sendMessage(
id, `*Templetes*

What kind of templates do you need?
- I need /markdown_templates.
- I need html_templates (soon)`, {replyToMessage, parseMode});
});

Now we need to add /markdown_templates command

It should look like this:

List of templates:

[#1 by @BotDev]

[Submit to @AntiMany]

Code:

bot.on([‘/markdown_templates’], (msg, self) => {
const replyMarkup = bot.inlineKeyboard([
[
bot.inlineButton(‘#1 by @BotDev’, {callback: ‘/mdtemplate1’})

],
[
bot.inlineButton(‘Submit to: @BotDev’, {callback: ‘/brb1’})
],
]);
let id = msg.from.id;
let replyToMessage = msg.message_id;
let type = self.type;
let parseMode = ‘markdown’;
return bot.sendMessage(
id, `*List od markdown templates:`, {replyToMessage, replyMarkup, parseMode}
);
});

Now we need to add command /mdtemplate1

I thing that everybody know how to do this 🙂

Leave a Reply

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