blob: 0b267d50a1f9dad2e37d16c67476266d85920ec4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Copyright (C) 2024-2026 Maria Lisina
# Copyright (C) 2024-2026 Danil Lisin
# SPDX-License-Identifier: Apache-2.0
output_title="Sekoohaka Bot"
output_text="${help_general}"
output_description="Click to send help message"
results="$(
jq --null-input --compact-output \
--arg id "${query_id}" \
--arg title "${output_title}" \
--arg text "${output_text}" \
--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}]'
)"
source "${units}/help.zsh"
if [[ -n "${reply_markup}" ]]
then
results="$(
jq --compact-output \
--argjson reply_markup "${reply_markup}" \
'.[0] += {"reply_markup": $reply_markup}' \
<<< "${results}"
)"
fi
|