acmesh-official / acmesh-official/acme.sh
telegram send error
- Ngôn ngữ chính
- Shell
- Star
- 47.6k
- Fork
- 5.7k
- Merge trung bình
- 6 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 15
Mô tả
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 !
Hướng dẫn đóng góp
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- bash, shell
- Lĩnh vực
- cli, tooling
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 75/100