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 :
Config Variables
BOT_TOKEN
Bot token from @BotFatherMONGODB_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 itfalse
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:
- This Project is Apache-2.0 Licensed