Source code for raven.input.rest_input

from .abstract_input import BaseInput


[docs]class RESTInput(BaseInput): """ RESTInput is used to communication using REST operation. """ def __init__(self, txObject): self.txObject = txObject
[docs] def processed(self): super(RESTInput, self).processed() return self.return_object
[docs] def toBotText(self, text): """ Extra step for handling the input to the bot with custom method. """ self.txObject.update({"text": text}) super(RESTInput, self).__init__(self.txObject)