Update scheme
This commit is contained in:
parent
f70d5bf7e6
commit
36a547a560
|
@ -4761,6 +4761,9 @@ func (client *Client) GetInternalLinkType(req *GetInternalLinkTypeRequest) (Inte
|
||||||
case TypeInternalLinkTypeLanguagePack:
|
case TypeInternalLinkTypeLanguagePack:
|
||||||
return UnmarshalInternalLinkTypeLanguagePack(result.Data)
|
return UnmarshalInternalLinkTypeLanguagePack(result.Data)
|
||||||
|
|
||||||
|
case TypeInternalLinkTypeLanguageSettings:
|
||||||
|
return UnmarshalInternalLinkTypeLanguageSettings(result.Data)
|
||||||
|
|
||||||
case TypeInternalLinkTypeMessage:
|
case TypeInternalLinkTypeMessage:
|
||||||
return UnmarshalInternalLinkTypeMessage(result.Data)
|
return UnmarshalInternalLinkTypeMessage(result.Data)
|
||||||
|
|
||||||
|
@ -4773,6 +4776,9 @@ func (client *Client) GetInternalLinkType(req *GetInternalLinkTypeRequest) (Inte
|
||||||
case TypeInternalLinkTypePhoneNumberConfirmation:
|
case TypeInternalLinkTypePhoneNumberConfirmation:
|
||||||
return UnmarshalInternalLinkTypePhoneNumberConfirmation(result.Data)
|
return UnmarshalInternalLinkTypePhoneNumberConfirmation(result.Data)
|
||||||
|
|
||||||
|
case TypeInternalLinkTypePrivacyAndSecuritySettings:
|
||||||
|
return UnmarshalInternalLinkTypePrivacyAndSecuritySettings(result.Data)
|
||||||
|
|
||||||
case TypeInternalLinkTypeProxy:
|
case TypeInternalLinkTypeProxy:
|
||||||
return UnmarshalInternalLinkTypeProxy(result.Data)
|
return UnmarshalInternalLinkTypeProxy(result.Data)
|
||||||
|
|
||||||
|
|
|
@ -1090,10 +1090,12 @@ const (
|
||||||
TypeInternalLinkTypeFilterSettings = "internalLinkTypeFilterSettings"
|
TypeInternalLinkTypeFilterSettings = "internalLinkTypeFilterSettings"
|
||||||
TypeInternalLinkTypeGame = "internalLinkTypeGame"
|
TypeInternalLinkTypeGame = "internalLinkTypeGame"
|
||||||
TypeInternalLinkTypeLanguagePack = "internalLinkTypeLanguagePack"
|
TypeInternalLinkTypeLanguagePack = "internalLinkTypeLanguagePack"
|
||||||
|
TypeInternalLinkTypeLanguageSettings = "internalLinkTypeLanguageSettings"
|
||||||
TypeInternalLinkTypeMessage = "internalLinkTypeMessage"
|
TypeInternalLinkTypeMessage = "internalLinkTypeMessage"
|
||||||
TypeInternalLinkTypeMessageDraft = "internalLinkTypeMessageDraft"
|
TypeInternalLinkTypeMessageDraft = "internalLinkTypeMessageDraft"
|
||||||
TypeInternalLinkTypePassportDataRequest = "internalLinkTypePassportDataRequest"
|
TypeInternalLinkTypePassportDataRequest = "internalLinkTypePassportDataRequest"
|
||||||
TypeInternalLinkTypePhoneNumberConfirmation = "internalLinkTypePhoneNumberConfirmation"
|
TypeInternalLinkTypePhoneNumberConfirmation = "internalLinkTypePhoneNumberConfirmation"
|
||||||
|
TypeInternalLinkTypePrivacyAndSecuritySettings = "internalLinkTypePrivacyAndSecuritySettings"
|
||||||
TypeInternalLinkTypeProxy = "internalLinkTypeProxy"
|
TypeInternalLinkTypeProxy = "internalLinkTypeProxy"
|
||||||
TypeInternalLinkTypePublicChat = "internalLinkTypePublicChat"
|
TypeInternalLinkTypePublicChat = "internalLinkTypePublicChat"
|
||||||
TypeInternalLinkTypeQrCodeAuthentication = "internalLinkTypeQrCodeAuthentication"
|
TypeInternalLinkTypeQrCodeAuthentication = "internalLinkTypeQrCodeAuthentication"
|
||||||
|
@ -26553,6 +26555,31 @@ func (*InternalLinkTypeLanguagePack) InternalLinkTypeType() string {
|
||||||
return TypeInternalLinkTypeLanguagePack
|
return TypeInternalLinkTypeLanguagePack
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The link is a link to the language settings section of the app
|
||||||
|
type InternalLinkTypeLanguageSettings struct{
|
||||||
|
meta
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *InternalLinkTypeLanguageSettings) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub InternalLinkTypeLanguageSettings
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InternalLinkTypeLanguageSettings) GetClass() string {
|
||||||
|
return ClassInternalLinkType
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InternalLinkTypeLanguageSettings) GetType() string {
|
||||||
|
return TypeInternalLinkTypeLanguageSettings
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InternalLinkTypeLanguageSettings) InternalLinkTypeType() string {
|
||||||
|
return TypeInternalLinkTypeLanguageSettings
|
||||||
|
}
|
||||||
|
|
||||||
// The link is a link to a Telegram message. Call getMessageLinkInfo with the given URL to process the link
|
// The link is a link to a Telegram message. Call getMessageLinkInfo with the given URL to process the link
|
||||||
type InternalLinkTypeMessage struct {
|
type InternalLinkTypeMessage struct {
|
||||||
meta
|
meta
|
||||||
|
@ -26673,6 +26700,31 @@ func (*InternalLinkTypePhoneNumberConfirmation) InternalLinkTypeType() string {
|
||||||
return TypeInternalLinkTypePhoneNumberConfirmation
|
return TypeInternalLinkTypePhoneNumberConfirmation
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The link is a link to the privacy and security settings section of the app
|
||||||
|
type InternalLinkTypePrivacyAndSecuritySettings struct{
|
||||||
|
meta
|
||||||
|
}
|
||||||
|
|
||||||
|
func (entity *InternalLinkTypePrivacyAndSecuritySettings) MarshalJSON() ([]byte, error) {
|
||||||
|
entity.meta.Type = entity.GetType()
|
||||||
|
|
||||||
|
type stub InternalLinkTypePrivacyAndSecuritySettings
|
||||||
|
|
||||||
|
return json.Marshal((*stub)(entity))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InternalLinkTypePrivacyAndSecuritySettings) GetClass() string {
|
||||||
|
return ClassInternalLinkType
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InternalLinkTypePrivacyAndSecuritySettings) GetType() string {
|
||||||
|
return TypeInternalLinkTypePrivacyAndSecuritySettings
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*InternalLinkTypePrivacyAndSecuritySettings) InternalLinkTypeType() string {
|
||||||
|
return TypeInternalLinkTypePrivacyAndSecuritySettings
|
||||||
|
}
|
||||||
|
|
||||||
// The link is a link to a proxy. Call addProxy with the given parameters to process the link and add the proxy
|
// The link is a link to a proxy. Call addProxy with the given parameters to process the link and add the proxy
|
||||||
type InternalLinkTypeProxy struct {
|
type InternalLinkTypeProxy struct {
|
||||||
meta
|
meta
|
||||||
|
|
|
@ -3699,6 +3699,9 @@ func UnmarshalInternalLinkType(data json.RawMessage) (InternalLinkType, error) {
|
||||||
case TypeInternalLinkTypeLanguagePack:
|
case TypeInternalLinkTypeLanguagePack:
|
||||||
return UnmarshalInternalLinkTypeLanguagePack(data)
|
return UnmarshalInternalLinkTypeLanguagePack(data)
|
||||||
|
|
||||||
|
case TypeInternalLinkTypeLanguageSettings:
|
||||||
|
return UnmarshalInternalLinkTypeLanguageSettings(data)
|
||||||
|
|
||||||
case TypeInternalLinkTypeMessage:
|
case TypeInternalLinkTypeMessage:
|
||||||
return UnmarshalInternalLinkTypeMessage(data)
|
return UnmarshalInternalLinkTypeMessage(data)
|
||||||
|
|
||||||
|
@ -3711,6 +3714,9 @@ func UnmarshalInternalLinkType(data json.RawMessage) (InternalLinkType, error) {
|
||||||
case TypeInternalLinkTypePhoneNumberConfirmation:
|
case TypeInternalLinkTypePhoneNumberConfirmation:
|
||||||
return UnmarshalInternalLinkTypePhoneNumberConfirmation(data)
|
return UnmarshalInternalLinkTypePhoneNumberConfirmation(data)
|
||||||
|
|
||||||
|
case TypeInternalLinkTypePrivacyAndSecuritySettings:
|
||||||
|
return UnmarshalInternalLinkTypePrivacyAndSecuritySettings(data)
|
||||||
|
|
||||||
case TypeInternalLinkTypeProxy:
|
case TypeInternalLinkTypeProxy:
|
||||||
return UnmarshalInternalLinkTypeProxy(data)
|
return UnmarshalInternalLinkTypeProxy(data)
|
||||||
|
|
||||||
|
@ -10764,6 +10770,14 @@ func UnmarshalInternalLinkTypeLanguagePack(data json.RawMessage) (*InternalLinkT
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalInternalLinkTypeLanguageSettings(data json.RawMessage) (*InternalLinkTypeLanguageSettings, error) {
|
||||||
|
var resp InternalLinkTypeLanguageSettings
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalInternalLinkTypeMessage(data json.RawMessage) (*InternalLinkTypeMessage, error) {
|
func UnmarshalInternalLinkTypeMessage(data json.RawMessage) (*InternalLinkTypeMessage, error) {
|
||||||
var resp InternalLinkTypeMessage
|
var resp InternalLinkTypeMessage
|
||||||
|
|
||||||
|
@ -10796,6 +10810,14 @@ func UnmarshalInternalLinkTypePhoneNumberConfirmation(data json.RawMessage) (*In
|
||||||
return &resp, err
|
return &resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UnmarshalInternalLinkTypePrivacyAndSecuritySettings(data json.RawMessage) (*InternalLinkTypePrivacyAndSecuritySettings, error) {
|
||||||
|
var resp InternalLinkTypePrivacyAndSecuritySettings
|
||||||
|
|
||||||
|
err := json.Unmarshal(data, &resp)
|
||||||
|
|
||||||
|
return &resp, err
|
||||||
|
}
|
||||||
|
|
||||||
func UnmarshalInternalLinkTypeProxy(data json.RawMessage) (*InternalLinkTypeProxy, error) {
|
func UnmarshalInternalLinkTypeProxy(data json.RawMessage) (*InternalLinkTypeProxy, error) {
|
||||||
var resp InternalLinkTypeProxy
|
var resp InternalLinkTypeProxy
|
||||||
|
|
||||||
|
@ -14813,6 +14835,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeInternalLinkTypeLanguagePack:
|
case TypeInternalLinkTypeLanguagePack:
|
||||||
return UnmarshalInternalLinkTypeLanguagePack(data)
|
return UnmarshalInternalLinkTypeLanguagePack(data)
|
||||||
|
|
||||||
|
case TypeInternalLinkTypeLanguageSettings:
|
||||||
|
return UnmarshalInternalLinkTypeLanguageSettings(data)
|
||||||
|
|
||||||
case TypeInternalLinkTypeMessage:
|
case TypeInternalLinkTypeMessage:
|
||||||
return UnmarshalInternalLinkTypeMessage(data)
|
return UnmarshalInternalLinkTypeMessage(data)
|
||||||
|
|
||||||
|
@ -14825,6 +14850,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
||||||
case TypeInternalLinkTypePhoneNumberConfirmation:
|
case TypeInternalLinkTypePhoneNumberConfirmation:
|
||||||
return UnmarshalInternalLinkTypePhoneNumberConfirmation(data)
|
return UnmarshalInternalLinkTypePhoneNumberConfirmation(data)
|
||||||
|
|
||||||
|
case TypeInternalLinkTypePrivacyAndSecuritySettings:
|
||||||
|
return UnmarshalInternalLinkTypePrivacyAndSecuritySettings(data)
|
||||||
|
|
||||||
case TypeInternalLinkTypeProxy:
|
case TypeInternalLinkTypeProxy:
|
||||||
return UnmarshalInternalLinkTypeProxy(data)
|
return UnmarshalInternalLinkTypeProxy(data)
|
||||||
|
|
||||||
|
|
|
@ -3323,6 +3323,9 @@ internalLinkTypeGame bot_username:string game_short_name:string = InternalLinkTy
|
||||||
//@description The link is a link to a language pack. Call getLanguagePackInfo with the given language pack identifier to process the link @language_pack_id Language pack identifier
|
//@description The link is a link to a language pack. Call getLanguagePackInfo with the given language pack identifier to process the link @language_pack_id Language pack identifier
|
||||||
internalLinkTypeLanguagePack language_pack_id:string = InternalLinkType;
|
internalLinkTypeLanguagePack language_pack_id:string = InternalLinkType;
|
||||||
|
|
||||||
|
//@description The link is a link to the language settings section of the app
|
||||||
|
internalLinkTypeLanguageSettings = InternalLinkType;
|
||||||
|
|
||||||
//@description The link is a link to a Telegram message. Call getMessageLinkInfo with the given URL to process the link @url URL to be passed to getMessageLinkInfo
|
//@description The link is a link to a Telegram message. Call getMessageLinkInfo with the given URL to process the link @url URL to be passed to getMessageLinkInfo
|
||||||
internalLinkTypeMessage url:string = InternalLinkType;
|
internalLinkTypeMessage url:string = InternalLinkType;
|
||||||
|
|
||||||
|
@ -3339,6 +3342,9 @@ internalLinkTypePassportDataRequest bot_user_id:int53 scope:string public_key:st
|
||||||
//@hash Hash value from the link @phone_number Phone number value from the link
|
//@hash Hash value from the link @phone_number Phone number value from the link
|
||||||
internalLinkTypePhoneNumberConfirmation hash:string phone_number:string = InternalLinkType;
|
internalLinkTypePhoneNumberConfirmation hash:string phone_number:string = InternalLinkType;
|
||||||
|
|
||||||
|
//@description The link is a link to the privacy and security settings section of the app
|
||||||
|
internalLinkTypePrivacyAndSecuritySettings = InternalLinkType;
|
||||||
|
|
||||||
//@description The link is a link to a proxy. Call addProxy with the given parameters to process the link and add the proxy
|
//@description The link is a link to a proxy. Call addProxy with the given parameters to process the link and add the proxy
|
||||||
//@server Proxy server IP address @port Proxy server port @type Type of the proxy
|
//@server Proxy server IP address @port Proxy server port @type Type of the proxy
|
||||||
internalLinkTypeProxy server:string port:int32 type:ProxyType = InternalLinkType;
|
internalLinkTypeProxy server:string port:int32 type:ProxyType = InternalLinkType;
|
||||||
|
|
Loading…
Reference in a new issue