diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-01-06 00:04:22 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-01-06 00:04:22 +0300 |
commit | 077edae986f2229d263f978b7cf35ed88254c042 (patch) | |
tree | 01877034c1989565e2de30bce04d1c15eb06579e /telegram/commands.go | |
parent | d48cb8b58682d3b9c5798913de35ae62dd20dd38 (diff) |
Add keeponline option
Diffstat (limited to 'telegram/commands.go')
-rw-r--r-- | telegram/commands.go | 4 |
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 { |