Read and answer your Gmail from Telegram.

An email lands in your GmailIt shows up in your Telegram chat within a minute, the whole message.

About 10 minutes · No server · Runs in your own Google account

Gmail in, Telegram out.

Set it up once. After that you don’t open anything, it just runs.

Set it up in 10 minutes

Setup guidebot · step 9 of 9
Set it up in 10 minutes
Hi! I’ll walk you through the setup. 9 short steps, about 10 minutes, no coding. Scroll up any time to see a step again.
Step 1 of 9 · 1 min · @BotFather

Create your Telegram bot

  1. In Telegram, open @BotFather and send /newbot.
  2. Pick a name, then a username ending in bot.
  3. BotFather replies with a token (it looks like 123456789:AAF…). Copy it.

Keep it secret. The token is your bot’s password. In the next step you paste it here, and it never leaves your browser except to talk to Telegram.

Done ✓✓✓
Step 2 of 9 · 1 min · this chat

Connect your bot here

  1. Paste your bot token in the message box below and send it.
  2. Open your bot, tap Start and send “hi”.
  3. Tap I sent it. I’ll find your chat ID and put everything into your script.

Your token goes straight from your browser to Telegram. It isn’t saved or sent anywhere else, so you’ll paste it again if you reload the page.

Skip✓✓
Step 3 of 9 · 1 min · this chat

Copy your ready-made script

  1. Your bot token and chat ID are already filled in at the top.
  2. Tap Copy my script. You’ll paste it into Google Apps Script next.

When the script is updated, your bot tells you and this page shows the new version.

You skipped connecting your bot, so this is the plain script. Set BOT_TOKEN and CHAT_ID at the top after pasting it.

Done ✓✓✓
Step 4 of 9 · 1 min · script.google.com

Create your Google script

  1. Go to script.google.com signed in to the Gmail you want to forward.
  2. Tap New project and delete the sample code.
  3. Paste the script you copied.
Done ✓✓✓
Step 5 of 9 · 1 min · Project Settings

Set your time zone

  1. In your Apps Script project, open Project Settings (the gear on the left).
  2. Tick “Show appsscript.json”, open it, and set timeZone to your time zone (for example Africa/Lagos).
  3. Save the project.

Skipped connecting your bot? Then also set BOT_TOKEN and CHAT_ID at the top of the script.

Done ✓✓✓
Step 6 of 9 · 2 min · testSend

Test it, then switch it on

  1. Choose testSend and press Run.
  2. You’ll see an “unverified app” warning. That’s normal for your own script: Advanced → Go to project → Allow.
  3. Check Telegram for the test message.
  4. Run setupTrigger once. It now checks every minute, even with your phone off.
Done ✓✓✓
Step 7 of 9 · 1 min · real email

Try it for real

  1. Email yourself from another account.
  2. It shows up in Telegram within about a minute.
  3. Swipe-reply to it to answer by email.
  4. Send “Meeting tomorrow at 3pm” to test reminders.
Done ✓✓✓
Step 8 of 9 · 1 min · your phone

Make reminders ring

  1. Open your bot’s chat → tap its name → Notifications → Customize.
  2. Pick a loud Sound, set Importance: Urgent, turn on Vibrate.
  1. Test: run testMeetingCall. The reminder rings in about a minute.
  2. Want a phone call too? Tap Start in @CallMeBot_txtbot. Your Telegram username is already in the script if you have one; if not, set CALLMEBOT_USER.

Silent mode and Do Not Disturb still mute it.

Done ✓✓✓
Step 9 of 9 · 3 min · optional

Optional: make replies instant

  1. In your Apps Script project, click the blue Deploy button (top right), then New deployment.
  2. Click the gear icon next to Select type and choose Web app.
  3. Set Execute as to Me and Who has access to Anyone. Click Deploy, then Authorize access and allow it.
  4. Google now shows a Web app URL ending in /exec. Click Copy.
  5. At the top of the script, find WEBAPP_URL: "", and paste the link between the quotes. Press Ctrl+S to save.
  6. Choose setupWebhook next to Run and press Run. Telegram says “⚡ Instant replies are on”.
  7. Test it: type help to your bot. It should answer in a second or two.

You can skip this card. Without it everything still works, the bot just answers within about a minute. New emails always take up to a minute (Google’s limit). If you use this, then every time you paste a newer script: Deploy → Manage deployments → pencil → Version: New version → Deploy.

Open my scripts ↗

Good questions.

Tap the notifications to read them.

Mail to Telegram9 notifications

Let’s connect.

Stuck on a step, found a bug, or have an idea? Message me. I reply to everyone and I’ll help you get it running.

Build it with me.

Mail to Telegram is free and open source. Fix a bug, add a feature, or just tell me what would make it better.

How a change gets in
  1. 1ForkCopy the project to your GitHub.
  2. 2Pull requestMake your change and send it back.
  3. 3CheckedIt’s built, tested with a test bot and reviewed.
  4. 4MergedIt ships to everyone with the next update.
Contributing guide
Checking…The bot tells you in Telegram when there’s a new one.
What’s new

Loading…

Type in your bot chat
helpsend emailsummarize or swipe-reply any email
See the code