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 loginStart Supabase service:
supabase startServe functions locally:
supabase functions serve telegram-bot --no-verify-jwtSet secrets:
- Copy secrets from
functions/telegram-bot/.env.exampleto the.envfile - Set the secrets to Supabase:
supabase secrets set --env-file supabase/functions/telegram-bot/.env
Deploy:
supabase functions deploy --no-verify-jwt telegram-botVerify functions and secrets:
supabase secrets list
supabase functions list- Set up tunneling using Ngrok to debug functions for Telegram bot locally