whatisgithub

What is splusthon?

shayanheidari01/splusthon — explained in plain English

Analysis updated 2026-05-18

17PythonAudience · developerComplexity · 3/5LicenseSetup · easy

In one sentence

A Telethon inspired Python library for logging into Soroush Plus, an Iranian messaging app, as a user or bot to send and receive messages.

Mindmap

mindmap
  root((SPlusthon))
    What it does
      Soroush Plus API client
      Built on Telethon style API
      User or bot login
    Tech stack
      Python asyncio
      WebSocket transport
      RSA and AES encryption
    Use cases
      Auto reply message handler
      Send text and files
      Download media
      Reuse saved sessions
    Audience
      Python developers
      Telethon users
      Soroush Plus automation

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Log a Python script into Soroush Plus as a user account or bot account.

USE CASE 2

Automatically reply to new incoming messages with a message handler.

USE CASE 3

Send text messages, files, and download media through the Soroush Plus API.

USE CASE 4

Reconnect to a saved session using a string session without logging in again.

What is it built with?

PythonasyncioaiohttpWebSocket

How does it compare?

shayanheidari01/splusthon0petru/sentimoagi-eval-official/forte
Stars171717
LanguagePythonPythonPython
Setup difficultyeasymoderatehard
Complexity3/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Installable via pip, no API ID or API Hash required, unlike many similar messaging client libraries.

Released under GPL v3, so you can use and modify it, but any distributed derivative work must also be open source under the same license.

So what is it?

SPlusthon is a Python library for talking to Soroush Plus, an Iranian messaging app, through its API. It is built on top of Telethon, a well known library originally made for Telegram, and has been adapted to work with Soroush Plus's own protocol instead. The library lets a Python program log in and act either as a regular user account or as a bot, sending and receiving messages the same way a person using the app would. The README describes support for the messenger's own TL Schema at layer 182, RSA and AES encryption, data center routing, and a WebSocket based connection, aiming for a fast and stable experience close to the official client. It works with asyncio for asynchronous code, but the README notes it can also be used in a synchronous style. A notable feature is that it does not require an API ID or API Hash to get started, and its API is designed to look similar to Telethon's so that developers already familiar with that library can pick it up quickly. Installation is a simple pip install from PyPI, or installing the latest development version directly from the GitHub repository. A basic example creates a client with a string based session, and a slightly larger example shows listening for new messages and automatically replying to them. Other shown examples include sending a text message to a username, sending a file, and downloading media from a received message, plus reusing a previously saved session string to reconnect without logging in again. The library depends on aiohttp, pyaes, and rsa, with an optional cryptg package that speeds up encryption. Full documentation is hosted on a separate GitHub Pages site. The project is released under the GNU General Public License version 3, and the README includes a note asking users to follow Soroush Plus's own terms of use, stating that responsibility for how the library is used rests with the user.

Copy-paste prompts

Prompt 1
Help me install SPlusthon and write a script that logs into Soroush Plus and replies to new messages.
Prompt 2
Explain how SPlusthon's StringSession works and how to reuse a saved session to reconnect.
Prompt 3
Show me how to send a file and download media from a message using SPlusthon.
Prompt 4
What are the differences between using SPlusthon as a regular user account versus as a bot?

Frequently asked questions

What is splusthon?

A Telethon inspired Python library for logging into Soroush Plus, an Iranian messaging app, as a user or bot to send and receive messages.

What language is splusthon written in?

Mainly Python. The stack also includes Python, asyncio, aiohttp.

What license does splusthon use?

Released under GPL v3, so you can use and modify it, but any distributed derivative work must also be open source under the same license.

How hard is splusthon to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is splusthon for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.