docs: Update guidelines to URL-encode stream name or topic name.

Updated create-bot-construct-url-indented.md file with
guidelines on how to URL-encode stream name and topic
name. The hyperlink added will solve the issue for those
who use emoji in stream name or topic name.

Tweaked by tabbott to edit the copy and update the non-indented
version as well.

Fixes #16430.
This commit is contained in:
akshatdalton
2020-10-20 23:05:09 +00:00
committed by Tim Abbott
parent ee1b2559f5
commit 1abae8baaa
2 changed files with 12 additions and 10 deletions

View File

@@ -6,9 +6,10 @@
{!webhook-url.md!} {!webhook-url.md!}
Modify the parameters of the URL above, where `api_key` is the API key Modify the parameters of the URL above, where `api_key` is the API key
of your Zulip bot, and `stream` is the URL-encoded stream name you want the of your Zulip bot, and `stream` is the [URL-encoded](https://www.urlencoder.org/)
notifications sent to. If you do not specify a `stream`, the bot will stream name you want the notifications sent to. If you do not specify a
send notifications via PMs to the creator of the bot. `stream`, the bot will send notifications via PMs to the creator of the bot.
If you'd like this integration to always send to the topic If you'd like this integration to always send to a specific topic,
`your topic`, just add `&topic=your%20topic` to the end of the URL. just include the (URL-encoded) topic as an additional parameter
(E.g. for `your topic`, append `&topic=your%20topic` to the URL).

View File

@@ -6,9 +6,10 @@ bot using the bot's API key and the desired stream name:
{!webhook-url.md!} {!webhook-url.md!}
Modify the parameters of the URL above, where `api_key` is the API key Modify the parameters of the URL above, where `api_key` is the API key
of your Zulip bot, and `stream` is the URL-encoded stream name you want the of your Zulip bot, and `stream` is the [URL-encoded](https://www.urlencoder.org/)
notifications sent to. If you do not specify a `stream`, the bot will stream name you want the notifications sent to. If you do not specify a
send notifications via PMs to the creator of the bot. `stream`, the bot will send notifications via PMs to the creator of the bot.
If you'd like this integration to always send to the topic If you'd like this integration to always send to a specific topic,
`your topic`, just add `&topic=your%20topic` to the end of the URL. just include the (URL-encoded) topic as an additional parameter
(E.g. for `your topic`, append `&topic=your%20topic` to the URL).