diff --git a/README.md b/README.md index cd82dd0..898aea2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Bot API for Telegram bots -Should work if you can put the time to figure out how it works (check client_test.go or better yet, [clessy](https://github.com/hamcha/clessy)) +Should work if you can put the time to figure out how it works (check client_test.go or better yet, [clessy](https://git.fromouter.space/hamcha/clessy)) (Yes this needs proper docs and everything but I'm kinda busy doing other stuff) \ No newline at end of file diff --git a/cmd/tg-broker/action.go b/cmd/tg-broker/action.go index 4d51988..e69e41f 100644 --- a/cmd/tg-broker/action.go +++ b/cmd/tg-broker/action.go @@ -3,7 +3,7 @@ package main import ( "net" - "github.com/hamcha/tg" + "git.fromouter.space/hamcha/tg" ) func executeClientCommand(action tg.ClientCommand, client net.Conn) { diff --git a/cmd/tg-broker/clients.go b/cmd/tg-broker/clients.go index 630cdd9..281780b 100644 --- a/cmd/tg-broker/clients.go +++ b/cmd/tg-broker/clients.go @@ -7,7 +7,7 @@ import ( "log" "net" - "github.com/hamcha/tg" + "git.fromouter.space/hamcha/tg" ) var clients []net.Conn diff --git a/cmd/tg-broker/main.go b/cmd/tg-broker/main.go index c6deb4f..11d1ccc 100644 --- a/cmd/tg-broker/main.go +++ b/cmd/tg-broker/main.go @@ -7,7 +7,7 @@ import ( "net/http" "os" - "github.com/hamcha/tg" + "git.fromouter.space/hamcha/tg" ) // The Config data (parsed from JSON) diff --git a/cmd/tg-broker/webhook.go b/cmd/tg-broker/webhook.go index f63e157..fe1fdd2 100644 --- a/cmd/tg-broker/webhook.go +++ b/cmd/tg-broker/webhook.go @@ -5,7 +5,7 @@ import ( "log" "net/http" - "github.com/hamcha/tg" + "git.fromouter.space/hamcha/tg" ) func webhook(rw http.ResponseWriter, req *http.Request) { @@ -20,7 +20,7 @@ func webhook(rw http.ResponseWriter, req *http.Request) { } data, err := json.Marshal(tg.BrokerUpdate{ - Data: update, + Data: &update, Callback: nil, }) if err != nil {