Изменён текст ответа обработчиков сообщений
This commit is contained in:
4
index.ts
4
index.ts
@@ -13,7 +13,7 @@ bot.use(menu);
|
||||
bot.command('start', cmdStart);
|
||||
bot.command('help', cmdHelp);
|
||||
bot.command('menu', async (ctx) => {
|
||||
const photoFile = new InputFile(`./assets/images/road_${choice([1, 2, 3])}.png`);
|
||||
const photoFile = new InputFile(`./assets/images/road_${choice([1, 2, 3])}.jpg`);
|
||||
await ctx.replyWithPhoto(photoFile, {
|
||||
caption: '🛣️ \*Навигация, меню или что\\-то такое\\.\\.\\.\*',
|
||||
reply_markup: menu,
|
||||
@@ -22,6 +22,6 @@ bot.command('menu', async (ctx) => {
|
||||
});
|
||||
bot.command('version', (ctx) => ctx.reply(`Версия: ${pkg.version}`));
|
||||
|
||||
bot.on('message', (ctx) => ctx.reply('...'));
|
||||
bot.on('message', (ctx) => ctx.reply('Ээ, нет, вызови /menu и будет счастье'));
|
||||
|
||||
bot.start();
|
||||
|
||||
Reference in New Issue
Block a user