aboutsummaryrefslogtreecommitdiff
path: root/telegram
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-11-19 23:25:14 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-11-19 23:25:14 +0300
commitf0c0d0ba94c923ca06b49211c70db47616e5a8e1 (patch)
tree23c097b6cb8249d4f978f7b22bd1b9877b0a5bba /telegram
parenta09817976ee5cdb7d1bca25c80cdef3d1b7867f7 (diff)
Save sessions on exit
Diffstat (limited to 'telegram')
-rw-r--r--telegram/client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/telegram/client.go b/telegram/client.go
index 82f65d0..833d883 100644
--- a/telegram/client.go
+++ b/telegram/client.go
@@ -36,7 +36,7 @@ type Client struct {
client *client.Client
jid string
parameters *client.TdlibParameters
- session *persistence.Session
+ Session *persistence.Session
online bool
logVerbosity client.Option
}
@@ -78,7 +78,7 @@ func NewClient(conf config.TelegramConfig, jid string, session *persistence.Sess
return Client{
parameters: &parameters,
jid: jid,
- session: session,
+ Session: session,
logVerbosity: logVerbosity,
}, nil
}