fix(): use bot token in di

This commit is contained in:
Morb0
2021-01-05 13:36:12 +03:00
parent 5fe60dc5b2
commit 751b15b4b2
5 changed files with 48 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
import { Inject } from '@nestjs/common';
import { getBotToken } from '../../utils';
export const InjectBot = (name?: string): ParameterDecorator =>
Inject(getBotToken(name));
export const InjectBot = (botName?: string): ParameterDecorator =>
Inject(getBotToken(botName));