Skip to content

Commit

Permalink
Added parse mode to id command
Browse files Browse the repository at this point in the history
  • Loading branch information
bostrot committed Jun 30, 2022
1 parent 7f5dd08 commit 4682663
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 4682663

Please sign in to comment.