Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chitranjan-gupta/cloudflare-telegram-bot
Telegram Bot on Cloudflare Worker
https://github.com/chitranjan-gupta/cloudflare-telegram-bot
cloudflare cloudflare-workers telegram telegram-bot
Last synced: about 2 months ago
JSON representation
Telegram Bot on Cloudflare Worker
- Host: GitHub
- URL: https://github.com/chitranjan-gupta/cloudflare-telegram-bot
- Owner: chitranjan-gupta
- License: mit
- Created: 2023-10-25T10:50:03.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-28T13:51:39.000Z (about 1 year ago)
- Last Synced: 2024-10-28T07:11:48.574Z (2 months ago)
- Topics: cloudflare, cloudflare-workers, telegram, telegram-bot
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/cloudflare-telegram-bot
- Size: 8.79 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloudflare-telegram-bot
## Setup
1. Run the cloudflare
```bash
npm create cloudflare@latest
```
2. It will ask `Need to install the following packages: [email protected] Ok to proceed? (y)` Press y and Enter
3. It will ask `In which directory do you want to create your application?` Type your directory otherwise Enter for default
4. It will ask `What type of application do you want to create?` Select "Hello World" Worker and Enter
5. It will ask `Do you want to use TypeScript?` Select No
6. It will ask `Do you want to deploy your application?` Select No
7. Now go to your cloudflare worker directory
8. Now install this package
```bash
npm i cloudflare-telegram-bot@latest
```
9. Now go to `src` directory
10. Edit the index.js, remove all the codes and add this
```
const bot = require("cloudflare-telegram-bot");
export default bot;
```
12. Now run the worker
```bash
npm run dev
```## Deployment
1. Deploy your bot on the cloud
```bash
npm run deploy
```