diff options
Diffstat (limited to 'telegram')
-rw-r--r-- | telegram/commands.go | 1 | ||||
-rw-r--r-- | telegram/utils.go | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/telegram/commands.go b/telegram/commands.go index 61cd2f9..d7318d0 100644 --- a/telegram/commands.go +++ b/telegram/commands.go @@ -138,6 +138,7 @@ func helpString(ht helpType) string { str.WriteString("\n") } } + str.WriteString("\nYou may use ! instead of / if it conflicts with internal commands of a client") return str.String() } diff --git a/telegram/utils.go b/telegram/utils.go index 7e93e57..d9773c0 100644 --- a/telegram/utils.go +++ b/telegram/utils.go @@ -666,7 +666,7 @@ func (c *Client) ProcessOutgoingMessage(chatID int64, text string, returnJid str return nil } - if returnJid != "" && strings.HasPrefix(text, "/") { + if returnJid != "" && (strings.HasPrefix(text, "/") || strings.HasPrefix(text, "!")) { // try to execute commands response, isCommand := c.ProcessChatCommand(chatID, text) if response != "" { |