2017-09-28 15:41:06 +03:30
|
|
|
'use strict';
|
|
|
|
const { Markup } = require('telegraf');
|
|
|
|
const { homepage } = require('../../package.json');
|
|
|
|
|
|
|
|
const message = `\
|
|
|
|
Hey there!
|
|
|
|
|
|
|
|
I'm an <b>administration</b> bot that helps you to keep \
|
|
|
|
your <b>groups</b> safe from <b>spammers.</b>
|
|
|
|
|
|
|
|
Send /commands to get the list of available commands.
|
|
|
|
|
|
|
|
If you want to use me for your groups, \
|
|
|
|
note that I'm more useful on a network of groups and \
|
|
|
|
you also need to <b>setup a new bot.</b>
|
|
|
|
|
|
|
|
So if you only need to manage a single group, @GroupButler_bot \
|
|
|
|
and @mattatabot might be better choices for you.
|
|
|
|
`;
|
|
|
|
|
|
|
|
const helpHandler = ({ chat, replyWithHTML }) => {
|
2017-10-06 16:40:49 +03:30
|
|
|
if (chat.type !== 'private') return null;
|
|
|
|
|
2017-09-28 15:41:06 +03:30
|
|
|
return replyWithHTML(
|
|
|
|
message,
|
2017-10-31 23:08:22 +01:00
|
|
|
Markup.inlineKeyboard([
|
|
|
|
Markup.urlButton('🛠 Setup a New Bot', homepage)
|
|
|
|
]).extra()
|
|
|
|
);
|
2017-09-28 15:41:06 +03:30
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = helpHandler;
|