Build a Telegram Odds Bot with Inline Search
A Telegram bot that serves live odds via commands and inline search. Users can type@yourbot Lakers in any chat to see odds without opening the bot.
What You’ll Use
| SDK Method | Endpoint | Purpose |
|---|---|---|
search() | GET /v1/search | Find events by team name |
getEventOdds() | GET /v1/events/{id}/odds | Get odds for a matched event |
getScores() | GET /v1/scores | List all live scores |
getSports() | GET /v1/sports | List available sports |
Prerequisites
- Node.js 18+
- A Telegram bot token (from @BotFather)
- A free FieldFunded API key
Step 1: Initialize
Step 2: /odds Command
Step 3: /scores Command
Step 4: Inline Search (the killer feature)
Users type@yourbot Lakers in any chat and get odds results as inline cards:
Step 5: Launch
Deploy
Deploy to Render or Railway (both have free tiers):Rate Limit Math
/odds= 2 requests (search + odds)/scores= 1 request- Inline query = 1-6 requests (search + odds per result)
- Free tier handles ~2,000 bot interactions/month
Search API Reference
See search endpoint docs →
Related Guides
- Build a Discord Bot — same concept for Discord servers
- Build WhatsApp Alerts — automated alerts to your phone
- Build a Betting Platform — full-stack architecture
Get Your Free API Key
Start building in 5 minutes — 10,000 free requests/month
See Pricing
All plans compared side by side
