mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 21:00:03 +00:00
17 lines
611 B
JavaScript
17 lines
611 B
JavaScript
const { getStrings } = require('../plugins/checklang.js');
|
|
const resources = require('../props/resources.json');
|
|
const { isOnSpamWatch } = require('../plugins/lib-spamwatch/spamwatch.js');
|
|
const spamwatchMiddleware = require('../plugins/lib-spamwatch/Middleware.js')(isOnSpamWatch);
|
|
|
|
module.exports = (bot) => {
|
|
bot.help(spamwatchMiddleware, async (ctx) => {
|
|
const Strings = getStrings(ctx.from.language_code);
|
|
ctx.replyWithPhoto(
|
|
resources.lunaCat2, {
|
|
caption: Strings.lynxHelp,
|
|
parse_mode: 'Markdown',
|
|
reply_to_message_id: ctx.message.message_id
|
|
}
|
|
);
|
|
});
|
|
}; |