Skip to content

imTigger/SMS2Telegram

Repository files navigation

Minimalist Android SMS to Telegram Forwarder

No Ads, No Pro/Premium, No Tracking, No Unnecessary Permissions.

Free & Open Source under MIT license, built for common good.

Support Android 5.0+ with no dependencies (Not even Play Store).

Screenshots

Motivation

I use old Android phone to receive OTP from multiple numbers.

Existing apps from Play Store are full of ads, paywalls and some require unnecessary permissions.

Given that SMS OTP are sensitive data and leaking it poses critical security risk.

I decide to make an FOSS Telegram to SMS Forwarder, and share it freely for common good.

Everyone are free to review the code, compile it themselves and use it risk-free.

How to use

In the next few steps, you will create your own Telegram Bot with official chatbot.

Therefore your data will not be shared with any third party servers.

Step 1: Create Telegram Bot API Key

Start a chat with @BotFather

You:

/newbot

BotFather:

Alright, a new bot. How are we going to call it? Please choose a name for your bot.

You:

SMS2Telegram

BotFather:

Good. Now let's choose a username for your bot. It must end in bot. Like this, for example: TetrisBot or tetris_bot.

You:

SMS2TelegramDemoBot

BotFather:

Done! Congratulations on your new bot. You will find it at t.me/SMS2TelegramDemoBot. You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you've finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this.

Use this token to access the HTTP API: 8284599999:AAGbDp-Lk1IJFaoH0fuO6skp3rc-XXX_XXX Keep your token secure and store it safely, it can be used by anyone to control your bot.

For a description of the Bot API, see this page: https://core.telegram.org/bots/api

Now we got the API Token: 8284599999:AAGbDp-Lk1IJFaoH0fuO6skp3rc-XXX_XXX

Step 2: App setup

From the previous step, click on the link of your new bot: t.me/SMS2TelegramDemoBot, and click on the big "START" button or send any message to it.

Copy the API Token you obtained from previous step into the "Telegram Bot API Key" field.

Click on the "Find Chat ID" button, and select your Telegram username. The "Telegram Chat ID" field will be automatically filled.

Then click on "Validate and Continue" button to verify and complete the setup.

Download

Although you are encouraged to build it from source code for maximum security, Play Store and APK are available.

APK Download: Releases

Play Store: Play Store

Build from source

Just clone the project and use the latest version of Android Studio to import it.