diff --git a/.github/workflows/tg_notify.yml b/.github/workflows/tg_notify.yml index 9125eff..d387d2a 100644 --- a/.github/workflows/tg_notify.yml +++ b/.github/workflows/tg_notify.yml @@ -25,7 +25,6 @@ jobs: TITLE="${{ github.event.issue.title || github.event.pull_request.title || 'Комментарий' }}" URL="${{ github.event.issue.html_url || github.event.pull_request.html_url || github.event.comment.html_url || github.event.review.html_url }}" - # Escape backticks and parentheses for Markdown SAFE_TITLE=$(echo "$TITLE" | sed 's/`/\\`/g' | sed 's/(/\\(/g' | sed 's/)/\\)/g') TEXT="*Событие в ${REPO}*\nТип: \`${EVENT_TYPE}\`\nДействие: \`${ACTION}\`\nЗаголовок: \`${SAFE_TITLE}\`\n[Открыть](${URL})" @@ -34,4 +33,4 @@ jobs: https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage \ -d chat_id="${TELEGRAM_CHAT_ID}" \ -d parse_mode=Markdown \ - --data-urlencode text="${TEXT}" + -d text="${TEXT}"