UNPKG

tg-bot-builder

Version:

Modular NestJS builder for multi-step Telegram bots with Prisma persistence and pluggable session storage.

12 lines 487 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizeTelegramId = exports.normalizeChatId = void 0; const normalizeChatId = (chatId) => { return typeof chatId === 'string' ? chatId : chatId.toString(); }; exports.normalizeChatId = normalizeChatId; const normalizeTelegramId = (id) => { return typeof id === 'string' ? BigInt(id) : BigInt(id); }; exports.normalizeTelegramId = normalizeTelegramId; //# sourceMappingURL=serialization.js.map