Coder Social home page Coder Social logo

smsq's Introduction

Android app forwarding SMS messages to Telegram bot

license: GPL v3 github pages

It is just a handy thing when you work on your laptop. You probably don't want to pick up your phone every time you need to enter an OTP code.

This is parametrized fork of original smsq by Igor Mikushkin

Original repository

Since Igor's backend doesn't seem to work anymore, I decided to set up my own.

This fork allows you to set up your own backend and telegram bot.

image

Backend installation (optional)

For convenience you can use docker image tarasverq/smsq-backend

Just run it with command
docker run --name smsq -d --env=DOMAIN=<DOMAIN_HERE> --env=BOT_TOKEN=<BOT_TOKEN_HERE> --env=ADMIN_ID=<YOUR_TG_ID_HERE> -p <PORT_HERE>:80 tarasverq/smsq-backend:latest


Variable name Description
DOMAIN_HERE Domain with port for tg webhook. Webhook can be set up only on ports 80, 88, 443 or 8443
BOT_TOKEN_HERE Your bot token obtained from @BotFather
YOUR_TG_ID_HERE Your TG ID. Easiest way to get it: @username_to_id_bot
PORT_HERE Host Machine port

Example:
docker run --name smsq -d --env=DOMAIN=domain.com:443 --env=BOT_TOKEN=6531881811:AAF111e3coTifgug03-MdxN2tUEh7kp4Sm4 --env=ADMIN_ID=123321 -p 8888:80 tarasverq/smsq-backend:latest

IMPORTANT: Don't forget to send /start message to your bot before starting up docker image

In case you want to use https (recommended) set up nginx reverse proxy with letsencrypt certs.
Manual

Example nginx conf matching with ports from command above.
server {
    server_name   domain.com;
    location / {
        proxy_pass         http://127.0.0.1:8888;
        proxy_http_version 1.1;
        proxy_set_header   Upgrade $http_upgrade;
        proxy_set_header   Connection keep-alive;
        proxy_set_header   Host $host;
        proxy_cache_bypass $http_upgrade;
        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Proto $scheme;
    }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}

Installation client

Just install mobile app from releases

Usage

image

  1. Install Android app
  2. Open the app
  3. Put your bot name to first text field. e.g. my_sms_bot
  4. Put your backend url with ending slash. e.g. https://domain.com/
  5. start forwarding, connect Telegram
  6. Now you receive your SMS messages in this bot!

In case you don't want to set up backend you can use backend deployed by me.

Bot: sms_j_bot
Backend URL: https://smsq.jora.wtf/

Privacy policy

PRIVACY POLICY

Thanks to

JetBrains

smsq's People

Contributors

igrmk avatar tarasverq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.