From f0c0d0ba94c923ca06b49211c70db47616e5a8e1 Mon Sep 17 00:00:00 2001 From: bodqhrohro Date: Tue, 19 Nov 2019 22:25:14 +0200 Subject: Save sessions on exit --- telegram/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'telegram/client.go') 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 } -- cgit v1.2.3