nestjs-telegraf/lib/utils/get-bot-token.util.ts
Alexander Bukhalo 43816099a6
Revert "initial commit"
This reverts commit 2d23eba148.
2022-11-20 14:16:17 +03:00

6 lines
192 B
TypeScript

import { DEFAULT_BOT_NAME } from '../telegraf.constants';
export function getBotToken(name?: string): string {
return name && name !== DEFAULT_BOT_NAME ? `${name}Bot` : DEFAULT_BOT_NAME;
}