diff --git a/telegram/commands.go b/telegram/commands.go index b8a9c5d..133e99b 100644 --- a/telegram/commands.go +++ b/telegram/commands.go @@ -717,12 +717,7 @@ func (c *Client) ProcessChatCommand(chatID int64, cmdline string) (string, bool) )) } - gateway.SendMessage( - c.jid, - strconv.FormatInt(chatID, 10), - strings.Join(entries, "\n"), - c.xmpp, - ) + return strings.Join(entries, "\n"), true case "help": return helpString(helpTypeChat), true default: