Skip to content

Instantly share code, notes, and snippets.

@jsdaniell
Created March 23, 2021 18:27
Show Gist options
  • Select an option

  • Save jsdaniell/d5b11bdcd78157043e3a3cdcf9c1635a to your computer and use it in GitHub Desktop.

Select an option

Save jsdaniell/d5b11bdcd78157043e3a3cdcf9c1635a to your computer and use it in GitHub Desktop.
func Connect(w http.ResponseWriter, r *http.Request) {
wac, err := whatsapp.NewConn(20 * time.Second)
if err != nil {
fmt.Fprintf(os.Stderr, "error creating connection: %v\n", err)
}
err = whats_utils.Login(wac)
if err != nil {
fmt.Fprintf(os.Stderr, "error logging in: %v\n", err)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment