Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/winstxnhdw/chatgpt-bill-bot
A scheduled Telegram bot for announcing the bill to members in a chat group.
https://github.com/winstxnhdw/chatgpt-bill-bot
bun grammy telegram
Last synced: 14 days ago
JSON representation
A scheduled Telegram bot for announcing the bill to members in a chat group.
- Host: GitHub
- URL: https://github.com/winstxnhdw/chatgpt-bill-bot
- Owner: winstxnhdw
- Created: 2023-05-23T15:07:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-17T22:19:34.000Z (20 days ago)
- Last Synced: 2024-10-20T07:31:16.815Z (17 days ago)
- Topics: bun, grammy, telegram
- Language: TypeScript
- Homepage: https://t.me/chatgptbillbot
- Size: 446 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chatgpt-bill-bot
[![main.yml](https://github.com/winstxnhdw/chatgpt-bill-bot/actions/workflows/main.yml/badge.svg)](https://github.com/winstxnhdw/chatgpt-bill-bot/actions/workflows/main.yml)
[![release.yml](https://github.com/winstxnhdw/chatgpt-bill-bot/actions/workflows/release.yml/badge.svg)](https://github.com/winstxnhdw/chatgpt-bill-bot/actions/workflows/release.yml)
[![announce.yml](https://github.com/winstxnhdw/chatgpt-bill-bot/actions/workflows/announce.yml/badge.svg)](https://github.com/winstxnhdw/chatgpt-bill-bot/actions/workflows/announce.yml)A scheduled Telegram bot for announcing the bill to members in a chat group.
## Commands
### Setup
Populate the `.env` file.
```bash
{
echo "TELEGRAM_BOT_TOKEN=$TELEGRAM_BOT_TOKEN"
echo "TELEGRAM_CHAT_ID=$TELEGRAM_CHAT_ID"
echo "FIXER_API_KEY=$FIXER_API_KEY"
echo "PHONE_NUMBER=$PHONE_NUMBER"
echo "PAYLAH_LINK=$PAYLAH_LINK"
} >> .env
```Install all dependencies.
```bash
bun install
```Run your application.
```bash
bun dev
```### Build
Build a non-minified binary of your Bun application. For debugging purposes.
```bash
bun run build
```Build a production-ready binary of your Bun application.
```bash
bun run build --minify
```### Test
Run your tests with hot reloading.
```bash
bun run test
```Run your tests without hot reloading. For testing in a CI pipeline.
```bash
bun test
```You can run an end-to-end test with the following command.
```bash
bun e2e
```You can get the chat ID of a active Telegram chat group with the following command.
```bash
bun chat
```