nestjs-telegraf/lib/telegraf-all-bots.provider.ts
2022-07-09 18:49:34 +08:00

13 lines
358 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>>();
setTimeout(() => console.log(allBotsMap), 2000);
export const telegrafAllBotsProvider: Provider = {
provide: TELEGRAF_ALL_BOTS,
useValue: allBotsMap,
};