Использование регулярки из свойства

This commit is contained in:
Pavel Gnedov 2022-11-09 18:46:12 +07:00
parent 726596ce12
commit a4724069c1

View file

@ -32,7 +32,7 @@ export class CurrentIssuesEccmBotHandlerService
if (!this.service) {
this.service = service;
}
bot.onText(/\/current_issues_eccm/, async (msg) => {
bot.onText(this.forCurrentUser, async (msg) => {
const userMetaInfo = await this.userMetaInfoService.findByTelegramId(
msg.chat.id,
);