aboutsummaryrefslogtreecommitdiff
path: root/telegram/commands.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2023-08-26 15:59:14 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2023-08-26 15:59:14 +0300
commit8ba7596ab5b9cd731fb507f60da51c6acf1ef27f (patch)
tree91e17a6bdd70300f2d784e60a1f88d47d3ec18ad /telegram/commands.go
parent3c917c16983c1afdd4a21d8021461585a1e785c9 (diff)
parent64515e2c666067953e3a9680b4f0db84f3838498 (diff)
Merge branch 'master' into dev
Diffstat (limited to 'telegram/commands.go')
-rw-r--r--telegram/commands.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/telegram/commands.go b/telegram/commands.go
index e164ce1..0c83945 100644
--- a/telegram/commands.go
+++ b/telegram/commands.go
@@ -384,7 +384,7 @@ func (c *Client) ProcessTransportCommand(cmdline string, resource string) string
}
case "config":
if len(args) > 1 {
- if !gateway.MessageOutgoingPermission && args[0] == "carbons" && args[1] == "true" {
+ if gateway.MessageOutgoingPermissionVersion == 0 && args[0] == "carbons" && args[1] == "true" {
return "The server did not allow to enable carbons"
}
@@ -658,7 +658,7 @@ func (c *Client) ProcessChatCommand(chatID int64, cmdline string) (string, bool)
}
if messages != nil && messages.Messages != nil {
for _, message := range messages.Messages {
- c.ProcessIncomingMessage(targetChatId, message, "")
+ c.ProcessIncomingMessage(targetChatId, message)
}
}
// print vCard