PYTHON ยท MESSAGING

Meridian Edge + Telegram

Build a Telegram bot that sends real-time prediction market consensus alerts โ€” divergence signals, pre-game consensus, and daily summaries.

Connect your Telegram bot to Meridian Edge to access real-time prediction market consensus from 25+ regulated sources. Get alerts on divergence, high-confidence events, and consensus shifts delivered directly to Telegram.

Requirements

Installpip install python-telegram-bot requests

Integration Code

Telegram Consensus Alert Botpython
import asyncio
import requests
from telegram import Bot

BOT_TOKEN = "YOUR_TELEGRAM_BOT_TOKEN"
CHAT_ID   = "YOUR_CHAT_ID"
API_KEY   = "me_live_YOUR_KEY"
HEADERS   = {"X-API-Key": API_KEY}

async def send_consensus_alert(sport="NBA"):
    r = requests.get(
        "https://meridianedge.io/api/v1/consensus",
        headers=HEADERS,
        params={"sport": sport, "limit": 10}
    )
    events = r.json().get("events", [])
    # Only alert on high-divergence events
    alerts = [e for e in events if e.get("divergence_pct", 0) > 0.04]

    if not alerts:
        return

    bot = Bot(token=BOT_TOKEN)
    lines = [f"๐Ÿ“Š Divergence Alert โ€” {sport}\n"]
    for e in alerts[:5]:
        prob = round(e['consensus_prob'] * 100)
        div  = round(e.get('divergence_pct', 0) * 100, 1)
        lines.append(f"โ€ข {e['title']}\n  {prob}% consensus | {div}% divergence")
    lines.append("\nNot investment advice")

    await bot.send_message(chat_id=CHAT_ID, text="\n".join(lines), parse_mode="HTML")

asyncio.run(send_consensus_alert("NBA"))

Try it โ€” API key in 10 seconds

Get your Meridian Edge API key, create a Telegram bot with @BotFather, and start receiving prediction market alerts.

View Plans → API Reference

Frequently Asked Questions

How do I build a prediction market Telegram bot?
Use python-telegram-bot to send messages and the requests library to call the Meridian Edge /api/v1/consensus endpoint. Schedule alerts with APScheduler or a cron job. Filter for high-divergence events to avoid noise.
What does a prediction market Telegram bot cost?
Yes. Telegram bots are open source. Meridian Edge starter tier: 100 calls/day. Get a key at meridianedge.io/#pricing.