Skip to content

Latest commit

 

History

History

python_jsonrpc

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Python (CFFI)

There are alternative options available:

using the older legacy cffi based bindings

frameworks:

Installation

# Optional create virtualenv
pip3 install virtualenv
virtualenv .venv
source .venv/bin/activate

# install rpc server
pip install deltachat-rpc-server
# install client
pip install deltachat-rpc-client

For alternative installation instructions refer to https://py.delta.chat/jsonrpc/install.html#install (building from souce or download prbuilds manually).

Usage

set credentials

# mac & linux
export [email protected]
export MAIL_PW="my_password"
# windows
set [email protected]
set MAIL_PW="my_password"

start the bot:

python echo_bot.py /tmp/dc-accounts

or start the version made with the hook system:

python ./echo_bot_with_hooks.py --email $MAIL_ADDR --password $MAIL_PW

References