An open API service indexing awesome lists of open source software.

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/

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=
```