diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-02-01 06:23:37 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-02-01 06:23:37 +0300 |
commit | de31fa0ad210bef630aafda68a65a482044fc88b (patch) | |
tree | 70ee34327006896ca4db6845b9fdeea011816a16 /telegram/commands.go | |
parent | 86b736ec0dda93c0a6c9e00bc90576312da4d939 (diff) |
Refactor the /members command
Diffstat (limited to 'telegram/commands.go')
-rw-r--r-- | telegram/commands.go | 7 |
1 files changed, 1 insertions, 6 deletions
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: |