Before all, you should install the Go. Go 1.16.3+ is recommended (cuz I only tested with it).
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 withId
will be your chatId.
Use following commands to compile and run:
go build ./
chmod +x WhatsAppToTelegram
./WhatsAppToTelegram
- 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
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 |