Skip to content

A telegram bot that can be added to groups to share costs with people in the group. Add it in today! @cashshare_bot

License

Notifications You must be signed in to change notification settings

ivanleekk/cashshare-telegram

Repository files navigation

cashshare-telegram

A telegram bot that can be added to groups to share costs with people in the group

Deployment

  1. Clone the repository
  2. Install the requirements
  3. 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"
  1. Run the following commands:
npx prisma migrate dev
npx prisma generate
  1. 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

About

A telegram bot that can be added to groups to share costs with people in the group. Add it in today! @cashshare_bot

Resources

License

Stars

Watchers

Forks