Developer API, MCP and webhooks·
Set up Getwello with Telegram
Build a tiny Telegram bot that posts check-ins to a private group. 5 minutes with @BotFather.
Telegram has the cleanest bot API of any chat platform. This guide builds a bot that posts Getwello events to a private family group.
What you need
- Telegram on your phone.
- A Getwello Coordinator account with active subscription.
- 5 minutes for the bot, another 5 for the relay.
Step 1: Create the bot
- Open Telegram, search for @BotFather, start a chat.
- Send
/newbot. Pick a display name (e.g. “Mum check-in bot”) and a username ending in “bot”. - BotFather replies with an API token. Copy it.
Step 2: Create a private group and add the bot
- In Telegram, create a new group with the family members you want.
- Add your bot as a member.
- Find the group's chat ID: easiest is to use @username_to_id_bot, or send a message in the group then call
https://api.telegram.org/bot<TOKEN>/getUpdatesand look for the chat ID (negative number).
Step 3: Build a tiny relay
Telegram bots send messages by calling their API. Wrap our webhook to do that. Cloudflare Worker example:
export default {
async fetch(req, env) {
const evt = await req.json();
const text = evt.event === 'check_in.created'
? `*Mum has just checked in*\n_${evt.occurred_at} · Mood: ${evt.data.mood ?? 'n/a'}_`
: `*${evt.event}*\n${JSON.stringify(evt.data)}`;
await fetch(`https://api.telegram.org/bot${env.TG_TOKEN}/sendMessage`, {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({
chat_id: env.TG_CHAT_ID,
parse_mode: 'Markdown',
text
})
});
return new Response('ok');
}
};
Step 4: Create the Getwello webhook subscription
Settings → Developer API → Webhooks. URL is your relay. Tick the events you want.
Test
Click Test. The bot posts in your Telegram group within a second or two.
Troubleshooting
Bot can't post: the bot must be a member of the group, and (for newer Telegram) admin permissions help.
Markdown looks wrong: Telegram has two markdown modes. Try MarkdownV2 with proper escaping if Markdown breaks.
More on developer api, mcp and webhooks
- What the Developer API is for, in plain English
- Create your first API key
- Set up the Getwello MCP server with Claude Desktop
- What webhooks are, and why you would want one
- Set up your first webhook
- Recipe: Sonos announces "Mum has just checked in" via Home Assistant
- Troubleshooting integrations
- Set up Getwello with Slack, end to end
- Set up Getwello with Amazon Alexa
- Set up Getwello with Apple Shortcuts and Siri
- Set up Getwello with Google Home and Nest
- Set up Getwello with Zapier
- Set up Getwello with Notion
- Set up Getwello with n8n
- Set up Getwello with Make.com
- Set up Getwello with Discord
- Set up Getwello with Microsoft Teams
- Set up Getwello with IFTTT
- Set up Getwello with Pushover
- Set up Getwello with Cursor
- Set up Getwello with Ollama
- Set up Getwello with Apple HomeKit
- Set up Getwello with SmartThings
- Set up Getwello with Hubitat
- Set up Getwello with Tasker
- Set up Getwello with Sonos
- Set up Getwello with Google Calendar
- Set up Getwello with Apple Calendar
- Set up Getwello with Obsidian
- Set up Getwello with ntfy
Didn't answer your question?
Email hello@getwello.co.uk