{"_id":"@adstelo/sdk","_rev":"2-7bd1b1b59734bea2d0d937127a6ac401","name":"@adstelo/sdk","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@adstelo/sdk","version":"0.1.0","license":"MIT","_id":"@adstelo/sdk@0.1.0","maintainers":[{"name":"adstelo","email":"support@adstelo.com"}],"dist":{"shasum":"f326dcaba65a780d5ddb2b81f8fab88dea465004","tarball":"https://registry.npmjs.org/@adstelo/sdk/-/sdk-0.1.0.tgz","fileCount":8,"integrity":"sha512-em6OK/rzs7TtaaWRNRgWJztWIHCVJ9x+AO9vWyDHaeJU87PYTl7p7GEZtAkNcEDTP0o9/pWnJ0RO4anVOp3E/g==","signatures":[{"sig":"MEYCIQDxjIHl4agbY04SqEBkH2ynt6tIoAEDozF121EXj/j02gIhAIVMAxqwqDOeqF8O5c0BP0TpulfKSutfAdyAm8Tf2gda","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39984},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup"},"_npmUser":{"name":"adstelo","email":"support@adstelo.com"},"_npmVersion":"10.9.2","description":"Adstelo Telegram ads SDK for bots","directories":{},"_nodeVersion":"22.13.1","dependencies":{"grammy":"^1.41.1","telegraf":"^4.16.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.5","typescript":"^5.6.3","@types/node":"^22.10.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.0_1774129263513_0.6899439818876891","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@adstelo/sdk","version":"0.1.1","description":"Adstelo Telegram ads SDK for bots","license":"MIT","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest run"},"devDependencies":{"@types/node":"^22.10.0","tsup":"^8.3.5","typescript":"^5.6.3","vitest":"^2.1.5"},"dependencies":{"grammy":"^1.41.1","telegraf":"^4.16.3"},"_id":"@adstelo/sdk@0.1.1","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-qCttCy7tfDBVtR3WHDtIzIZBc0pQiLOCr5MnUKb9GhY8LxVSujMI0mKhFaNB5TaW0SaLnpindaJYtCizjyW4TQ==","shasum":"3a3080f16a8a3b9fbaa714ca35b62d7603c96e83","tarball":"https://registry.npmjs.org/@adstelo/sdk/-/sdk-0.1.1.tgz","fileCount":8,"unpackedSize":37707,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC0v0IOJxyB2OX3/jq9cxvkWHvpnh7helhkf66GhH0RjAIgQUyZ0EG7vBZHhznonkF87WC/0PwaLB6lD4HXBoHUJPA="}]},"_npmUser":{"name":"adstelo","email":"support@adstelo.com"},"directories":{},"maintainers":[{"name":"adstelo","email":"support@adstelo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.1.1_1774130763946_0.7698240802323757"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-21T21:41:03.418Z","modified":"2026-03-21T22:06:04.235Z","0.1.0":"2026-03-21T21:41:03.667Z","0.1.1":"2026-03-21T22:06:04.121Z"},"license":"MIT","description":"Adstelo Telegram ads SDK for bots","maintainers":[{"name":"adstelo","email":"support@adstelo.com"}],"readme":"# @adstelo/sdk\n\nAdstelo JS SDK for Telegram bots monetization. Supports Telegraf and grammY.  To use it, you must obtain keys from adstelo platform. Each bot gets a unique secret key. Dont mix them up!\n\n## Install\n\n```bash\nnpm install @adstelo/sdk\n```\n\n## Quick Start (One-liner)\n\n```js\nimport { Bot } from \"grammy\";\nimport { adstelo } from \"@adstelo/sdk\";\n\nconst bot = new Bot(process.env.BOT_TOKEN);\n\nbot.use(\n  adstelo.grammy({\n    botSecret: process.env.ADSTELO_BOT_SECRET,\n    apiKey: process.env.ADSTELO_API_KEY,\n    cooldownSeconds: 2\n  })\n);\n```\n\n## Telegraf\n\n```js\nimport { Telegraf } from \"telegraf\";\nimport { adstelo } from \"@adstelo/sdk\";\n\nconst bot = new Telegraf(process.env.BOT_TOKEN);\n\nbot.use(\n  adstelo.telegraf({\n    botSecret: process.env.ADSTELO_BOT_SECRET,\n    apiKey: process.env.ADSTELO_API_KEY\n  })\n);\n```\n\n## API\n\n- `adstelo.telegraf(options?)`\n- `adstelo.grammy(options?)`\n","readmeFilename":"README.md"}