- Run the cloudflare
npm create cloudflare@latest
- It will ask
Need to install the following packages: create-cloudflare@2.6.2 Ok to proceed? (y)
Press y and Enter - It will ask
In which directory do you want to create your application?
Type your directory otherwise Enter for default - It will ask
What type of application do you want to create?
Select "Hello World" Worker and Enter - It will ask
Do you want to use TypeScript?
Select No - It will ask
Do you want to deploy your application?
Select No - Now go to your cloudflare worker directory
- Now install this package
npm i cloudflare-telegram-bot
- Now go to
src
directory - Edit the index.js, remove all the codes and add this
require("cloudflare-telegram-bot");
- Now run the worker
npm run dev
cloudflare-telegram-bot
1.0.1 • Public • PublishedPackage Sidebar
Install
npm i cloudflare-telegram-bot
Weekly Downloads
0
Version
1.0.1
License
MIT
Unpacked Size
5.03 kB
Total Files
4