aboutsummaryrefslogtreecommitdiff
path: root/submodules/inline_help.sh
blob: c8125a3dc3a3a57759262f17c0fb9acab319b9e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Copyright (C) 2024-2025 Maria Lisina
# Copyright (C) 2024-2025 Danil Lisin
# SPDX-License-Identifier: Apache-2.0

output_text="$(cat "${files}/help.txt" | sed "s/{version}/${version}/")"
output_title="Sekoohaka Bot"
output_description="Click to send the 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}]')"