nikoksr / notify

A dead simple Go library for sending notifications to various messaging services.
MIT License
2.97k stars 210 forks source link

feat(service): proxy setting #684

Open UsherFall opened 1 year ago

UsherFall commented 1 year ago

Services like discord, telegram are not available directly in my country, so proxy setup is required for me.

In telegram, I can use SetClient to set proxy, but how can I set proxy for discord or other service

client, err := api.NewBotAPIWithClient(apiToken, proxy.ProxyHttpClient)
if err != nil {
    return nil, err
}
t := &telegram.Telegram{}
t.SetClient(client)