UNPKG

grammy-guard

Version:
9 lines (8 loc) 432 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isChatWithUsername = exports.normalizeUsername = void 0; const normalizeUsername = (username) => username.trim().toLowerCase(); exports.normalizeUsername = normalizeUsername; const isChatWithUsername = (chat) => chat.type === "private" || chat.type === "supergroup" || chat.type === "channel"; exports.isChatWithUsername = isChatWithUsername;