Open SharzyL opened 3 years ago
Thanks for the report.
This was a known issue in a ETM dependency python-telegram-bot
, and has been fixed in version 13.2.
Please try to upgrade your python-telegram-bot
locally and see if it fixes the issue. The latest version is .
I have upgraded python-telegram-bot
to 13.4.1. The versions of other dependencies keep unchanged. But the backslashes still exists.
By the way, it is noteworthy that downgrading efb-telegram-master
from 2.2.3 to 2.2.2 fixes the problem.
Thanks again for the report. I can reproduce this behavior in my dev environment.
After inspection, I can confirm that this is an intended behavior by Telegram Bot specs. Telegram MarkdownV2 requires all of the following characters to be escaped when not used as a part of its semantics:
_*[]()~`>#+-=|{}.!
In ETM, we are avoiding such escape to happen when there is no any sort of formatting going on in the message. However, if any Markdown formatting is found, we kept all the escapes per Telegram’s syntax. This is resulting -
to be escaped as \-
.
By far this is the intended behavior. If you have any idea on improving this, feel free to leave a comment here. Thanks!
Describe the bug
When EFB forward a message from ETM to EWS, under some circumstances there will be unexpected backslashes in messages in WeChat.
To Reproduce
Steps to reproduce the behavior:
where
URL
is a URL with addresstg://user?id=629325599
Now the message is forwarded to WeChat, but its content is strange:
Expected behavior
The message forwarded to WeChat should be something like:
or
Version information (please complete the following information):
Additional context
If we downgrade efb-telegram-master from 2.2.3 to 2.2.2, everything goes OK.