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

Latest commit

 

History

History
56 lines (42 loc) · 1.36 KB

README.md

File metadata and controls

56 lines (42 loc) · 1.36 KB

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