matterbridge/bridge/telegram
ValdikSS ce18c948e6
Do not apply any markup to URL entities (telegram) (#1808)
handleEntities code uses simple modification offset which does not
allow to detect whether the offset is placed before or after
the element in already modified string.
This works fine is most cases as Telegram server always sort the
elements by offset, in ascending order.
However, this is not the case when the modification, for example bold
text, is applied to the URL. In this case, the offset of URL and
bold entity is equal, which raises the issue.

This commit introduces additional hack for this case, stripping
any entities which intersect with URL.
2022-04-22 01:00:57 +02:00
..
handlers.go Do not apply any markup to URL entities (telegram) (#1808) 2022-04-22 01:00:57 +02:00
html.go Fix regression in HTML handling (telegram). Closes #734 2019-02-24 15:13:56 +01:00
telegram.go Multiple media in one message (telegram) (#1779) 2022-03-30 22:23:52 +02:00