A telegram bot that can be added to groups to share costs with people in the group
- Clone the repository
- Install the requirements
- Create a
.env
file with the following content:
TELEGRAM_BOT_API_KEY="your-telegram-bot-api-key"
TELEGRAM_BOT_REQUEST_URL="https://api.telegram.org/bot{bot-api-key}"
# Connect to Supabase via connection pooling with Supavisor.
DATABASE_URL="your-database-url"
# Direct connection to the database. Used for migrations.
DIRECT_URL="your-database-url"
SERVERLESS_ACCESS_KEY="your-serverless-access-key"
PRISMA_CLIENT_ENGINE_TYPE="binary"
- Run the following commands:
npx prisma migrate dev
npx prisma generate
- Run the bot using the following command:
dotenvx run --env-file=.env.production -- prisma generate
dotenvx run --env-file=.env.production -- serverless deploy -s production
5i. To run the bot on dev environment, use the following command: NOTE: Remember to generate prisma client before running the command
dotenvx run --env-file=.env.development -- prisma generate
dotenvx run --env-file=.env.development -- serverless deploy