diff options
author | bodqhrohro <bodqhrohro@gmail.com> | 2019-11-19 23:25:14 +0300 |
---|---|---|
committer | bodqhrohro <bodqhrohro@gmail.com> | 2019-11-19 23:25:14 +0300 |
commit | f0c0d0ba94c923ca06b49211c70db47616e5a8e1 (patch) | |
tree | 23c097b6cb8249d4f978f7b22bd1b9877b0a5bba /telegram/client.go | |
parent | a09817976ee5cdb7d1bca25c80cdef3d1b7867f7 (diff) |
Save sessions on exit
Diffstat (limited to 'telegram/client.go')
-rw-r--r-- | telegram/client.go | 4 |
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: ¶meters, jid: jid, - session: session, + Session: session, logVerbosity: logVerbosity, }, nil } |