Giter Site home page Giter Site logo

tg's Introduction

TG-WhatsApp

Get WhatsApp messages on Telegram and Reply from Telegram!

Features :

  • Realtime delivery of messages from whatsapp to telegram and vice-versa.
  • Supports both personal messages and group messages.

Why This Exists?

Being an active telegram user and a person who don't like to use Whatsapp, but still wants to keep connected with friends. A solution for the same would be using a bridge between both the apps. Yes, I know this already exists, but unfortunately its not handling the group messages like what i was expecting. So I decided to create a similar one with multidevice support from Tuhin's WhatApp userbot. In short you can call it as a fork of both WhatsGram and WhatsBot. I know , you know a better name , but still i love to call it as a fork. :/

Deploy :

Deploy with Heroku

Config Variables

  • BOT_TOKEN Bot token from @BotFather
  • MONGODB_URL MongoDB connection string.
  • OWNER_ID Your telegram ID.
  • SESSION_KEY Password for your session file.
  • SESSION_URL Direct link to your WhatsApp session file.
  • PM_REPLY Make it false if you don't want bot to send an automated message when someone DM for first time.

For detailed instructions on how to deploy and run your own bot, refer this wiki page of WhatsBot

  • After succesfull deployment,add the telegram bot to telegram group and whatsapp user to whatsapp group and send /connect in your telegram group or !connect <telegram chat id> in your whatsapp group to connect both the group.
  • To disconnect a chat, use /disconnect in your telegram chat.

How it works :

  • Open whatsapp web in server using puppeteer
  • Listen messages and take action.
  • Using telegraph-js to connect with telegram and sends messages to connected chats.

Credits :

  • Whatsapp Web JS - Whatsapp Web API Client
  • telegraf - Telegram Bot Framework for Node.js
  • WhatGram - Many of the functions related to telegram are taken from here.
  • WhatsBot - Modular Userbot for Whatsapp

License:

tg's People

Contributors

anshumanmahato avatar cyberboysumanjay avatar krishna-singhal avatar subinps avatar tuhinpal 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.