-
Notifications
You must be signed in to change notification settings - Fork 101
/
passportAuthorizationForm.go
executable file
·32 lines (27 loc) · 1.54 KB
/
passportAuthorizationForm.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// AUTOGENERATED - DO NOT EDIT
package tdlib
// PassportAuthorizationForm Contains information about a Telegram Passport authorization form that was requested
type PassportAuthorizationForm struct {
tdCommon
ID int32 `json:"id"` // Unique identifier of the authorization form
RequiredElements []PassportRequiredElement `json:"required_elements"` // Information about the Telegram Passport elements that must be provided to complete the form
PrivacyPolicyURL string `json:"privacy_policy_url"` // URL for the privacy policy of the service; may be empty
}
// MessageType return the string telegram-type of PassportAuthorizationForm
func (passportAuthorizationForm *PassportAuthorizationForm) MessageType() string {
return "passportAuthorizationForm"
}
// NewPassportAuthorizationForm creates a new PassportAuthorizationForm
//
// @param iD Unique identifier of the authorization form
// @param requiredElements Information about the Telegram Passport elements that must be provided to complete the form
// @param privacyPolicyURL URL for the privacy policy of the service; may be empty
func NewPassportAuthorizationForm(iD int32, requiredElements []PassportRequiredElement, privacyPolicyURL string) *PassportAuthorizationForm {
passportAuthorizationFormTemp := PassportAuthorizationForm{
tdCommon: tdCommon{Type: "passportAuthorizationForm"},
ID: iD,
RequiredElements: requiredElements,
PrivacyPolicyURL: privacyPolicyURL,
}
return &passportAuthorizationFormTemp
}