api: Fix typo in interactive bots doc.

This commit is contained in:
YJDave 2017-12-12 19:42:24 +05:30 committed by Rishi Gupta
parent a05631d8c6
commit e4bf3d6907
2 changed files with 5 additions and 5 deletions

View File

@ -200,7 +200,7 @@ running it manually.
* My bot won't start
* Ensure that your API config file is correct (download the config file from the server).
* Ensure that you bot script is located in zulip_bots/bots/<my-bot>/
* Ensure that your bot script is located in zulip_bots/bots/<my-bot>/
* Are you using your own Zulip development server? Ensure that you run your bot outside
the Vagrant environment.
* Some bots require Python 3. Try switching to a Python 3 environment before running

View File

@ -206,7 +206,7 @@ None.
#### Example implementation
```
```
def handle_message(self, message, bot_handler):
original_content = message['content']
original_sender = message['sender_email']
@ -219,7 +219,7 @@ None.
subject=message['sender_email'],
content=new_content,
))
```
```
### bot_handler.send_message
*bot_handler.send_message(message)*
@ -367,12 +367,12 @@ every call to `put` and `get`, respectively.
### Configuration file
```
```
[api]
key=<api-key>
email=<email>
site=<dev-url>
```
```
* key - the API key you created for the bot; this is how Zulip knows
the request is from an authorized user.