aboutsummaryrefslogtreecommitdiff
path: root/telegram/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'telegram/client.go')
-rw-r--r--telegram/client.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/telegram/client.go b/telegram/client.go
index 097354d..4995597 100644
--- a/telegram/client.go
+++ b/telegram/client.go
@@ -11,7 +11,7 @@ import (
"dev.narayana.im/narayana/telegabber/persistence"
"dev.narayana.im/narayana/telegabber/telegram/cache"
- "github.com/godcong/go-tdlib/client"
+ "github.com/zelenin/go-tdlib/client"
"gosrc.io/xmpp"
)
@@ -73,7 +73,7 @@ func NewClient(conf config.TelegramConfig, jid string, component *xmpp.Component
))
}
- apiID, err := strconv.Atoi(conf.Tdlib.Client.APIID)
+ apiID, err := strconv.ParseInt(conf.Tdlib.Client.APIID, 10, 32)
if err != nil {
return &Client{}, errors.Wrap(err, "Wrong api_id")
}
@@ -89,7 +89,7 @@ func NewClient(conf config.TelegramConfig, jid string, component *xmpp.Component
UseMessageDatabase: true,
UseSecretChats: conf.Tdlib.Client.UseSecretChats,
- ApiID: int64(apiID),
+ ApiId: int32(apiID),
ApiHash: conf.Tdlib.Client.APIHash,
SystemLanguageCode: "en",