Skip to main content

api to access soroush social network sdk

Project description

Soroush Messenger Bot Wrapper for Python shiled travis badge Documentation Status Updates


  • Python 2.7+
  • requests
  • sseclient-py


pip install soroush-python-sdk

Run the below commands

git clone
cd bot-python-sdk
pip install -r requirements.txt


from soroush_python_sdk import Client

bot_token = 'your bot token'

bot = Client(bot_token)

    to = 'user chat_id'

    [error, success] = bot.send_text(to, 'Your text')

    if success:
        print('Message sent successfully')
        print('Sending message failed: {}' .format(error))

except Exception as e:

“to” value in above example is chat_id of a bot user. You can find it in front of ‘from’ key in a message that user has sent to your bot. You can see more examples in the examples directory.

## Contribute ## Contributions to the package are always welcome! - Report any idea, bugs or issues you find on the issue tracker. - You can grab the source code at the package’s Git repository.


0.1.0 (2018-10-25)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for soroush-python-sdk, version 0.2.4
Filename, size File type Python version Upload date Hashes
Filename, size soroush_python_sdk-0.2.4-py2.py3-none-any.whl (6.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size soroush_python_sdk-0.2.4.tar.gz (16.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page