1
0
Fork 0

🏷️ Fixed missing URL domain usage in EditAccountInfo method

This commit is contained in:
Maxim Lebedev 2024-08-08 04:24:28 +05:00
parent bec4b3e464
commit 8f21b6706a
Signed by: toby3d
GPG key ID: 1F14E25B7C119FC5

View file

@ -6,7 +6,6 @@ import (
"encoding/json"
"fmt"
"net/http"
"net/url"
)
// EditAccountInfo update information about a Telegraph account. Pass only the
@ -16,7 +15,7 @@ type EditAccountInfo struct {
// New default profile link, opened when users click on the author's
// name below the title. Can be any link, not necessarily to a Telegram
// profile or channel.
AuthorURL *url.URL `json:"author_url,omitempty"` // 0-512 characters
AuthorURL *URL `json:"author_url,omitempty"` // 0-512 characters
// New account name.
ShortName *ShortName `json:"short_name,omitempty"` // 1-32 characters