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