pysignalbot

Python client for `signal-cli-rest-api`


License
MIT
Install
pip install pysignalbot==0.2.0

Documentation

Stand With Ukraine

pysignalbot

Simple yet powerful library to work with signal-cli-rest-api. It supports both sync and async modes of Docker container and intends to provide closest to origin API.

Example

import asyncio
from pysignalbot import JsonRPCBot, Message

bot = JsonRPCBot("localhost:8080")

@bot.handler
def on_message(msg: Message):
    print(msg)

async def main():
    accounts = bot.get_accounts()
    for account in accounts:
        await bot.receive(account)

if __name__ in {"__main__", "__mp_main__"}:
    asyncio.run(main())

Credits:

This project is heavily inspired by: