Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 738 Bytes

README.md

File metadata and controls

31 lines (18 loc) · 738 Bytes

Rocket.Chat Python Realtime API SDK

PythonBot Example

This is a Python Connector SDK for the RocketChat Realtime API. It uses a DDP connector to create a websocket with a Rocket.Chat server, giving the ability to hear everything that the server sends to a normal user, without the need to create webhooks or use the REST API.

Connector

The connector..

Dependences

requirements.txt

Methods

[WIP]

Examples

Building your first Python Bot for Rocket.Chat

def hello(bot, message):
    bot.sendMessage(message['rid'], "React from hello command")

rocket = RocketChatBot('username', 'password')
rocket.addPrefixHandler('hello', hello)
rocket.start()