Listen for gamba events and send notifications to a Telegram chat using a Telegram bot.
- Fork this repo and clone this repository to your local machine.
- Navigate to the project directory.
- Install dependencies using npm:
npm install
Before running the application, you need to configure the following parameters:
Solana RPC URL:Add your Solana RPC URL, which can be obtained from https://dev.helius.xyz.Telegram Bot Token:Add your Telegram bot token, which can be obtained from @BotFather.Telegram Chat ID:Add your Telegram chat ID, which can be obtained from @getmyidbot.
After configuring the parameters, you can build and start the application using the following command:
npm run build
then
npm start
The application listens for the GameSettled event on from gamba. When this event occurs, it formats the event data and sends a notification to the configured Telegram chat. The notification includes details such as user, wager, payout, multiplier, and metadata.
