{"_id":"@armatofik/tgsnake","_rev":"3-542c4e86cff52049c56879b2760b0d06","name":"@armatofik/tgsnake","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"@armatofik/tgsnake","version":"1.0.0","keywords":["tgsnake","telegram","mtproto","userbot"],"author":{"name":"butthx"},"license":"MIT","_id":"@armatofik/tgsnake@1.0.0","maintainers":[{"name":"armatofik","email":"steam4864@gmail.com"}],"homepage":"https://tgsnake.js.org","bugs":{"url":"https://github.com/tgsnake/tgsnake/issues"},"dist":{"shasum":"cead8abbeb168fe4f66b7d005b01d21f3d0ad3c7","tarball":"https://registry.npmjs.org/@armatofik/tgsnake/-/tgsnake-1.0.0.tgz","fileCount":150,"integrity":"sha512-0qsD3fy5CA9h0TNZXJgpMNT91g0gIpH9xFTPg43gkhKpgB7sYug9IDj4d5/3xrrNTqVwQuumDW2n4qRvdMusZw==","signatures":[{"sig":"MEUCIQC6lqz3VR3LZ5JhM7p3qJAjAStHrdDE2e3w/cuDPWp2twIgTViDBvckHWGA+ckmTV2o9k4iB/OeuULuJC74cfsBla0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":405251},"main":"./lib/src/index.js","types":"./lib/src/index.d.ts","isBeta":false,"engines":{"npm":">=6.0.0","node":">=12.0.0","yarn":">=1.0.0"},"gitHead":"45ea32890f7859bda09adff84066210625667797","scripts":{"build":"rm -rf ./lib && deno2node tsconfig.json","prepare":"echo \"🐍 Building snake package.\" && rm -rf ./lib && deno2node tsconfig.json","prettier":"prettier -w .","build:license":"node ./generator/license"},"_npmUser":{"name":"armatofik","email":"steam4864@gmail.com"},"isPrivate":false,"repository":{"url":"git+https://github.com/tgsnake/tgsnake.git","type":"git"},"_npmVersion":"9.8.1","description":"Telegram MTProto framework for nodejs. Layer 222. Based on tgsnake 3.3.3-hotfix.2.","directories":{},"_nodeVersion":"20.6.1","dependencies":{"prompts":"2.4.2","mime-types":"2.1.35","@tgsnake/log":"latest","@tgsnake/fileid":"2.1.0","@tgsnake/parser":"2.1.0","@armatofik/tgsnake-core":"1.0.0"},"engineStrict":true,"_hasShrinkwrap":false,"packageManager":"yarn@4.0.1","devDependencies":{"prettier":"3.5.3","deno2node":"1.15.0","@types/node":"22.13.10"},"_npmOperationalInternal":{"tmp":"tmp/tgsnake_1.0.0_1770590868051_0.6979338435347706","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@armatofik/tgsnake","version":"1.1.0","keywords":["tgsnake","telegram","mtproto","userbot"],"author":{"name":"butthx"},"license":"MIT","_id":"@armatofik/tgsnake@1.1.0","maintainers":[{"name":"armatofik","email":"steam4864@gmail.com"}],"homepage":"https://tgsnake.js.org","bugs":{"url":"https://github.com/tgsnake/tgsnake/issues"},"dist":{"shasum":"0520c356adb9e5054f9925e926d4cb9c25c0e753","tarball":"https://registry.npmjs.org/@armatofik/tgsnake/-/tgsnake-1.1.0.tgz","fileCount":150,"integrity":"sha512-2PueB8CgX8d86gTeI2f7DCTMDWpZJVdv/o6Kst9SUYEVr9cdyjzaAkWkyVXgDj3cpXMJITIfEOAL2QNM/b7sQg==","signatures":[{"sig":"MEUCIQDemqia0xKm0VL3coJeZrhaPfMVoVOC81KRfRpG+sMT2gIgX45AsBaVcdCKKVrHdSPunUlJvFBtmLTbdpWn90f5d/U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":405307},"main":"./lib/src/index.js","types":"./lib/src/index.d.ts","isBeta":false,"engines":{"npm":">=6.0.0","node":">=12.0.0","yarn":">=1.0.0"},"gitHead":"abb5c37540f6a76eb964f7a2313bc4f8f406279d","scripts":{"build":"rm -rf ./lib && deno2node tsconfig.json","prepare":"echo \"🐍 Building snake package.\" && rm -rf ./lib && deno2node tsconfig.json","prettier":"prettier -w .","build:license":"node ./generator/license"},"_npmUser":{"name":"armatofik","email":"steam4864@gmail.com"},"isPrivate":false,"repository":{"url":"git+https://github.com/tgsnake/tgsnake.git","type":"git"},"_npmVersion":"9.8.1","description":"Telegram MTProto framework for nodejs. Layer 222. Based on tgsnake 3.3.3-hotfix.2.","directories":{},"_nodeVersion":"20.6.1","dependencies":{"prompts":"2.4.2","mime-types":"2.1.35","@tgsnake/log":"latest","@tgsnake/fileid":"2.1.0","@armatofik/tgsnake-core":"1.0.0","@armatofik/tgsnake-parser":"1.0.0"},"engineStrict":true,"_hasShrinkwrap":false,"packageManager":"yarn@4.0.1","devDependencies":{"prettier":"3.5.3","deno2node":"1.15.0","@types/node":"22.13.10"},"_npmOperationalInternal":{"tmp":"tmp/tgsnake_1.1.0_1770592268122_0.8891800659396742","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@armatofik/tgsnake","version":"1.2.0","description":"Telegram MTProto framework for nodejs. Layer 224. Based on tgsnake 3.3.3-hotfix.2.","main":"./lib/src/index.js","scripts":{"build":"rm -rf ./lib && deno2node tsconfig.json","build:license":"node ./generator/license","prettier":"prettier -w .","prepare":"echo \"🐍 Building snake package.\" && rm -rf ./lib && deno2node tsconfig.json"},"homepage":"https://tgsnake.js.org","keywords":["tgsnake","telegram","mtproto","userbot"],"bugs":{"url":"https://github.com/tgsnake/tgsnake/issues"},"repository":{"type":"git","url":"git+https://github.com/armatofik/tgsnake.git"},"author":{"name":"butthx"},"license":"MIT","dependencies":{"@armatofik/tgsnake-core":"1.13.16","@armatofik/tgsnake-parser":"1.1.0","@tgsnake/fileid":"2.1.0","@tgsnake/log":"latest","mime-types":"2.1.35","prompts":"2.4.2"},"devDependencies":{"@types/node":"22.13.10","deno2node":"1.15.0","prettier":"3.5.3"},"engineStrict":true,"engines":{"node":">=12.0.0","npm":">=6.0.0","yarn":">=1.0.0"},"packageManager":"yarn@4.0.1","isBeta":false,"isPrivate":false,"_id":"@armatofik/tgsnake@1.2.0","gitHead":"82915f820d94fdd10bc64130954a856f9051f0f1","types":"./lib/src/index.d.ts","_nodeVersion":"20.6.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-P9MX2/qS0b4QwXsQteo9yvkISMOq3cf9lPdC4vj+7P/HvYZ/dWt8yJZKsAtGq3gWknDHXeE4+PJ2WAu6lwrKRQ==","shasum":"73c1df50988f8f1ca5cb15d7d20d53482e299490","tarball":"https://registry.npmjs.org/@armatofik/tgsnake/-/tgsnake-1.2.0.tgz","fileCount":150,"unpackedSize":405315,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGDnmDiTcf6D5AU9DRjRGvMLuzk21JxkZYUwwpfWXZJKAiEA0IHWFjvA6g3ywZcWpwUNbPuzLxNRhHIwaykQ65TNBf8="}]},"_npmUser":{"name":"armatofik","email":"steam4864@gmail.com"},"directories":{},"maintainers":[{"name":"armatofik","email":"steam4864@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tgsnake_1.2.0_1772622966721_0.48479697766891094"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-08T22:47:47.946Z","modified":"2026-03-04T11:16:07.026Z","1.0.0":"2026-02-08T22:47:48.199Z","1.1.0":"2026-02-08T23:11:08.254Z","1.2.0":"2026-03-04T11:16:06.908Z"},"bugs":{"url":"https://github.com/tgsnake/tgsnake/issues"},"author":{"name":"butthx"},"license":"MIT","homepage":"https://tgsnake.js.org","keywords":["tgsnake","telegram","mtproto","userbot"],"repository":{"type":"git","url":"git+https://github.com/armatofik/tgsnake.git"},"description":"Telegram MTProto framework for nodejs. Layer 224. Based on tgsnake 3.3.3-hotfix.2.","maintainers":[{"name":"armatofik","email":"steam4864@gmail.com"}],"readme":"![tgsnakeicon](https://tgsnake.js.org/images/tgsnake.jpg)  \r\ntgsnake is a modern MTProto framework for javascript or typescript.  \r\n[![github-repo](https://img.shields.io/badge/Github-tgsnake-blue.svg?style=for-the-badge&logo=github)](https://github.com/tgsnake/tgsnake) [![telegram-chat](https://img.shields.io/badge/Telegram-Chat-blue.svg?style=for-the-badge&logo=telegram)](https://t.me/tgsnakechat)  \r\n[![telegram-channel](https://img.shields.io/badge/Telegram-Channel-blue.svg?style=for-the-badge&logo=telegram)](https://t.me/tgsnake)\r\n\r\nDon't forget to read our FAQ in our site!!\r\n\r\n### Example :\r\n\r\n- Installation :\r\n\r\n```bash\r\nnpx create-tgsnake-app myapp\r\n```\r\n\r\n- Simple Hello World :\r\n\r\n```javascript\r\nconst { Snake } = require('tgsnake');\r\n// import {Snake} from \"tgsnake\"\r\nconst bot = new Snake({\r\n  apiHash: 'abcde', //your api hash\r\n  apiId: 123456, // your api id\r\n  logLevel: 'none', // logger level\r\n});\r\nbot.run(); //snake running\r\nbot.on('msg.text', (ctx) => {\r\n  //handle new message event.\r\n  ctx.msg.reply('Hello World'); // reply with \"Hello World\"\r\n  //console.log(ctx) // see json of message.\r\n});\r\n```\r\n\r\nMore example you can found in our website.\r\n\r\n### Contribution\r\n\r\nWelcome, You can contribute to this project.\r\n\r\n### Reference\r\n\r\n- [Pyrogram](https://github.com/pyrogram/pyrogram)\r\n- [Telethon](https://github.com/LonamiWebs/Telethon)\r\n- [GramJs](https://github.com/gram-js/gramjs)\r\n- [Telegram Api](https://core.telegram.org/schema)\r\n- [Grammy](https://github.com/grammyjs/grammyjs)\r\n- [Telegraf](https://github.com/telegraf/telegraf)\r\n\r\nThanks to all the frameworks and references that I use, several people who helped in developing this framework that I cannot mention one by one.\r\n\r\nBuild with ♥️ by [tgsnake dev](https://t.me/tgsnakechat).\r\n","readmeFilename":"README.md"}