aboutsummaryrefslogtreecommitdiff
path: root/telegram/commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'telegram/commands.go')
-rw-r--r--telegram/commands.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/telegram/commands.go b/telegram/commands.go
index 4b0ee13..82dca91 100644
--- a/telegram/commands.go
+++ b/telegram/commands.go
@@ -53,7 +53,8 @@ var chatCommands = map[string]command{
}
var transportConfigurationOptions = map[string]configurationOption{
- "timezone": configurationOption{"00:00", "adjust timezone for Telegram user statuses"},
+ "timezone": configurationOption{"<timezone>", "adjust timezone for Telegram user statuses (example: +02:00)"},
+ "keeponline": configurationOption{"<bool>", "always keep telegram session online and rely on jabber offline messages (example: true)"},
}
type command struct {
@@ -293,6 +294,7 @@ func (c *Client) ProcessTransportCommand(cmdline string, resource string) string
if err != nil {
return err.Error()
}
+ gateway.DirtySessions = true
return fmt.Sprintf("%s set to %s", args[0], value)
} else if len(args) > 0 {