mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-09-23 09:49:06 +03:00
fix(): working after merge
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Inject } from '@nestjs/common';
|
||||
import { Telegraf } from 'telegraf';
|
||||
import { getBotToken } from '../../utils';
|
||||
|
||||
export const InjectBot = (): ParameterDecorator => Inject(Telegraf);
|
||||
export const InjectBot = (name?: string): ParameterDecorator =>
|
||||
Inject(getBotToken(name));
|
||||
|
Reference in New Issue
Block a user