diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-01-17 23:45:40 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-01-17 23:45:40 +0300 |
commit | 6eb0e5f15fd9a81bbafb2189dd73b6c093b487e6 (patch) | |
tree | 802c64e7e0b2c9a349858d5ea106f983eb1cc6ea /telegram/connect.go | |
parent | 0b79d6feb1e3d2f87753a1808acbb148a346eeec (diff) |
Migrate back to the upstream go-tdlib
Diffstat (limited to 'telegram/connect.go')
-rw-r--r-- | telegram/connect.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/telegram/connect.go b/telegram/connect.go index f2ea01d..94154d8 100644 --- a/telegram/connect.go +++ b/telegram/connect.go @@ -2,13 +2,12 @@ package telegram import ( "github.com/pkg/errors" - "math" "strconv" "dev.narayana.im/narayana/telegabber/xmpp/gateway" log "github.com/sirupsen/logrus" - "github.com/godcong/go-tdlib/client" + "github.com/zelenin/go-tdlib/client" ) const chatsLimit int32 = 999 @@ -135,7 +134,6 @@ func (c *Client) Connect(resource string) error { go func() { _, err = c.client.GetChats(&client.GetChatsRequest{ - OffsetOrder: client.JsonInt64(math.MaxInt64), Limit: chatsLimit, }) if err != nil { |