Small and simple program-o wrapper in Golang
go get github.com/KurozeroPB/program-go
Small example:
package main
import (
"fmt"
"github.com/KurozeroPB/program-go"
)
func main() {
resp, err := pgo.Say(6, "Testing 123 hello", "test_id_123456")
if err != nil {
fmt.Printf("Error: %s\n", err)
return
}
fmt.Printf("Response: %s\n", resp.BotSay)
}
Parameter | Type | Description |
---|---|---|
botID | int | The program-o bot id you want to use |
query | string | The query you want to send |
convoID | string | The conversation id to recognize you |