mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-28 00:28:10 +03:00
43816099a6
This reverts commit 2d23eba148
.
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;
|
|
}
|