This is a program used to link groups between Telegram and QQ, written in Haskell.
The program uses the coolq-http-api to communicate with Coolq, and get updates from Telegram through Webhook.
- Forward messages
-
Download the pre-build binary file at latest release.
-
Create
config.json
under the same directory aswl-bot-exe
:{ "groups":[ [QQgroupidhere, TGgroupidhere] ], "tgbotToken":"", "cqServer":"", "port": }
For example:
{ "groups":[ [124234231, -12514514] [434235235, -14353453] ], "tgbotToken":"telegramtokenhere", "cqServer":"http://localhost:5700", "port":8443 }
-
Enable Coolq Http API plugin, set the plugin:
"post_message_format": "array" "post_url": "http://yoursever:port/cq/"
-
Set Telegram webhook: Open url from browser: https://api.telegram.org/botyourbottoken/setWebhook?url=https://yourserver:port/telegram/
-
Run
wl-bot-exe
:./wl-bot-exe