Skip to content

Commit

Permalink
ecode core_message error: 74fa224215c4b51c010000001a010000
Browse files Browse the repository at this point in the history
  • Loading branch information
teamgramio committed Mar 20, 2022
1 parent 8778f6c commit 77f3471
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (c *MessagesCore) MessagesGetMessages(in *mtproto.TLMessagesGetMessages) (*
}).To_Messages_Messages()
)

for _, id := range in.GetId() {
for _, id := range in.GetId_VECTORINPUTMESSAGE() {
switch id.PredicateName {
case mtproto.Predicate_inputMessageID:
idList = append(idList, id.Id)
Expand All @@ -49,6 +49,10 @@ func (c *MessagesCore) MessagesGetMessages(in *mtproto.TLMessagesGetMessages) (*
return nil, err
}
}
if len(in.GetId_VECTORINT32()) > 0 {
idList = append(idList, in.Id_VECTORINT32...)
}

if len(idList) == 0 {
return rValues, nil
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/oschwald/geoip2-golang v1.6.1
github.com/stretchr/testify v1.7.0
github.com/teamgram/marmota v0.0.0-20220314144307-22e582614d69
github.com/teamgram/proto v0.0.0-20220315100427-c0acd8ce93d5
github.com/teamgram/proto v0.139.1
github.com/zeromicro/go-zero v1.3.1
google.golang.org/grpc v1.44.0
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/teamgram/marmota v0.0.0-20220314144307-22e582614d69 h1:iqm73AYb10I2FqQuTlUk6dJa0fqjoazJ278I+HVYmZo=
github.com/teamgram/marmota v0.0.0-20220314144307-22e582614d69/go.mod h1:tFClio2OcyK1uuH4cxrTlgTyyS7fmOZld1otoT8VyUw=
github.com/teamgram/proto v0.0.0-20220315100427-c0acd8ce93d5 h1:hQB79vr6uJDmtGhX7B9OWwx7joTzDbbiXMeqguHkKLA=
github.com/teamgram/proto v0.0.0-20220315100427-c0acd8ce93d5/go.mod h1:Z3dkL8EDO4xAACAG6uzqdDgPK8I4fj87Zl/xFgGhiec=
github.com/teamgram/proto v0.139.1 h1:ybyhBQ1rRos67EcAqYuRKEq3fAS2eyc8t3GaDLrgpLw=
github.com/teamgram/proto v0.139.1/go.mod h1:Z3dkL8EDO4xAACAG6uzqdDgPK8I4fj87Zl/xFgGhiec=
github.com/teamgramio/go-zero v1.3.1-0.20220314151701-fcad5c744b40 h1:o9la6ieeAzmabOtznReq5m7711dH3U2l0kIQUvYG8Hc=
github.com/teamgramio/go-zero v1.3.1-0.20220314151701-fcad5c744b40/go.mod h1:JsgCzJSUcjZl487xtqWHzYFa7Wl4f5Gi3lcteOWgNRA=
github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI=
Expand Down

0 comments on commit 77f3471

Please sign in to comment.