diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-04-23 19:38:16 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-04-23 19:54:49 +0700 |
| commit | bfa6ebffeb14774acd7ee486469d06d12dcd15e5 (patch) | |
| tree | 9f427301df78c84b3bff6aa54f3c6b9800779a59 /api/telegram/bot/bot.go | |
| parent | 873061573334d904361b42ab513f4bf67a2b7b77 (diff) | |
| download | pakakeh.go-bfa6ebffeb14774acd7ee486469d06d12dcd15e5.tar.xz | |
http: add parameter to set default client's headers
This changes update the http.Client in api/telegram/bot.
Diffstat (limited to 'api/telegram/bot/bot.go')
| -rw-r--r-- | api/telegram/bot/bot.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/telegram/bot/bot.go b/api/telegram/bot/bot.go index 7359913d..48c53a4c 100644 --- a/api/telegram/bot/bot.go +++ b/api/telegram/bot/bot.go @@ -117,7 +117,7 @@ func New(opts Options) (bot *Bot, err error) { serverURL := defURL + opts.Token + "/" bot = &Bot{ opts: opts, - client: http.NewClient(serverURL), + client: http.NewClient(serverURL, nil), } fmt.Printf("Bot options: %+v\n", opts) |
