PySPlusthon
A Python library for interacting with the Soroush Plus Bot API (Splus).
Quick Start
from PySPlusthon import Client
bot = Client("YOUR_BOT_TOKEN")
@bot.on_message()
async def on_message(message):
print(f"Received: {message.text}")
if __name__ == "__main__":
bot.run()
Key Features
- Full Bot API Support: Send messages, photos, videos, documents, audio, voice, stickers, locations, contacts, and more
- Update Handling: Polling and webhook support with
start_polling()andset_webhook() - Conditional Handlers: Message filters using conditions (
text,command,document,photo,video,voice, and more) - Event Handlers: Connect, disconnect, initialize, shutdown, edited messages, callback queries, errors, and custom events
- Object Model: Comprehensive
Objectbase class withwrap()/unwrap()for API response parsing - Inline Keyboards & Keyboards:
InlineKeyboardandReplyKeyboardwith button formatting - Media Groups: Send photo/video/audio groups
- Referral Links: Create referral links with
create_referral_link() - User/Chat Methods:
get_me(),get_chat(),get_chat_member(),get_chat_members_count(), and more - Inline Inline Buttons & Keyboards: Full reply markup support
- Protobuf & Userbot Support: Optional userbot mode with WebSocket integration
- Error Handling: Custom RPC error types (
BadRequestError,FloodError,ForbiddenError,NotFoundError,UnauthorizedError,InternalError,TooManyRequestsError)
Installing
pip install PySPlusthon
Links
Metadata
Release files for PySPlusthon 0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pysplusthon-0.5.3.tar.gz | 71.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pysplusthon-0.5.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 249.1 kB
Release files / pysplusthon-0.5.3.tar.gz
| Download URL | pysplusthon-0.5.3.tar.gz |
|---|---|
| Size | 71.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be61a25a1a286253ce1137f2eb10672d506932a2300740386c92fc4eac8367af
|
|
BLAKE2b-256 checksum How to use checksums |
b4b5cdbb2b4429ce628e4ffe4e275d4451abf3402e34ba3649112009ca0d6739
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 7, 2026.
Transparency logRelease files / pysplusthon-0.5.3-py3-none-any.whl
| Download URL | pysplusthon-0.5.3-py3-none-any.whl |
|---|---|
| Size | 177.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
992e97c55477d6f5856b5c3da20a59a69aff98db946094930e4e6a9edf084320
|
|
BLAKE2b-256 checksum How to use checksums |
46c831a5ed01d1583a49c3f4c677784686f0d5910c0d67246489fda66e9e3161
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 7, 2026.
Transparency log