Skip to main content

SplusPy v2.2.12

A fast, minimal, and fully-featured framework for Soroush Plus — self-bots and official bots


About

SplusPy is a Python library designed specifically for building Soroush Plus self-bots (userbots) and official bots. It provides a clean, intuitive API for automating your personal Soroush Plus account or building bots via the official HTTP Bot API.

⚠️ Note: This framework supports both self-bot (personal account) and official bot (Bot API) modes. Please adhere to Soroush's Terms of Service.


Installation

pip install SplusPy

To upgrade to the latest version:

pip install --upgrade Spluspy

Quick Start

Here is a minimal example to get your self-bot up and running:

import spluspy
from spluspy import events

client = spluspy.Client("my_session")

@client.on_message()
async def handler(client, event):
    if event.message.message.lower() == "hello":
        await event.reply("Hi there!")

client.start()
client.run_until_disconnected()

How it works

  1. Create a Client — pass a session name (or path) to store your login.
  2. Register handlers — use @client.on_message() to react to messages.
  3. Start the client — call client.start() to connect and log in.
  4. Run forever — client.run_until_disconnected() keeps the bot alive.

Official Bot (Robot)

You can also build official bots using the HTTP Bot API:

from spluspy import Robot, filters

bot = Robot("YOUR_BOT_TOKEN")

@bot.on_message(filters.text("hello"))
async def hello_handler(client, event):
    await event.reply("Hi there!")

bot.run()

How it works

  1. Create a Robot — pass your bot token.
  2. Register handlers — use @bot.on_message() just like the self-bot.
  3. Run — call bot.run() to start long-polling.

License

MIT License. See LICENSE for details.

Metadata

Release files for spluspy 2.2.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for spluspy 2.2.12
File Interpreter ABI Platform Actions
spluspy-2.2.12-py3-none-any.whl Python 3 none any Details for spluspy-2.2.12-py3-none-any.whl

Release files / spluspy-2.2.12-py3-none-any.whl

Download URL spluspy-2.2.12-py3-none-any.whl
Size 760.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9df8e667594cf6f1d5394501dbafcfde009c112c217e6a7e0b25015c0a32f542
BLAKE2b-256 checksum
How to use checksums
711702a7553b8310cd92fe0aa980f70cb77698b2c1f1b677c0c68327ccdbecf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.4

Security for spluspy 2.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

2.2.12 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page