Skip to content

Commit

Permalink
Update codec_schema.tl.pb.go
Browse files Browse the repository at this point in the history
  • Loading branch information
teamgramio committed Mar 18, 2022
1 parent c0acd8c commit 440ea93
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions mtproto/codec_schema.tl.pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -54321,9 +54321,13 @@ func (m *MessageEntity) Encode(layer int32) []byte {
t := m.To_MessageEntityBankCard()
xBuf = t.Encode(layer)
case Predicate_messageEntitySpoiler:
t := m.To_MessageEntitySpoiler()
xBuf = t.Encode(layer)

if layer > 135 {
t := m.To_MessageEntitySpoiler()
xBuf = t.Encode(layer)
} else {
t := m.To_MessageEntityUnknown()
xBuf = t.Encode(layer)
}
default:
// err := fmt.Errorf("invalid predicate error: %s", m.PredicateName)
// log.Errorf(err.Error())
Expand Down

0 comments on commit 440ea93

Please sign in to comment.