make rhash optional
This commit is contained in:
@ -83,6 +83,9 @@ func NewTelegramSender(transport http.RoundTripper, authToken string) TelegramSe
|
||||
}
|
||||
|
||||
func genIVLink(link, rhash string) string {
|
||||
if rhash == "" {
|
||||
return link
|
||||
}
|
||||
query := url.Values{}
|
||||
query.Set("url", link)
|
||||
query.Set("rhash", rhash)
|
||||
|
Reference in New Issue
Block a user