Skip to content

banabets/telegram-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Bot Gamba

Listen for gamba events and send notifications to a Telegram chat using a Telegram bot.

image

Installation

  1. Fork this repo and clone this repository to your local machine.
  2. Navigate to the project directory.
  3. Install dependencies using npm:
npm install

Configuration

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.

Usage

After configuring the parameters, you can build and start the application using the following command:

npm run build

then

npm start

Event Listener

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.

About

Simple gamba telegram starter

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 100.0%