aboutsummaryrefslogtreecommitdiff
path: root/telegram/commands.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2024-04-27 07:31:21 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2024-04-27 07:31:21 +0300
commita3f6d5f77402bf4a4d3fa01297f9fd78cc69a3b3 (patch)
tree41458be4520e15c1de22d9c1dba8d37c54c48c73 /telegram/commands.go
parent2459b14948e71a5db640b63a41720f2b197f3fd4 (diff)
Support nativeedits for rawmessages=falsev1.9.3
Diffstat (limited to 'telegram/commands.go')
-rw-r--r--telegram/commands.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/telegram/commands.go b/telegram/commands.go
index d9dc1f2..1ce316b 100644
--- a/telegram/commands.go
+++ b/telegram/commands.go
@@ -384,16 +384,6 @@ func (c *Client) ProcessTransportCommand(cmdline string, resource string) string
if gateway.MessageOutgoingPermissionVersion == 0 && args[0] == "carbons" && args[1] == "true" {
return "The server did not allow to enable carbons"
}
- if !c.Session.RawMessages && args[0] == "nativeedits" && args[1] == "true" {
- return "nativeedits only works with rawmessages as of yet, enable it first"
- }
- if c.Session.NativeEdits && args[0] == "rawmessages" && args[1] == "false" {
- _, err := c.Session.Set("nativeedits", "false")
- if err != nil {
- return err.Error()
- }
- msg = "Automatically disabling nativeedits too...\n"
- }
value, err := c.Session.Set(args[0], args[1])
if err != nil {