diff options
| author | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2026-02-07 06:29:44 +0300 |
|---|---|---|
| committer | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2026-02-07 06:29:44 +0300 |
| commit | aa1ca9fa3c7680fc9157003ab7b1e47fa0ee799a (patch) | |
| tree | 640f352152cec982c4ea867efe90f442f22a9f14 /operators/inline_help.zsh | |
| parent | 0671dc134a9e122ce2c0348f3f4deeb2d274d524 (diff) | |
*/*: Reimplement help command
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
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 |
