Matterbridge API plugin for Delta Chat
Project description
Matterdelta
Matterdelta is a Matterbridge API plugin allowing to connect Delta Chat group chats to the various chat services supported by Matterbridge.
Install
pip install matterdelta
Usage
Configure the bot's Delta Chat account:
matterdelta init bot@example.com PASSWORD
# optional:
matterdelta config selfavatar "/path/to/avatar.png"
matterdelta config displayname "Bridge Bot"
matterdelta config selfstatus "Hi, I am a Delta Chat bot"
Running the bot:
matterdelta serve
To see all available options run matterdelta --help
Example Configuration
matterbridge.toml
[api]
[api.deltachat]
BindAddress="127.0.0.1:4242"
Token="MATTERBRIDGE_TOKEN"
Buffer=1000
RemoteNickFormat="{NICK}"
...
[[gateway]]
name="gateway1"
enable=true
[[gateway.inout]]
account="api.deltachat"
channel="api"
...
Add these to your existing Matterbridge config to set up an API instance that Matterdelta can connect to.
config.json
{
"gateways": [
{"gateway": "gateway1", "chatId": 1234}
],
"api": {
"url": "http://127.0.0.1:4242",
"token": "MATTERBRIDGE_TOKEN"
},
"quoteFormat": "{MESSAGE} (re @{QUOTENICK}: {QUOTEMESSAGE:.46})"
}
This file should be in Matterdelta's configuration directory, usually ~/.config/matterdelta/
in Linux-based systems.
To get the chatId
of the chat you want to bridge, run the bot and add its address to your Delta Chat group,
then send /id
in the group, the bot will reply with the chat id, then edit the configuration file
and restart the bot.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for matterdelta-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0863c7a31824497b9d5f2d0a36ada0c5904871511432f20ebcbf17fcb6f2cc38 |
|
MD5 | c51ae60ae33fd514bbf668adccbee299 |
|
BLAKE2b-256 | cdf309d215ad5ab15906197dd8da989dde694f3a3cf142c60b6f6e3d01a85142 |