lightning - forward messages between a qq group and a telegram group

lightning stability-wip Go

The purpose of this project is to forward messages between a qq group and a telegram group.

Getting Started

  1. Clone this project: git clone https://github.com/chfanghr/lightning.git
  2. Get dependencies by running get_dependencies.sh in the root of the repository
  3. Fill the configuration file, save it as config.json
    • Please refer to config.json.example
    • Redis configuration can be ignored if you use docker-compose to deploy this project
  4. Run docker-compose build
  5. Run docker-compose up -d
  6. Run docker-compose logs -f if you use qr code to log in to qq
  7. Enjoy!

Features

  • Forward text messages
  • Forward images
  • Recall messages from both telegram and qq
  • Forward telegram static stickers(including gifs)
  • Forward telegram tgs/animated stickers
  • Reply to forwarded messages (wip)

Troubleshooting

  • The program always fails to send (text) messages to qq:
    • remove session.token and device.json in the userdata folder
    • restart services using docker-compose restart
    • log in to qq (if needed) again

Related Projects

  • MiraiGo is a state-of-the-art reverse-engineering project. It provides unofficial qq apis.
  • telebot is a really nice telegram bot api framework.
  • rlottie-to-gif-api converts telegram animated stickers to gif images so that we can send them to qq.

License

Licensed under the MIT license.

Owner
方泓睿
Brainless Developer 💩
方泓睿
Similar Resources

Notify messages from gcs bucket objects to slack

Notify to Slack Notify message to slack from gcs storage file. Deploy $ gcloud functions deploy notify_to_slack \ --entry-point NotifyToSlack \

Oct 5, 2021

Notify - Notification microservice for sending templated payloads as Slack messages

Notify Notify is a microservice that takes an event & payload from an applicatio

May 23, 2022

Client to send messages to channels in Slack.

Slack Client A simple client to send messages to channels in Slack. Example package main import { "fmt" slack "github.com/tommzn/go-slack" }

Mar 13, 2022

Bridge Chrome "native messages" to Discord's IPC socket

chrome-discord-bridge This code bridges Chrome "native messages" to Discord's IPC socket. It's written in Go with no third-party dependencies. It's in

Nov 18, 2022

Wipe-discord - TUI application to erase Discord messages

Wipe-discord - TUI application to erase Discord messages

wipe-discord Terminal user interface (TUI) application to delete Discord message

Aug 21, 2022

IRC, Slack, Telegram and RocketChat bot written in go

IRC, Slack, Telegram and RocketChat bot written in go

go-bot IRC, Slack & Telegram bot written in Go using go-ircevent for IRC connectivity, nlopes/slack for Slack and Syfaro/telegram-bot-api for Telegram

Dec 20, 2022

Golang telegram bot API wrapper, session-based router and middleware

go-tgbot Pure Golang telegram bot API wrapper generated from swagger definition, session-based routing and middlewares. Usage benefits No need to lear

Nov 16, 2022

Bot that polls activity API for Github organisation and pushes updates to Telegram.

git-telegram-bot Telegram bot for notifying org events Requirements (for building) Go version 1.16.x Setup If you don't have a telegram bot token yet,

Apr 8, 2022

Library for working with golang telegram client + bot based on tdlib. This library was taken from the user Arman92 and changed for the current version of tdlib.

go-tdlib Golang Telegram TdLib JSON bindings Install To install, you need to run inside a docker container (it is given below) go get -u github.com/ka

Dec 2, 2022
Simple telegram Bot to ban Anonymous Channel users in a group

Restrict Channel Robot Telegram Bot, written in GoLang to delete messages and ban anonymous users who send as channel in groups. Can be found on teleg

Dec 20, 2022
Tg-channel-api - A JSON API for latest messages of public Telegram channels

Telegram Channel API A JSON API for latest messages of public Telegram channels.

Oct 27, 2022
The serverless OTP telegram service use telegram as OTP service, and send OTP through webhook

Setup OTP First thing, you need prepare API(webhook) with POST method, the payload format as below { "first_name": "Nolan", "last_name": "Nguyen",

Jul 24, 2022
Dlercloud-telegram-bot - A Telegram bot for managing your Dler Cloud account

Dler Cloud Telegram Bot A Telegram bot for managing your Dler Cloud account. Usa

Dec 30, 2021
Pro-bot - A telegram bot to play around with the community telegram channels

pro-bot ?? Pro Bot A Telegram Bot to Play Around With The Community Telegram Cha

Jan 24, 2022
Compares the BTC and ETH buy and sell prices between two exchanges.

CryptoComparer Repo for the crypto comparer, where I compare prices between two exchanges(Blockchain and Binance), and tell you which is the best plac

Oct 28, 2021
Golang bot that connects to slack using Socketclient to read and write messages.
Golang bot that connects to slack using Socketclient to read and write messages.

?? (not)simple go project ?? Golang bot that connects to slack using Socketclient to read and write messages. ?? Use ?? @SquidBot : Mentions your name

Aug 23, 2022
A lightweight way to mass delete old messages

discord-mass-delete A quick tool to retroactively delete all messages (or filter to specific channels / guilds), extracted from your Discord data back

Jan 5, 2023
Discord bot to find the most liked messages

Emotive Emotive is a discord bot written in Go made for OCM Discord that can tell you the most interesting messages in a channel. These are based on t

Nov 8, 2021
A Discord bot for downloading attachments from channel messages.
A Discord bot for downloading attachments from channel messages.

dcdl This is a Discord bot for downloading attachments from channel messages. Setup First, set up a Discord bot application (see here how to do so). N

May 11, 2022