This telegram bot is powered by Supabase Edge Functions.
Commands:
/update_my_games $BGG_USERNAME
/show_all_games
Prerequisites:
- Deno:
curl -fsSL https://deno.land/install.sh | sh
- Supabase:
brew install supabase/tap/supabase
- Docker. I use OrbStack
Login to Supabase:
supabase login
Start Supabase service:
supabase start
Serve functions locally:
supabase functions serve telegram-bot --no-verify-jwt
Set secrets:
- Copy secrets from
functions/telegram-bot/.env.example
to the.env
file - Set the secrets to Supabase:
supabase secrets set --env-file supabase/functions/telegram-bot/.env
Deploy:
supabase functions deploy --no-verify-jwt telegram-bot
Verify functions and secrets:
supabase secrets list
supabase functions list
- Set up tunneling using Ngrok to debug functions for Telegram bot locally