Back to Blog
Telegram
Bot
Automation
ChatOps

How to Forward Emails to Telegram Bot & Channel

Setting up a Telegram bot to receive emails is easier than you think. Learn how to forward critical emails to any Telegram chat or channel instantly.

Telegram for Email Notifications

Telegram is powerful because of its open Bot API. It's the perfect place to centralize notifications from various services, including email.

Whether you're monitoring server logs, waiting for a specific client email, or tracking newsletters, forwarding them to Telegram keeps you in the loop without checking your inbox.

Step-by-Step Guide

1. Create a Telegram Bot

Talk to @BotFather on Telegram:

  • /newbot
  • Name it (e.g., "MyEmailBot")
  • Get the API Token.

2. Get Your Chat ID

Start a chat with your new bot and send a message. Then visit: https://api.telegram.org/bot<YourBOTToken>/getUpdates Look for the chat object and copy the id.

3. Configure MailHook

  • Set up a new MailHook email address.
  • In your destination settings (or script), configure it to send a POST request to the Telegram API:

POST https://api.telegram.org/bot<YourBOTToken>/sendMessage

Payload:

{
  "chat_id": "123456789",
  "text": "New Email from: sender@example.com\nSubject: Hello World"
}

Why Use MailHook?

Direct email-to-Telegram services often have limitations or costs. MailHook gives you the raw JSON data, allowing you to format the Telegram message exactly how you want—including buttons, links, and bold text.

Subscribe to our newsletter

Get the latest updates on email testing and engineering.