aboutsummaryrefslogtreecommitdiff
path: root/telegram/commands.go
diff options
context:
space:
mode:
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,
)
}
}