mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 18:13:58 +00:00
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:
@@ -6,9 +6,10 @@
|
||||
{!webhook-url.md!}
|
||||
|
||||
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
|
||||
notifications sent to. If you do not specify a `stream`, the bot will
|
||||
send notifications via PMs to the creator of the bot.
|
||||
of your Zulip bot, and `stream` is the [URL-encoded](https://www.urlencoder.org/)
|
||||
stream name you want the notifications sent to. If you do not specify a
|
||||
`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
|
||||
`your topic`, just add `&topic=your%20topic` to the end of the URL.
|
||||
If you'd like this integration to always send to a specific topic,
|
||||
just include the (URL-encoded) topic as an additional parameter
|
||||
(E.g. for `your topic`, append `&topic=your%20topic` to the URL).
|
||||
|
||||
@@ -6,9 +6,10 @@ bot using the bot's API key and the desired stream name:
|
||||
{!webhook-url.md!}
|
||||
|
||||
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
|
||||
notifications sent to. If you do not specify a `stream`, the bot will
|
||||
send notifications via PMs to the creator of the bot.
|
||||
of your Zulip bot, and `stream` is the [URL-encoded](https://www.urlencoder.org/)
|
||||
stream name you want the notifications sent to. If you do not specify a
|
||||
`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
|
||||
`your topic`, just add `&topic=your%20topic` to the end of the URL.
|
||||
If you'd like this integration to always send to a specific topic,
|
||||
just include the (URL-encoded) topic as an additional parameter
|
||||
(E.g. for `your topic`, append `&topic=your%20topic` to the URL).
|
||||
|
||||
Reference in New Issue
Block a user