acmesh-official / acmesh-official/acme.sh

telegram send error

オープン 初心者向け
#7,212 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Shell
スター
47.6k
フォーク
5.7k
平均マージ
6日 5時間
マージ済み PR(30日)
15

説明

While I'm trying to setup telegram notification by running command:

acme.sh --set-notify --notify-hook telegram

this comand failes with error:

{"ok":false,"error_code":400,"description":"Bad Request: can't parse entities: Character '.' is reserved and must be escaped with the preceding '\'"}
Error sending message using telegram_send
Error setting /path/to/acme.sh/sbin/notify/telegram.sh.
Cannot set notify hook to: telegram

Some 'dots' in sended text are not escaped !

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

The issue is in the telegram notification hook script. Look at /path/to/acme.sh/sbin/notify/telegram.sh where the message is assembled. The error indicates that dots in the text need to be escaped with a backslash for Telegram's API. Check the message formatting and ensure special characters like '.' are escaped. Test by running the notify command after changes.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
bash, shell
領域
cli, tooling
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
活発
明瞭さ
明確に書かれている
初心者へのやさしさ
75/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。