aboutsummaryrefslogtreecommitdiff
path: root/telegram/handlers.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2022-03-11 19:12:36 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2022-03-11 19:12:36 +0300
commitf6e62fe1fd208cba8214db70fe1ebbdc9bb41115 (patch)
treedff45ff812970bf738e40f1f3274bd49b9f61eec /telegram/handlers.go
parent7ddc3c448278191f19d616cf3b730bdbe8dc63cd (diff)
Merge adjacent formatting entities of same kind
Diffstat (limited to 'telegram/handlers.go')
-rw-r--r--telegram/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/telegram/handlers.go b/telegram/handlers.go
index a8cb814..a4fa39f 100644
--- a/telegram/handlers.go
+++ b/telegram/handlers.go
@@ -257,7 +257,7 @@ func (c *Client) updateMessageContent(update *client.UpdateMessageContent) {
}
text := editChar + fmt.Sprintf("%v | %s", update.MessageId, formatter.Format(
textContent.Text.Text,
- formatter.SortEntities(textContent.Text.Entities),
+ textContent.Text.Entities,
markupFunction,
))
gateway.SendMessage(c.jid, strconv.FormatInt(update.ChatId, 10), text, c.xmpp)