Codegen: UNEXPECTEDLY, some Rpc responses are not objects! (see desc) #19
Labels
bug
Something isn't working
help wanted
Extra attention is needed
need investigation
Further information is requested
Projects
СукаБлять!
Alright, so some messages like
contacts.getSaved
response asvector<someType>
(which is actually slices). in MTProto vector is LIKELY object (it has 4 bytes for len and bytes stream of wrapped objects).I changed already decoder of this shit, but we need to fix codegen. Now in
MTProto
object we have two different request types:MTProto.MakeRequest(TL)
— for REAL objectsMTProto.MakeRequestAsSlice(TL, as reflect.Type)
— for responses which is vectors.as
need for decoder, it's trying to understand, which type of slice do you needThe text was updated successfully, but these errors were encountered: