mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-27 08:18:08 +03:00
6 lines
192 B
TypeScript
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;
|
|
}
|