2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-23 10:28:09 +00:00

34 lines
837 B
JavaScript
Raw Normal View History

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 don't wish to self-host, @MissRose_bot \
2019-01-25 19:42:28 +01:00
might be a better choice for you.
2017-09-28 15:41:06 +03:30
`;
2020-03-10 22:10:48 +01:00
/** @param { import('../../typings/context').ExtendedContext } ctx */
2021-05-07 22:46:11 +02:00
const helpHandler = (ctx) => {
if (ctx.chat.type !== 'private') return null;
2021-05-07 22:46:11 +02:00
return ctx.replyWithHTML(
2017-09-28 15:41:06 +03:30
message,
Markup.inlineKeyboard([
2023-03-08 14:08:57 +01:00
Markup.button.url('🛠 Setup a New Bot', homepage),
2021-05-09 21:03:24 +02:00
])
);
2017-09-28 15:41:06 +03:30
};
module.exports = helpHandler;