Change repository URL
This commit is contained in:
parent
e19383af5c
commit
02768d4c33
5 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
# Bot API for Telegram bots
|
# 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)
|
(Yes this needs proper docs and everything but I'm kinda busy doing other stuff)
|
|
@ -3,7 +3,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
"github.com/hamcha/tg"
|
"git.fromouter.space/hamcha/tg"
|
||||||
)
|
)
|
||||||
|
|
||||||
func executeClientCommand(action tg.ClientCommand, client net.Conn) {
|
func executeClientCommand(action tg.ClientCommand, client net.Conn) {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
"github.com/hamcha/tg"
|
"git.fromouter.space/hamcha/tg"
|
||||||
)
|
)
|
||||||
|
|
||||||
var clients []net.Conn
|
var clients []net.Conn
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/hamcha/tg"
|
"git.fromouter.space/hamcha/tg"
|
||||||
)
|
)
|
||||||
|
|
||||||
// The Config data (parsed from JSON)
|
// The Config data (parsed from JSON)
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/hamcha/tg"
|
"git.fromouter.space/hamcha/tg"
|
||||||
)
|
)
|
||||||
|
|
||||||
func webhook(rw http.ResponseWriter, req *http.Request) {
|
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, err := json.Marshal(tg.BrokerUpdate{
|
||||||
Data: update,
|
Data: &update,
|
||||||
Callback: nil,
|
Callback: nil,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue