diff --git a/source/index.ts b/source/index.ts index d9372e230d9..70004f4ca91 100644 --- a/source/index.ts +++ b/source/index.ts @@ -1,6 +1,7 @@ import Telegraf from 'telegraf'; import { fork } from 'child_process'; import { join } from 'path'; +import * as pkg from '../package.json'; import send from './utils/send'; import logger from './utils/logger'; import errors from './utils/errors'; @@ -250,6 +251,10 @@ bot.action( rss ); +bot.command('version', async (ctx) => { + ctx.reply(`${pkg.version}`); +}); + bot.launch(); async function startFetchProcess(restartTime: number): Promise {