github.com/gotd/td/internal/proto/codec.ProtocolErr.Code (field)

6 uses

	github.com/gotd/td/internal/proto/codec (current package)
		errors.go#L28: 	Code int32
		errors.go#L32: 	switch p.Code {
		errors.go#L40: 		return fmt.Sprintf("protocol error %d", p.Code)
		errors.go#L75: 	return &ProtocolErr{Code: -code}

	github.com/gotd/td/internal/exchange
		proto.go#L67: 				protocolErr.Code == codec.CodeAuthKeyNotFound {

	github.com/gotd/td/internal/mtproto
		read.go#L181: 			if errors.As(err, &protoErr) && protoErr.Code == codec.CodeAuthKeyNotFound {