We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20e473e commit b1c3b61Copy full SHA for b1c3b61
source/index.ts
@@ -1,6 +1,7 @@
1
import Telegraf from 'telegraf';
2
import { fork } from 'child_process';
3
import { join } from 'path';
4
+import * as pkg from '../package.json';
5
import send from './utils/send';
6
import logger from './utils/logger';
7
import errors from './utils/errors';
@@ -250,6 +251,10 @@ bot.action(
250
251
rss
252
);
253
254
+bot.command('version', async (ctx) => {
255
+ ctx.reply(`${pkg.version}`);
256
+});
257
+
258
bot.launch();
259
260
async function startFetchProcess(restartTime: number): Promise<void> {
0 commit comments