Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

🔄 Transfer WhatsApp message to Telegram

Notifications You must be signed in to change notification settings

KevinSHIT/WhatsAppToTelegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhatsAppToTelegram

How to use

1. Setup Environment

Before all, you should install the Go. Go 1.16.3+ is recommended (cuz I only tested with it).

2. Modify Secrets

Then modify the information inside the shared.go to yours.

  • tgToken: ""
    Modify to your Telegram bot token. If you don't have one, ask @BotFather.
  • tgChatId = 0
    Modify to your Telegram ChatID. If you are not sure about your chatId, use @userinfobot. The first line starts with Id will be your chatId.

3. Build & Run

Use following commands to compile and run:

go build ./
chmod +x WhatsAppToTelegram
./WhatsAppToTelegram

Functions Work

  • WhatsApp -> Telegram
    • Text Message
    • Image Message
    • Document Message
    • Video Message
    • Audio Message
    • Json Message
    • Contact Message
    • Battery Message
    • New Contact
  • Telegram -> WhatsApp
    • Text Message
    • Photo Message
    • Document Message
    • Video Message
    • Voice Message

Credits

Thank you to all the repositories listed below (alphabetical ordered).

Repository License
https://github.com/Baozisoftware/qrcode-terminal-go BSD-3-Clause License
https://github.com/Rhymen/go-whatsapp MIT
https://gopkg.in/tucnak/telebot.v2 MIT

About

🔄 Transfer WhatsApp message to Telegram

Resources

Stars

Watchers

Forks