aboutsummaryrefslogtreecommitdiff
path: root/telegram/commands.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2023-03-05 11:00:53 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2023-03-05 11:00:53 +0300
commit4a5b83dff5c568871d5624202e2ee27e5d0de242 (patch)
tree05360ccd21770b830c29ebaacf6ef00787ad1a68 /telegram/commands.go
parent6e32c62f8dac5ccc97dd0a6067965ba2689f3c86 (diff)
Show XEP-0461 replies from Telegram
Diffstat (limited to 'telegram/commands.go')
-rw-r--r--telegram/commands.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/telegram/commands.go b/telegram/commands.go
index 957c335..943d071 100644
--- a/telegram/commands.go
+++ b/telegram/commands.go
@@ -184,6 +184,7 @@ func (c *Client) unsubscribe(chatID int64) error {
func (c *Client) sendMessagesReverse(chatID int64, messages []*client.Message) {
for i := len(messages) - 1; i >= 0; i-- {
message := messages[i]
+ reply, _ := c.getMessageReply(message)
gateway.SendMessage(
c.jid,
@@ -191,6 +192,7 @@ func (c *Client) sendMessagesReverse(chatID int64, messages []*client.Message) {
c.formatMessage(0, 0, false, message),
strconv.FormatInt(message.Id, 10),
c.xmpp,
+ reply,
)
}
}