Notice This is just a fork for myself to add proxy from enviorment. The all code is from https://gitlab.com/toby3d/telegraph
This project is just to provide a wrapper around the API without any additional features.
All methods and types available and this library (possibly) is ready for use in production. Yaay!
Download and install it:
$ go get -u gitlab.com/toby3d/telegraph
Import it in your code:
import "gitlab.com/toby3d/telegraph"
Use Proxy
telegraph.SetSocksDialer("localhost:7890")
telegraph.SetHttpDialer("username:password@localhost:9050")
See GoDoc examples section or check example_test.go.