kowalski/commands/start.js

15 lines
417 B
JavaScript
Raw Normal View History

2024-07-24 22:39:27 -03:00
const resources = require('../props/resources.json');
2024-07-25 23:42:24 -03:00
const { getStrings } = require('./checklang.js');
2024-07-24 22:39:27 -03:00
module.exports = (bot) => {
bot.start((ctx) => {
const Strings = getStrings(ctx.from.language_code);
2024-07-24 22:39:27 -03:00
ctx.replyWithPhoto(
resources.lynxProfilePhoto, {
caption: Strings.lynxWelcome,
2024-07-25 03:55:05 +00:00
parse_mode: 'Markdown',
reply_to_message_id: ctx.message.message_id
2024-07-24 22:39:27 -03:00
}
);
});
};