• Stars
    star
    142
  • Rank 258,495 (Top 6 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created about 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Receive your WhatsApp messages on Telegram

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: