From 0013baa247b54286fb86119b91a5180f4334f463 Mon Sep 17 00:00:00 2001 From: bodqhrohro Date: Fri, 6 Dec 2019 01:21:39 +0200 Subject: Add delete command --- telegram/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'telegram/utils.go') diff --git a/telegram/utils.go b/telegram/utils.go index a708c28..b088069 100644 --- a/telegram/utils.go +++ b/telegram/utils.go @@ -413,7 +413,7 @@ func (c *Client) messageToPrefix(message *client.Message, fileString string) str func (c *Client) ProcessOutgoingMessage(chatID int64, text string, messageID int64, returnJid string) { if strings.HasPrefix(text, "/") { // try to execute a command - response, isCommand := c.ProcessChatCommand(text) + response, isCommand := c.ProcessChatCommand(chatID, text) if response != "" { gateway.SendMessage(returnJid, strconv.FormatInt(chatID, 10), response, c.xmpp) } -- cgit v1.2.3