Created
March 23, 2021 18:27
-
-
Save jsdaniell/d5b11bdcd78157043e3a3cdcf9c1635a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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