From 468266387722257ad7ab95a0615cac1fc7ce996e Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 1 Jul 2022 00:29:25 +0200 Subject: [PATCH] Added parse mode to id command --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index d217de4..d1a07d6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -106,7 +106,9 @@ function main(bot: TelegramAddon = defaultBot, logs = true) { } else middleware.reply(ctx, cache.config.language.prvChatOnly); }); bot.command('id', (ctx: Context) => - middleware.reply(ctx, `User ID: ${ctx.from.id}\nGroup ID: ${ctx.chat.id}`), + middleware.reply(ctx, `User ID: ${ctx.from.id}\nGroup ID: ${ctx.chat.id}`, { + parse_mode: cache.config.parse_mode, + }), ); bot.command('faq', (ctx: Context) => middleware.reply(ctx, cache.config.language.faqCommandText, {