{"_id":"@alotofblahaj/cf-workers-telegram-bot","name":"@alotofblahaj/cf-workers-telegram-bot","dist-tags":{"latest":"9.1.4"},"versions":{"9.1.4":{"name":"@alotofblahaj/cf-workers-telegram-bot","version":"9.1.4","description":"serverless telegram bot on cf workers","main":"./dist/main.js","module":"./dist/main.js","types":"./dist/types.d.ts","keywords":["cloudflare","telegram","worker","webhook"],"type":"module","private":false,"scripts":{"build":"tsc --project tsconfig.json","lint":"eslint src","test":"vitest --config vitest.config.js"},"author":{"name":"AlotOfBlahaj"},"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/AlotOfBlahaj/cf-workers-telegram-bot.git"},"devDependencies":{"@cloudflare/workers-types":"^4.20250628.0","@eslint/js":"^9.30.0","@typescript-eslint/eslint-plugin":"^8.35.0","@typescript-eslint/parser":"^8.35.0","eslint":"^9.30.0","eslint-config-prettier":"^10.1.5","globals":"^16.2.0","prettier":"^3.6.2","typescript":"^5.8.3","typescript-eslint":"^8.35.0","vitest":"^3.2.4"},"_id":"@alotofblahaj/cf-workers-telegram-bot@9.1.4","gitHead":"f767be3545507cb3ba50e2330448334aad6a7cbf","bugs":{"url":"https://github.com/AlotOfBlahaj/cf-workers-telegram-bot/issues"},"homepage":"https://github.com/AlotOfBlahaj/cf-workers-telegram-bot#readme","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-tsxgdVTfRaEk1eJvhj878zw/VT80kk2k/OHlBSSY44SL74SADDWxP7We67YaqbRI9ckoJdQteeyAGfAqQ/xtdg==","shasum":"8c0542927d9dd18b752239e8b4199ee2eee23e8f","tarball":"https://registry.npmjs.org/@alotofblahaj/cf-workers-telegram-bot/-/cf-workers-telegram-bot-9.1.4.tgz","fileCount":3,"unpackedSize":13828,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCsyRA9OeMfwaWYJIHAi9rGik9CfuGu3aATVAo/HZBNHQIhAL0iuh1TIwOrXGN0SJLRlgOX9QYOz7aalnDP/z1evpSE"}]},"_npmUser":{"name":"alotofblahaj","email":"me@blahaj.cyou"},"directories":{},"maintainers":[{"name":"alotofblahaj","email":"me@blahaj.cyou"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cf-workers-telegram-bot_9.1.4_1753781602307_0.054229629595206275"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-29T09:33:22.215Z","9.1.4":"2025-07-29T09:33:22.486Z","modified":"2025-07-29T09:33:22.752Z"},"maintainers":[{"name":"alotofblahaj","email":"me@blahaj.cyou"}],"description":"serverless telegram bot on cf workers","homepage":"https://github.com/AlotOfBlahaj/cf-workers-telegram-bot#readme","keywords":["cloudflare","telegram","worker","webhook"],"repository":{"type":"git","url":"git+https://github.com/AlotOfBlahaj/cf-workers-telegram-bot.git"},"author":{"name":"AlotOfBlahaj"},"bugs":{"url":"https://github.com/AlotOfBlahaj/cf-workers-telegram-bot/issues"},"license":"Apache-2.0","readme":"<h3 align=\"center\">\n<img src=\"https://raw.githubusercontent.com/codebam/cf-workers-telegram-bot/master/assets/logo.png\" width=\"100\" />\n<br/>\nCF Workers Telegram Bot\n<br/>\n</h3>\n\n<h6 align=\"center\">\n  <a href=\"https://codebam.github.io/cf-workers-telegram-bot/\">Docs</a>\n  <a href=\"https://github.com/codebam/cf-workers-telegram-bot/wiki\">Wiki</a>\n</h6>\n\n<p align=\"center\">\n<a href=\"https://github.com/codebam/cf-workers-telegram-bot/stargazers\">  <img src=\"https://img.shields.io/github/stars/codebam/cf-workers-telegram-bot?style=for-the-badge&logo=starship&color=111111&logoColor=ffffff&labelColor=000000\" alt=\"GitHub stars\"/></a>\n<a href=\"https://github.com/codebam/cf-workers-telegram-bot/issues\">\n  <img src=\"https://img.shields.io/github/issues/codebam/cf-workers-telegram-bot?style=for-the-badge&logo=gitbook&color=111111&logoColor=ffffff&labelColor=000000\" alt=\"GitHub issues\"/></a>\n<a href=\"https://github.com/codebam/cf-workers-telegram-bot\">  <img src=\"https://img.shields.io/github/forks/codebam/cf-workers-telegram-bot?style=for-the-badge&logo=git&color=111111&logoColor=ffffff&labelColor=000000\" alt=\"GitHub forks\"/></a>\n<a href=\"https://www.npmjs.com/package/@codebam/cf-workers-telegram-bot\">  <img src=\"https://img.shields.io/npm/v/@codebam/cf-workers-telegram-bot?style=for-the-badge&logo=npm&color=111111&logoColor=ffffff&labelColor=000000\" alt=\"npm version\" /></a>\n</p>\n\n![screenshot of cf-workers-telegram-bot](https://raw.githubusercontent.com/codebam/cf-workers-telegram-bot/master/assets/screenshot.png)\n\n```sh\nnpm i @codebam/cf-workers-telegram-bot\n```\n\nSee [cwtb-consumer](https://github.com/codebam/cwtb-consumer) for an example of what a bot might look like. Just import from `@codebam/cf-workers-telegram-bot`.\n\nSee [my blog post](https://seanbehan.ca/posts/cf-workers-telegram-bot) for a more in-depth guide for how to set up a bot.\n\n- `npm create cloudflare@latest`\n- `npx wrangler login`\n- `npx wrangler secret put SECRET_TELEGRAM_API_TOKEN`, set it to your telegram bot token that you got from `@BotFather`\n- `npx wrangler deploy`\n- Open this url in your browser to set your webhook `https://your-worker.username.workers.dev/SECRET_TELEGRAM_API_TOKEN?command=set`\n\nTo set up GitHub actions to deploy when you push, see https://github.com/cloudflare/wrangler-action\n\n---\n\nThese instructions are for if you want to deploy a copy of the bot along with\nthe library. Such as if you need extra API requests that haven't been\nimplemented yet.\n\n[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/codebam/cf-workers-telegram-bot)\n\n- Click the deploy button\n- Navigate to your new **GitHub repository &gt; Settings &gt; Secrets** and add the following secrets:\n\n  ```yaml\n  - Name: CLOUDFLARE_API_TOKEN  (should be added automatically)\n  - Name: CLOUDFLARE_ACCOUNT_ID (should be added automatically)\n\n  - Name: SECRET_TELEGRAM_API_TOKEN\n  - Value: your-telegram-bot-token\n  ```\n\n- Push to `master` to trigger a deploy\n","readmeFilename":"README.md","_rev":"1-0744ebec2f481b4c679c3d9d09e7de56"}