mirror of
https://github.com/c0re100/gotdlib.git
synced 2026-02-21 20:20:17 +01:00
Update all function
This commit is contained in:
parent
611fb8a865
commit
187cc0de75
3 changed files with 80 additions and 12 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue