chore: add loger for the telegram sender
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { ConfigService } from "@nestjs/config";
|
||||
import { TelegrafModuleAsyncOptions } from "nestjs-telegraf";
|
||||
|
||||
export function telegrafConfig(): TelegrafModuleAsyncOptions {
|
||||
return {
|
||||
inject: [ConfigService],
|
||||
useFactory: async (configService: ConfigService) => ({
|
||||
token: configService.getOrThrow<string>("TELEGRAM_BOT_TOKEN"),
|
||||
botName: configService.getOrThrow<string>("TELEGRAM_BOT_NAME"),
|
||||
}),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user