aboutsummaryrefslogtreecommitdiff
path: root/telegram/connect.go
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-12-16 04:02:53 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-12-16 04:02:53 +0300
commit10aae376f7dae843a5472cfc5c7083b4c032021d (patch)
treec5356518819df8f3863599a456602a0a4bcedae4 /telegram/connect.go
parent3918686f211a3eac60916a81423c64240ad1988a (diff)
Catch timeout setting
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)
}
}