aboutsummaryrefslogtreecommitdiff
path: root/telegram/connect.go
diff options
context:
space:
mode:
Diffstat (limited to 'telegram/connect.go')
-rw-r--r--telegram/connect.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/telegram/connect.go b/telegram/connect.go
index 8988528..3827bcc 100644
--- a/telegram/connect.go
+++ b/telegram/connect.go
@@ -110,7 +110,7 @@ func (c *Client) Connect() error {
c.authorizer.TdlibParameters <- c.parameters
- tdlibClient, err := client.NewClient(c.authorizer, c.logVerbosity)
+ tdlibClient, err := client.NewClient(c.authorizer, c.options...)
if err != nil {
return errors.Wrap(err, "Couldn't initialize a Telegram client instance")
}
@@ -145,7 +145,7 @@ func (c *Client) Disconnect() {
_, err := c.client.Close()
if err != nil {
- log.Fatalf("Couldn't close the Telegram instance: %#v", c)
+ log.Errorf("Couldn't close the Telegram instance: %v; %#v", err, c)
}
}