Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Latest commit

 

History

History
37 lines (29 loc) · 889 Bytes

README.md

File metadata and controls

37 lines (29 loc) · 889 Bytes

Go Report Card

program-go

Small and simple program-o wrapper in Golang

Install

go get github.com/KurozeroPB/program-go

Usage

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)
}

Docs

Say(botID, query, convoID)

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