Skip to content

Commit 77f3471

Browse files
committed
ecode core_message error: 74fa224215c4b51c010000001a010000
1 parent 8778f6c commit 77f3471

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

app/bff/messages/internal/core/messages.getMessages_handler.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (c *MessagesCore) MessagesGetMessages(in *mtproto.TLMessagesGetMessages) (*
3838
}).To_Messages_Messages()
3939
)
4040

41-
for _, id := range in.GetId() {
41+
for _, id := range in.GetId_VECTORINPUTMESSAGE() {
4242
switch id.PredicateName {
4343
case mtproto.Predicate_inputMessageID:
4444
idList = append(idList, id.Id)
@@ -49,6 +49,10 @@ func (c *MessagesCore) MessagesGetMessages(in *mtproto.TLMessagesGetMessages) (*
4949
return nil, err
5050
}
5151
}
52+
if len(in.GetId_VECTORINT32()) > 0 {
53+
idList = append(idList, in.Id_VECTORINT32...)
54+
}
55+
5256
if len(idList) == 0 {
5357
return rValues, nil
5458
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/oschwald/geoip2-golang v1.6.1
1212
github.com/stretchr/testify v1.7.0
1313
github.com/teamgram/marmota v0.0.0-20220314144307-22e582614d69
14-
github.com/teamgram/proto v0.0.0-20220315100427-c0acd8ce93d5
14+
github.com/teamgram/proto v0.139.1
1515
github.com/zeromicro/go-zero v1.3.1
1616
google.golang.org/grpc v1.44.0
1717
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,8 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc
395395
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
396396
github.com/teamgram/marmota v0.0.0-20220314144307-22e582614d69 h1:iqm73AYb10I2FqQuTlUk6dJa0fqjoazJ278I+HVYmZo=
397397
github.com/teamgram/marmota v0.0.0-20220314144307-22e582614d69/go.mod h1:tFClio2OcyK1uuH4cxrTlgTyyS7fmOZld1otoT8VyUw=
398-
github.com/teamgram/proto v0.0.0-20220315100427-c0acd8ce93d5 h1:hQB79vr6uJDmtGhX7B9OWwx7joTzDbbiXMeqguHkKLA=
399-
github.com/teamgram/proto v0.0.0-20220315100427-c0acd8ce93d5/go.mod h1:Z3dkL8EDO4xAACAG6uzqdDgPK8I4fj87Zl/xFgGhiec=
398+
github.com/teamgram/proto v0.139.1 h1:ybyhBQ1rRos67EcAqYuRKEq3fAS2eyc8t3GaDLrgpLw=
399+
github.com/teamgram/proto v0.139.1/go.mod h1:Z3dkL8EDO4xAACAG6uzqdDgPK8I4fj87Zl/xFgGhiec=
400400
github.com/teamgramio/go-zero v1.3.1-0.20220314151701-fcad5c744b40 h1:o9la6ieeAzmabOtznReq5m7711dH3U2l0kIQUvYG8Hc=
401401
github.com/teamgramio/go-zero v1.3.1-0.20220314151701-fcad5c744b40/go.mod h1:JsgCzJSUcjZl487xtqWHzYFa7Wl4f5Gi3lcteOWgNRA=
402402
github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI=

0 commit comments

Comments
 (0)