Python client for `signal-cli-rest-api`
Project description
pysignalbot
Simple yet powerful library to work with signal-cli-rest-api. It supports both sync and async modes of origin Docker container, providing supplying API.
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:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysignalbot-0.1.2.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for pysignalbot-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 730c3ed9c64e999926f0f037d636da6c8aed871040cdf51b106fae1240d7e80d |
|
MD5 | 71d7808d3fd418745c9969725b284891 |
|
BLAKE2b-256 | 77a778cc6e68e86b2758b4997e1a149a9925c9a327119f0a67677b0305807292 |