Add README and example config

master
Hugo Thunnissen 4 years ago
parent 6025be4fb1
commit 5ddd06f604

@ -0,0 +1,77 @@
# Whapp-Deltachat
Whapp-Deltachat is a bridge between WhatsApp and [Deltachat](https://delta.chat). It uses
[go-whatsapp](https://github.com/Rhymen/go-whatsapp) and
[go-deltachat](https://github.com/hugot/go-deltachat) respectively to map verified
deltachat groups to whatsapp conversations. It is currently not full-featured and most
likely is ridden with bugs, but pretty usable. Use at your own risk 🤓.
## Requirements
- __A system that go-deltachat will run on.__ It should work on all systems that are supported
by golang and libdeltachat, but the static object file that is distributed with
go-deltachat has been compiled on an amd64 linux system, so for other architectures you
will need to compile the lib yourself.
- __An Android or iOS device that is capable of running the WhatsApp mobile app.__
go-whatsapp uses the WhatsApp Web API, so when you use this bridge you will still need
to have a device that is running WhatsApp somewhere.
## Install
There are no stable releases as of yet, so the only installation method right now is just
installing from source.
Installation example:
```bash
# clone
git clone git@github.com:hugot/whapp-deltachat.git
# build
cd ./whapp-deltachat
go build .
cp ./config.yml.example ./config.yml
# Now edit the config.yml file
"$EDITOR" ./config.yml
# Finally, run the program.
./whapp-deltachat ./config.yml
```
## First run
During the first time the program runs, there are two QR codes that need to be scanned:
First, the program will print a QR code to stdout. Scan this QR code from your deltachat
client to become a verified contact of the bridge. The bridge will then create a verified
chat with you and send you a QR code to scan from your WhatsApp mobile app. When you have
done this, the bridge will start doing it's thing.
### Known bug during first run
The first time that the bridge runs it will receive a lot of messages at the same time and
not in chronological order. This means that pre-existing WhatsApp messages will not be in
chronological order when they appear in your deltachat client. New messages received while
the bridge is running __will__ of course arrive in chronological order.
## Feature checklist
This is a list of features that are either implemented already or will be implemented in
the future.
- [x] Receive text messages
- [x] Receive image messages
- [x] Receive video messages
- [x] Receive audio messages
- [x] Receive document messages
- [ ] Receive contact (vcf) messages
- [x] Send text messages
- [ ] Send image messages
- [ ] Send video messages
- [ ] Send audio messages
- [ ] Send document messages
- [ ] Send contact (vcf) messages
- [ ] See chat's profile pic
- [ ] Sync user's deltachat profile pic with whatsapp profile pic
- [ ] Change group chat name
## Legal
This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by
WhatsApp or any of its affiliates or subsidiaries. This is an independent and unofficial
software. Use at your own risk.

@ -0,0 +1,22 @@
app:
# where whapp-deltachat gets to store it's data
data_folder: /var/lib/whapp-deltachat
# The address of the deltachat user you want to use the bridge with
user: chat@example.com
# Deltachat config section, see dc_set_config documentation for possible keys here:
# https://c.delta.chat/classdc__context__t.html#aff3b894f6cfca46cab5248fdffdf083d The
# server_params setting is currently not configurable through here, it is set to use
# STARTTLS for SMTP and SSL for IMAP by default. Will be made configurable soon.
deltachat:
addr: whapp@example.com
mail_pw: super_secret_password
mail_server: imap.example.com
mail_user: whapp@example.com
mail_port: 993
send_pw: super_secret_password
send_server: smtp.example.com
send_user: whapp@example.com
send_port: 587
Loading…
Cancel
Save