openparallax-channels
Multi-channel messaging adapters (WhatsApp, Telegram, Discord, Signal, iMessage)
Python wrapper for the OpenParallax channels module. Communicates with a pre-built Go binary over JSON-RPC (stdin/stdout).
Installation
pip install openparallax-channels
Usage
from openparallax_channels import Channels
with Channels() as ch:
# Split a long message into platform-safe chunks
parts = ch.split_message(long_text, max_length=2000)
# Format a message (0=plain, 1=markdown, 2=HTML)
msg = ch.format_message("Hello!", format=1)
Passing Channel Credentials
Channel credentials (bot tokens, API keys, webhook URLs) are passed through OpenParallax's workspace config.yaml, not through this wrapper directly. The wrapper communicates with the Go channels-bridge binary, which reads credentials from the workspace config.
Configure channels in your workspace config.yaml:
channels:
telegram:
enabled: true
bot_token_env: TELEGRAM_BOT_TOKEN
discord:
enabled: true
bot_token_env: DISCORD_BOT_TOKEN
slack:
enabled: true
bot_token_env: SLACK_BOT_TOKEN
app_token_env: SLACK_APP_TOKEN
Telegram Example
export TELEGRAM_BOT_TOKEN="123456:ABC-DEF..."
# config.yaml
channels:
telegram:
enabled: true
bot_token_env: TELEGRAM_BOT_TOKEN
from openparallax_channels import Channels
with Channels() as ch:
parts = ch.split_message(response_text, max_length=4096)
for part in parts:
send_to_telegram(chat_id, part)
Documentation
See the channels documentation for all supported platforms and configuration options.
License
Apache License 2.0
Metadata
Release files for openparallax-channels 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openparallax_channels-0.1.1.tar.gz | 5.0 kB | With provenance | Details for openparallax_channels-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openparallax_channels-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for openparallax_channels-0.1.1-py3-none-any.whl |
Total release size: 11.3 kB
Release files / openparallax_channels-0.1.1.tar.gz
| Download URL | openparallax_channels-0.1.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f5e5a50d9c043feb147a7e37b85ecf2b661f1dbcc46f631cb95d5937260c784
|
|
BLAKE2b-256 checksum How to use checksums |
efcf4f8a4bf35a9fc64c32016f1d5da8eefcd797745dcd47783c071cc3a4d829
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 14, 2026.
Transparency logRelease files / openparallax_channels-0.1.1-py3-none-any.whl
| Download URL | openparallax_channels-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b468a577a2b82985a1c6f3c7812654da0126ea808108d91c2d86c9a44de2a85
|
|
BLAKE2b-256 checksum How to use checksums |
65c2452ef845943742a058ddbcfd76b14348f4db20e7b80e6964881e19a0eae1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 14, 2026.
Transparency logSecurity for openparallax-channels 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for openparallax_channels-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.