diff options
Diffstat (limited to 'operators/inline_help.zsh')
| -rw-r--r-- | operators/inline_help.zsh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/operators/inline_help.zsh b/operators/inline_help.zsh index 2ac9455..a115de4 100644 --- a/operators/inline_help.zsh +++ b/operators/inline_help.zsh @@ -3,7 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 output_title="Sekoohaka Bot" -output_text="${help_content}" +output_text="${help_general}" output_description="Click to send help message" results="$( @@ -14,3 +14,15 @@ results="$( --arg description "${output_description}" \ '[{"type": "article", "id": $id, "title": $title, "input_message_content": {"message_text": $text, "parse_mode": "HTML", "link_preview_options": {"is_disabled": true}}, "description": $description}]' )" + +. "${units}/help.zsh" + +if [[ -n "${reply_markup}" ]] +then + results="$( + jq --compact-output \ + --argjson reply_markup "${reply_markup}" \ + '.[0] += {"reply_markup": $reply_markup}' \ + <<< "${results}" + )" +fi |
