aboutsummaryrefslogtreecommitdiff
path: root/telegram/connect.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/connect.go
parent0b79d6feb1e3d2f87753a1808acbb148a346eeec (diff)
Migrate back to the upstream go-tdlib
Diffstat (limited to 'telegram/connect.go')
-rw-r--r--telegram/connect.go4
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 {