stalkee
Version:
a Telegram bot who can send voice messages via inline mode added by admin with sorting them by numbers of uses
18 lines (17 loc) • 485 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.admin = void 0;
const utils_1 = require("../../utils");
const admin = (ctx) => {
if (!ctx.from) {
return false;
}
if (utils_1.config.bot.admins.includes(ctx.from.id)) {
return true;
}
else {
utils_1.logger.warn(`${ctx.from.first_name} (${ctx.from.id}) is not admin!`, 'filter.admin');
return false;
}
};
exports.admin = admin;