cloudflare-telegram-bot
v1.0.1
Published
Cloudflare telegram bot
Readme
cloudflare-telegram-bot
Setup
- Run the cloudflare
npm create cloudflare@latest - It will ask
Need to install the following packages: [email protected] 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
srcdirectory - Edit the index.js, remove all the codes and add this
require("cloudflare-telegram-bot"); - Now run the worker
npm run dev
