kowalski/commands/start.js

15 lines
426 B
JavaScript

const resources = require('../props/resources.json');
const { getStrings } = require('../plugins/checklang.js');
module.exports = (bot) => {
bot.start((ctx) => {
const Strings = getStrings(ctx.from.language_code);
ctx.replyWithPhoto(
resources.lynxProfilePhoto, {
caption: Strings.lynxWelcome,
parse_mode: 'Markdown',
reply_to_message_id: ctx.message.message_id
}
);
});
};