GithubHelp home page GithubHelp logo

secretsanta007 / whatsapp-telegram-bridge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spechide/whatsapp-telegram-bridge

0.0 0.0 0.0 696 KB

A WhatsApp to Telegram Bridge as a Service

Home Page: https://blog.shrimadhavuk.me/posts/2017/12/31/Telegram-WhatApp/

License: MIT License

Python 98.40% Shell 1.60%

whatsapp-telegram-bridge's Introduction

WhatApp <=> Telegram Bridge

๐Ÿ†• The written instructions can be found here.

** LEGAL DISCLAIMER: ** It is possible that WhatsApp will end up blocking the phone number used to connect through yowsup-cli ** Use at your own Risk **

License

This code is released under the MIT license (see LICENSE).

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Example

The LIVE unstable version of this Bot

How to set-up your own instance of this bot?

  • cd $WORK_DIR
  • git clone [email protected]:SpEcHiDe/wat-bridge.git
  • git clone [email protected]:AragurDEV/yowsup.git
  • virtualenv -p python3 venv
  • . venv/bin/activate
  • pip3 install -r requirements.txt
  • cd yowsup
  • python3 setup.py install
  • cd ..
  • cd wat-bridge
  • mv development.conf config.conf
  • Edit config.conf according to the instructions given below.
  • sh run.sh
  • sh status.sh

edit config.conf

  • The Telegram token is obtained by talking to the BotFather through Telegram and creating a bot, while the owner ID can be obtained by using the /me command.
  • The database path is the full path to the file that will contain blacklist and contacts. Note that this path should be readable/writable by the user that executes the application.

How to get yowsup-cli password?

yowsup-cli registration -r sms -m MCC -n MNC -C CC -p CCXXXXXXXXXX -E android
  • Replace MCC, MNC, CC, and CCXXXXXXXXXX as appropriate.
yowsup-cli registration -R CODE -m MCC -n MNC -C CC -p CCXXXXXXXXXX -E android
  • Replace CODE with the WhatsApp verification code received, in the number that you had given.

Extra Configuration (To Get the Log Files Delivered to your Telegram ChatBox)

  • create a file named UploadToTG.sh with the following contents.
curl -i \
-F "chat_id={OWNER_CHAT_ID}" \
-F "document=@./log.txt" \
"https://api.telegram.org/bot{TG_BOT_TOKEN}/sendDocument"
  • Replace the variables with your variables.

whatsapp-telegram-bridge's People

Contributors

spechide avatar rmed avatar subins2000 avatar georgeto 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.