walinejs / waline

💬 A Simple, Safe Comment System
https://waline.js.org/en/
GNU General Public License v2.0
2.19k stars 379 forks source link

[Bug]: telegram通知bug || [Bug]: telegram notification bug #2280

Open deusyu opened 7 months ago

deusyu commented 7 months ago

问题描述 | Describe the bug

使用docker-compose部署的waline,配置了TG_BOT_TOKEN和TG_CHAT_ID,看error形式是消息可以发,那应该不是配置的错误,程序内部有bug吧。

Telegram Notification Failed:{"ok":false,"error_code":400,"description":"Bad Request: can't parse entities: Character '.' is reserved and must be escaped with the preceding '\\'"}

问题网站 | Website URL

https://deusyu.app/

服务部署在哪里? | Where your waline deploy?

Docker

数据存储在哪里?| Where your comment data store?

MySQL


Problem description | Describe the bug

Waline deployed using docker-compose is configured with TG_BOT_TOKEN and TG_CHAT_ID. If the error message is sent, it should not be a configuration error. There may be a bug inside the program.

Telegram Notification Failed:{"ok":false,"error_code":400,"description":"Bad Request: can't parse entities: Character '.' is reserved and must be escaped with the preceding '\\'"}

Question Website | Website URL

https://deusyu.app/

Where is the service deployed? | Where your waline deploy?

Docker

Where is the data stored? | Where your comment data store?

MySQL

lizheming commented 7 months ago

Telegram 消息体限制的字符串非常多,由于评论内容是动态的,我们没办法覆盖全。如果遇到错误,可以自己修改 TG 模板把评论内容去掉解决。


Telegram message body limits a lot of strings. Since the comment content is dynamic, we cannot cover them all. If you encounter an error, you can modify the TG template yourself to remove the comment content to solve the problem.