mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-25 15:34:38 +03:00
11 lines
308 B
TypeScript
11 lines
308 B
TypeScript
|
import { Provider } from '@nestjs/common';
|
||
|
import { Telegraf } from 'telegraf';
|
||
|
import { TELEGRAF_ALL_BOTS } from './telegraf.constants';
|
||
|
|
||
|
export const allBotsMap = new Map<string, Telegraf<any>>();
|
||
|
|
||
|
export const telegrafAllBotsProvider: Provider = {
|
||
|
provide: TELEGRAF_ALL_BOTS,
|
||
|
useValue: allBotsMap,
|
||
|
};
|