https://github.com/tsych0/setu-engine
modular chatting app bridge made in golang
https://github.com/tsych0/setu-engine
bridge go golang websocket
Last synced: about 1 year ago
JSON representation
modular chatting app bridge made in golang
- Host: GitHub
- URL: https://github.com/tsych0/setu-engine
- Owner: tsych0
- Created: 2024-02-04T13:22:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-08T09:46:01.000Z (over 2 years ago)
- Last Synced: 2025-03-22T10:20:36.587Z (over 1 year ago)
- Topics: bridge, go, golang, websocket
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# setu-engine
# Usage
## Run the [whatsapp-ki-maya](https://github.com/veryshyjelly/whatsapp-ki-maya) server
or
## Run the [telegram-ki-maya](https://github.com/veryshyjelly/telegram-ki-maya) server
### Get their IP address
## Using Docker
- Build the docker image
```bash
docker build -t setu-engine .
```
- Run the docker container
```bash
docker run -d -p 8070:8070 --name setu-engine setu-engine
```
### Bridging the chats
### Obtain chat id from whatsapp
- Send .id message in the chat with the bot present
### Obtain chat id from telegram
- Send /id message in the chat with the bot present
### Post the bridge request using postman
- Create a new request
- Set the request type to `POST`
- Set the request URL to `http://localhost:8070/bridge`
- Set the request body to
```json
{
"first_chat_id": "first_chat_id",
"first_url" : "ip_address_of_first_host",
"second_chat_id": "second_chat_id",
"second_url" : "ip_address_of_second_host"
}
```
### Notes
- You can bridge any two chats from any two hosts