aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2021-12-29 03:53:38 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2021-12-29 03:53:38 +0300
commitd36f4449c94b942d1795ae4865b77b7fde43b35b (patch)
treec751e7bf7888c1a660b62b8df7badf841c12c2e2
parentf2f20e680bb06ebda76f67f8fae9d7ed12498c63 (diff)
Temporarily switch to a fork of go-tdlib
-rw-r--r--go.mod4
-rw-r--r--go.sum2
-rw-r--r--telegram/cache/cache.go2
-rw-r--r--telegram/client.go2
-rw-r--r--telegram/commands.go2
-rw-r--r--telegram/connect.go2
-rw-r--r--telegram/formatter/formatter.go2
-rw-r--r--telegram/formatter/formatter_test.go2
-rw-r--r--telegram/handlers.go2
-rw-r--r--telegram/utils.go2
-rw-r--r--telegram/utils_test.go2
11 files changed, 13 insertions, 11 deletions
diff --git a/go.mod b/go.mod
index 583e40b..a20dc3d 100644
--- a/go.mod
+++ b/go.mod
@@ -8,10 +8,10 @@ require (
github.com/santhosh-tekuri/jsonschema v1.2.4
github.com/sirupsen/logrus v1.4.2
github.com/soheilhy/args v0.0.0-20150720134047-6bcf4c78e87e
- github.com/zelenin/go-tdlib v0.1.0
+ github.com/godcong/go-tdlib v0.1.0
gopkg.in/yaml.v2 v2.2.4
gosrc.io/xmpp v0.5.2-0.20211214110136-5f99e1cd06e1
)
replace gosrc.io/xmpp => github.com/bodqhrohro/go-xmpp v0.2.1-0.20211218153313-a8aadd78b65b
-replace github.com/zelenin/go-tdlib => github.com/godcong/go-tdlib v0.4.4-0.20211203152853-64d22ab8d4ac
+replace github.com/godcong/go-tdlib => github.com/bodqhrohro/go-tdlib v0.4.4-0.20211229000346-ee6018be8ec0
diff --git a/go.sum b/go.sum
index e24fbe8..fa8290a 100644
--- a/go.sum
+++ b/go.sum
@@ -6,6 +6,8 @@ github.com/bodqhrohro/go-tdlib v0.1.2-0.20191121200156-e826071d3317 h1:+mv4FwWXl
github.com/bodqhrohro/go-tdlib v0.1.2-0.20191121200156-e826071d3317/go.mod h1:Xs8fXbk5n7VaPyrSs9DP7QYoBScWYsjX+lUcWmx1DIU=
github.com/bodqhrohro/go-tdlib v0.1.2-0.20191121233100-48d2382034fb h1:y5PnjdAnNVS0q8xuwjm3TxBfLriJmykQdoGiyYZB3s0=
github.com/bodqhrohro/go-tdlib v0.1.2-0.20191121233100-48d2382034fb/go.mod h1:Xs8fXbk5n7VaPyrSs9DP7QYoBScWYsjX+lUcWmx1DIU=
+github.com/bodqhrohro/go-tdlib v0.4.4-0.20211229000346-ee6018be8ec0 h1:9ysLk2hG2q0NeNdX6StzS+4fTAG2FeZJYKKegCuB4q4=
+github.com/bodqhrohro/go-tdlib v0.4.4-0.20211229000346-ee6018be8ec0/go.mod h1:sOdXFpJ3zn6RHRc8aNVkJYALHpoplwBgMwIbRCYABIg=
github.com/bodqhrohro/go-xmpp v0.1.4-0.20191106203535-f3b463f3b26c h1:LzcQyE+Gs+0kAbpnPAUD68FvUCieKZip44URAmH70PI=
github.com/bodqhrohro/go-xmpp v0.1.4-0.20191106203535-f3b463f3b26c/go.mod h1:fWixaMaFvx8cxXcJVJ5kU9csMeD/JN8on7ybassU8rY=
github.com/bodqhrohro/go-xmpp v0.2.1-0.20191105232737-9abd5be0aa1b h1:9BLd/SNO4JJZLRl1Qb1v9mNivIlHuwHDe2c8hQvBxFA=
diff --git a/telegram/cache/cache.go b/telegram/cache/cache.go
index 3d9608d..3144ca9 100644
--- a/telegram/cache/cache.go
+++ b/telegram/cache/cache.go
@@ -3,7 +3,7 @@ package cache
import (
"sync"
- "github.com/zelenin/go-tdlib/client"
+ "github.com/godcong/go-tdlib/client"
)
// Status stores formatted data for XMPP presence
diff --git a/telegram/client.go b/telegram/client.go
index 07603b5..c4c97ff 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/zelenin/go-tdlib/client"
+ "github.com/godcong/go-tdlib/client"
"gosrc.io/xmpp"
)
diff --git a/telegram/commands.go b/telegram/commands.go
index 58c0e17..0df64c1 100644
--- a/telegram/commands.go
+++ b/telegram/commands.go
@@ -11,7 +11,7 @@ import (
"dev.narayana.im/narayana/telegabber/xmpp/gateway"
log "github.com/sirupsen/logrus"
- "github.com/zelenin/go-tdlib/client"
+ "github.com/godcong/go-tdlib/client"
)
const notEnoughArguments string = "Not enough arguments"
diff --git a/telegram/connect.go b/telegram/connect.go
index 701de29..9937970 100644
--- a/telegram/connect.go
+++ b/telegram/connect.go
@@ -8,7 +8,7 @@ import (
"dev.narayana.im/narayana/telegabber/xmpp/gateway"
log "github.com/sirupsen/logrus"
- "github.com/zelenin/go-tdlib/client"
+ "github.com/godcong/go-tdlib/client"
)
const chatsLimit int32 = 999
diff --git a/telegram/formatter/formatter.go b/telegram/formatter/formatter.go
index 2946a55..355d393 100644
--- a/telegram/formatter/formatter.go
+++ b/telegram/formatter/formatter.go
@@ -4,7 +4,7 @@ import (
"sort"
log "github.com/sirupsen/logrus"
- "github.com/zelenin/go-tdlib/client"
+ "github.com/godcong/go-tdlib/client"
)
// Insertion is a piece of text in given position
diff --git a/telegram/formatter/formatter_test.go b/telegram/formatter/formatter_test.go
index 63337d6..5c93ea0 100644
--- a/telegram/formatter/formatter_test.go
+++ b/telegram/formatter/formatter_test.go
@@ -3,7 +3,7 @@ package formatter
import (
"testing"
- "github.com/zelenin/go-tdlib/client"
+ "github.com/godcong/go-tdlib/client"
)
func TestNoFormatting(t *testing.T) {
diff --git a/telegram/handlers.go b/telegram/handlers.go
index a897291..9b18656 100644
--- a/telegram/handlers.go
+++ b/telegram/handlers.go
@@ -13,7 +13,7 @@ import (
"dev.narayana.im/narayana/telegabber/xmpp/gateway"
log "github.com/sirupsen/logrus"
- "github.com/zelenin/go-tdlib/client"
+ "github.com/godcong/go-tdlib/client"
)
func uhOh() {
diff --git a/telegram/utils.go b/telegram/utils.go
index 387ddea..865c4d4 100644
--- a/telegram/utils.go
+++ b/telegram/utils.go
@@ -19,7 +19,7 @@ import (
log "github.com/sirupsen/logrus"
"github.com/soheilhy/args"
- "github.com/zelenin/go-tdlib/client"
+ "github.com/godcong/go-tdlib/client"
)
var errOffline = errors.New("TDlib instance is offline")
diff --git a/telegram/utils_test.go b/telegram/utils_test.go
index 69124fc..dc250a6 100644
--- a/telegram/utils_test.go
+++ b/telegram/utils_test.go
@@ -7,7 +7,7 @@ import (
"dev.narayana.im/narayana/telegabber/config"
"dev.narayana.im/narayana/telegabber/persistence"
- "github.com/zelenin/go-tdlib/client"
+ "github.com/godcong/go-tdlib/client"
)
const testTimeFormat string = "15:04 02/01/2006"