From 440ea93e4e4cd72aaaf6397696e7bea18d40f66c Mon Sep 17 00:00:00 2001 From: "teamgram.io" Date: Fri, 18 Mar 2022 10:45:20 +0800 Subject: [PATCH] Update codec_schema.tl.pb.go --- mtproto/codec_schema.tl.pb.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mtproto/codec_schema.tl.pb.go b/mtproto/codec_schema.tl.pb.go index 16509bd..8c8fa24 100644 --- a/mtproto/codec_schema.tl.pb.go +++ b/mtproto/codec_schema.tl.pb.go @@ -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())