https://github.com/thorwebdev/dovejob
https://www.build.gov.sg/projects/dovejob/
https://github.com/thorwebdev/dovejob
Last synced: 9 months ago
JSON representation
https://www.build.gov.sg/projects/dovejob/
- Host: GitHub
- URL: https://github.com/thorwebdev/dovejob
- Owner: thorwebdev
- Created: 2023-06-17T10:03:22.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-01T04:42:18.000Z (almost 3 years ago)
- Last Synced: 2025-09-07T21:46:35.489Z (9 months ago)
- Language: TypeScript
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ah Ma Power 💪👵 Telegram Bot
> Try it out: https://t.me/SGjobsHelperBot
## Run locally
```bash
supabase functions serve --env-file ./supabase/.env
```
In a separate terminal window run
```bash
ngrok http 54321
```
Register the bot webhook
https://api.telegram.org/bot/setWebhook?url=https://your-ngrok-url.ngrok.app/telegram-bot?secret=
## Deploying
1. Deploy all functions;
```shell
supabase functions deploy
```
2. Contact [@BotFather](https://t.me/BotFather) to create a bot and get its
token.
3. Set the secrets:
```shell
supabase secrets set --env-file ./supabase/.env
```
4. Set your bot’s webhook URL to
`https://.functions.supabase.co/telegram-bot` (replacing
`<...>` with respective values). To do that, you open the request URL in your
browser:
```text
https://api.telegram.org/bot/setWebhook?url=https://.functions.supabase.co/telegram-bot?secret=
```