Update all function

This commit is contained in:
c0re100 2022-01-27 05:06:41 +08:00
parent 611fb8a865
commit 187cc0de75
No known key found for this signature in database
GPG key ID: 7C3B3004FE745AAF
3 changed files with 80 additions and 12 deletions

View file

@ -1879,6 +1879,9 @@ func UnmarshalTextEntityType(data json.RawMessage) (TextEntityType, error) {
case TypeTextEntityTypeStrikethrough:
return UnmarshalTextEntityTypeStrikethrough(data)
case TypeTextEntityTypeSpoiler:
return UnmarshalTextEntityTypeSpoiler(data)
case TypeTextEntityTypeCode:
return UnmarshalTextEntityTypeCode(data)
@ -7985,6 +7988,14 @@ func UnmarshalTextEntityTypeStrikethrough(data json.RawMessage) (*TextEntityType
return &resp, err
}
func UnmarshalTextEntityTypeSpoiler(data json.RawMessage) (*TextEntityTypeSpoiler, error) {
var resp TextEntityTypeSpoiler
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalTextEntityTypeCode(data json.RawMessage) (*TextEntityTypeCode, error) {
var resp TextEntityTypeCode
@ -13499,6 +13510,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeTextEntityTypeStrikethrough:
return UnmarshalTextEntityTypeStrikethrough(data)
case TypeTextEntityTypeSpoiler:
return UnmarshalTextEntityTypeSpoiler(data)
case TypeTextEntityTypeCode:
return UnmarshalTextEntityTypeCode(data)