aboutsummaryrefslogtreecommitdiff
path: root/telegram/utils.go
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-12-06 02:21:39 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-12-06 02:21:39 +0300
commit0013baa247b54286fb86119b91a5180f4334f463 (patch)
treeed29cd72dda89f71941294f8df7a4023a73876a1 /telegram/utils.go
parentcb8e7f4fef060e0b8c942ca8a4dbe92ff61a0a02 (diff)
Add delete command
Diffstat (limited to 'telegram/utils.go')
-rw-r--r--telegram/utils.go2
1 files changed, 1 insertions, 1 deletions
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)
}