aboutsummaryrefslogtreecommitdiff
path: root/telegram/client.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2022-01-17 23:45:40 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2022-01-17 23:45:40 +0300
commit6eb0e5f15fd9a81bbafb2189dd73b6c093b487e6 (patch)
tree802c64e7e0b2c9a349858d5ea106f983eb1cc6ea /telegram/client.go
parent0b79d6feb1e3d2f87753a1808acbb148a346eeec (diff)
Migrate back to the upstream go-tdlib
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",